Compiling FFmpeg broke build [Solved]

gaycodegal

New Member
So when compiling the project for use with plugin, I made the mistake of running `cmake libobs`. This caused the error

CMake Error at CMakeLists.txt:5 (find_package):
By not providing "FindFFmpeg.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "FFmpeg", but
CMake did not find one.

Could not find a package configuration file provided by "FFmpeg" with any
of the following names:

FFmpegConfig.cmake
ffmpeg-config.cmake

Add the installation prefix of "FFmpeg" to CMAKE_PREFIX_PATH or set
"FFmpeg_DIR" to a directory containing one of the above files. If "FFmpeg"
provides a separate development package or SDK, be sure it has been
installed.

This also made full builds built with ./CI/full-build-macos.sh to fail with the same message. The solution was to delete CMakeCache.txt and then the CI script ran successfully (I mean i actually removed the whole of brew and reinstalled that and also removed the whole git project and redownloaded, but it turned out CMakeCache.txt was all that was needed to be removed)
 

gaycodegal

New Member
also a note that ./CI/full-build-macos.sh does build the libobs.dylib it puts it in the obs-studio/build/libobs/ folder so i wouldnt even bother with only building libobs if I were you. Still finding out how to build a plugin external to obs on Mac as install_obs_plugin_with_data is not available externally. I suspect i'll just have to look at the source of install_obs_plugin_with_data to determine what to do because quite luckily that method is cross platform
 
Top