obs-studio
obs-studio copied to clipboard
Can't build. Help.
I do:
$ brew install freetype jansson
$ cmake CMakeLists.txt
Result:
-- Jansson >=2.5 not found, building bundled version
CMake Error at /usr/local/Cellar/cmake/3.0.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find Libswscale (missing: SWSCALE_LIB FFMPEG_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.0.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindLibswscale.cmake:51 (find_package_handle_standard_args)
libobs/CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
See also "/Users/gordio/Development/obs-studio/CMakeFiles/CMakeOutput.log".
Try install Libswscale but can't find.
Do you have FFmpeg installed?
No. After installing i have
-- Using libavcodec for image loading in libobs
CMake Error at obs/CMakeLists.txt:20 (find_package):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Widgets" with
any of the following names:
Qt5WidgetsConfig.cmake
qt5widgets-config.cmake
Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"Qt5Widgets_DIR" to a directory containing one of the above files. If
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FFMPEG_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/gordio/Development/obs-studio/libobs
SWSCALE_LIB (ADVANCED)
linked by target "libobs" in directory /Users/gordio/Development/obs-studio/libobs
-- Configuring incomplete, errors occurred!
Looks as though the first problem is its having trouble the Qt5 make dir. Try looking here for more info on that issue https://github.com/jp9000/obs-studio/issues/73
The other issue looks like you don't have FFmpeg installed or it can't find it.
Just follow the build instructions found here https://github.com/jp9000/obs-studio/blob/master/INSTALL and you shouldn't have too many problems. Im assuming you are trying to compile on Mac.