- NOTE: OBS on windows currently requires VS2013, as obs-studio uses C99 and
C++11. Express might not be supported at this time (though I'll fix it at
some point).
- Clone the repo. After cloning, run the following git commands:
git submodule init
git submodule update
which will download submodules. 必须完整下载,包括依赖文件
- Download (or build) development packages of FFmpeg, x264, Qt5.
- Download windows version of cmake from: http://www.cmake.org/
- Add windows environment variables:
FFMpegPath (path to FFmpeg include directory)
x264Path (path to x264 include directory)
C++11. Express might not be supported at this time (though I'll fix it at
some point).
- Clone the repo. After cloning, run the following git commands:
git submodule init
git submodule update
which will download submodules. 必须完整下载,包括依赖文件
- Download (or build) development packages of FFmpeg, x264, Qt5.
- Download windows version of cmake from: http://www.cmake.org/
- Add windows environment variables:
FFMpegPath (path to FFmpeg include directory)
x264Path (path to x264 include directory)
QTDIR (path to Qt build base directory)
注意反斜杠
1、ffmpeg问题
修改FindFFMpeg.cmake文件,在下面的位置加入以下内容:
###########
# find_path
find_path(FFMPEG_${component}_INCLUDE_DIR
NAMES
"lib${component}/${header}" "lib${component}/version.h"
PATHS
"G:/qt/sdk/ffmpeg-20141016-git-0e406ab-win32-dev/include"
)
#find_library
find_path(FFMPEG_${component}_INCLUDE_DIR
NAMES
"${component}" "lib${component}"
PATHS
"G:/qt/sdk/ffmpeg-20141016-git-0e406ab-win32-dev/lib"
)
############
2、x264问题
修改FindLibx264.cmake文件,在下面位置加入以下内容:
###########
# find_path
find_path(X264_INCLUDE_DIR
NAMES
x264.h
PATHS
"G:/project/OBS-master/x264"
)
#find_library
find_path(X264_LIB
NAMES
${_X264_LIBRARIES} x264 libx264.lib
PATHS
"G:/project/OBS-master/x264/libs/32bit"
)
############