Why cant I build this on my newly installed debian 12?
This is as far as I know the only platform that this software is supported to build, and Ive installed every dependency scrupulously. Ive tried the head branch code, as well as commits 144599fbf and 2613b6a according to various recommendations.
I just get a message from cmake that it cant build it because my ffmpeg is to old. Specifically it says that it has to be 4.4 or newer. My ffmpeg is 5.1.6.
I have also tried the obvious: to give cmake a clue by "CMAKE_INCLUDE_PATH=/usr/lib/x86_64-linux-gnu", which hardly seems necessary, since the error messages indicates that cmake already know about these locations. No joy!
Output from cmake:
------------------------------------------------------------------------------------------------------
CMAKE_INCLUDE_PATH=/usr/lib/x86_64-linux-gnu cmake -S . -B build -G Ninja -DOBS_CMAKE_VERSION=3 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCEF_ROOT_DIR="cef_binary_5060_linux64/" -DENABLE_PIPEWIRE=1 -DENABLE_AJA=0 -DENABLE_WEBRTC=0 -DENABLE_PULSEAUDIO=1 -DENABLE_VST=1 -DENABLE_JACK=1 -DENABLE_ALSA=1 -DENABLE_HEVC=1 -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BROWSER=1 -DENABLE_VLC=1 -DENABLE_WAYLAND=1 -DENABLE_RNNOISE=1 -DENABLE_SPEEXDSP=1 -DENABLE_V4L2=1 -DENABLE_NVENC=1
CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find FFmpeg: (Required is at least version "4.4") (found
/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so;/usr/lib/x86_64-linux-gnu/libswresample.so;/usr/lib/x86_64-linux-gnu/libavcodec.so,
found components: avformat avutil swscale swresample avcodec)
Reason given by package: Ensure that required FFmpeg libraries are installed on the system.
Call Stack (most recent call first):
/usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
cmake/finders/FindFFmpeg.cmake:318 (find_package_handle_standard_args)
libobs/CMakeLists.txt:15 (find_package)
-- Configuring incomplete, errors occurred!
See also "/root/build/obs-studio/build/CMakeFiles/CMakeOutput.log".
root@oden:~/build/obs-studio# CMAKE_INCLUDE_PATH=/usr/lib cmake -S . -B build -G Ninja -DOBS_CMAKE_VERSION=3 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCEF_ROOT_DIR="cef_binary_5060_linux64/" -DENABLE_PIPEWIRE=1 -DENABLE_AJA=0 -DENABLE_WEBRTC=0 -DENABLE_PULSEAUDIO=1 -DENABLE_VST=1 -DENABLE_JACK=1 -DENABLE_ALSA=1 -DENABLE_HEVC=1 -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BROWSER=1 -DENABLE_VLC=1 -DENABLE_WAYLAND=1 -DENABLE_RNNOISE=1 -DENABLE_SPEEXDSP=1 -DENABLE_V4L2=1 -DENABLE_NVENC=1
CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find FFmpeg: (Required is at least version "4.4") (found
/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so;/usr/lib/x86_64-linux-gnu/libswresample.so;/usr/lib/x86_64-linux-gnu/libavcodec.so,
found components: avformat avutil swscale swresample avcodec)
Reason given by package: Ensure that required FFmpeg libraries are installed on the system.
Call Stack (most recent call first):
/usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
cmake/finders/FindFFmpeg.cmake:318 (find_package_handle_standard_args)
libobs/CMakeLists.txt:15 (find_package)
-- Configuring incomplete, errors occurred!
See also "/root/build/obs-studio/build/CMakeFiles/CMakeOutput.log".
--------------------------------------------------------------------------------------------------------
/root/build/obs-studio/build/CMakeFiles/CMakeOutput.log:
[The rest of this post is cropped by the forum, because it only allows brief messages]
This is as far as I know the only platform that this software is supported to build, and Ive installed every dependency scrupulously. Ive tried the head branch code, as well as commits 144599fbf and 2613b6a according to various recommendations.
I just get a message from cmake that it cant build it because my ffmpeg is to old. Specifically it says that it has to be 4.4 or newer. My ffmpeg is 5.1.6.
I have also tried the obvious: to give cmake a clue by "CMAKE_INCLUDE_PATH=/usr/lib/x86_64-linux-gnu", which hardly seems necessary, since the error messages indicates that cmake already know about these locations. No joy!
Output from cmake:
------------------------------------------------------------------------------------------------------
CMAKE_INCLUDE_PATH=/usr/lib/x86_64-linux-gnu cmake -S . -B build -G Ninja -DOBS_CMAKE_VERSION=3 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCEF_ROOT_DIR="cef_binary_5060_linux64/" -DENABLE_PIPEWIRE=1 -DENABLE_AJA=0 -DENABLE_WEBRTC=0 -DENABLE_PULSEAUDIO=1 -DENABLE_VST=1 -DENABLE_JACK=1 -DENABLE_ALSA=1 -DENABLE_HEVC=1 -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BROWSER=1 -DENABLE_VLC=1 -DENABLE_WAYLAND=1 -DENABLE_RNNOISE=1 -DENABLE_SPEEXDSP=1 -DENABLE_V4L2=1 -DENABLE_NVENC=1
CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find FFmpeg: (Required is at least version "4.4") (found
/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so;/usr/lib/x86_64-linux-gnu/libswresample.so;/usr/lib/x86_64-linux-gnu/libavcodec.so,
found components: avformat avutil swscale swresample avcodec)
Reason given by package: Ensure that required FFmpeg libraries are installed on the system.
Call Stack (most recent call first):
/usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
cmake/finders/FindFFmpeg.cmake:318 (find_package_handle_standard_args)
libobs/CMakeLists.txt:15 (find_package)
-- Configuring incomplete, errors occurred!
See also "/root/build/obs-studio/build/CMakeFiles/CMakeOutput.log".
root@oden:~/build/obs-studio# CMAKE_INCLUDE_PATH=/usr/lib cmake -S . -B build -G Ninja -DOBS_CMAKE_VERSION=3 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCEF_ROOT_DIR="cef_binary_5060_linux64/" -DENABLE_PIPEWIRE=1 -DENABLE_AJA=0 -DENABLE_WEBRTC=0 -DENABLE_PULSEAUDIO=1 -DENABLE_VST=1 -DENABLE_JACK=1 -DENABLE_ALSA=1 -DENABLE_HEVC=1 -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BROWSER=1 -DENABLE_VLC=1 -DENABLE_WAYLAND=1 -DENABLE_RNNOISE=1 -DENABLE_SPEEXDSP=1 -DENABLE_V4L2=1 -DENABLE_NVENC=1
CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find FFmpeg: (Required is at least version "4.4") (found
/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so;/usr/lib/x86_64-linux-gnu/libswresample.so;/usr/lib/x86_64-linux-gnu/libavcodec.so,
found components: avformat avutil swscale swresample avcodec)
Reason given by package: Ensure that required FFmpeg libraries are installed on the system.
Call Stack (most recent call first):
/usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
cmake/finders/FindFFmpeg.cmake:318 (find_package_handle_standard_args)
libobs/CMakeLists.txt:15 (find_package)
-- Configuring incomplete, errors occurred!
See also "/root/build/obs-studio/build/CMakeFiles/CMakeOutput.log".
--------------------------------------------------------------------------------------------------------
/root/build/obs-studio/build/CMakeFiles/CMakeOutput.log:
[The rest of this post is cropped by the forum, because it only allows brief messages]