Fresh installed debian 12 does not build, all prerequisites scrupulously installed

lookingin

New Member
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]
 

lookingin

New Member
/root/build/obs-studio/build/CMakeFiles/CMakeOutput.log:

The system is: Linux - 6.1.0-26-amd64 - x86_64

Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.

Compiler: /usr/bin/cc

Build flags:

Id flags:


The output was:

0



Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"


The C compiler identification is GNU, found in "/root/build/obs-studio/build/CMakeFiles/3.25.1/CompilerIdC/a.out"


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.

Compiler: /usr/bin/c++

Build flags:

Id flags:


The output was:

0



Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"


The CXX compiler identification is GNU, found in "/root/build/obs-studio/build/CMakeFiles/3.25.1/CompilerIdCXX/a.out"


Detecting C compiler ABI info compiled with the following output:

Change Dir: /root/build/obs-studio/build/CMakeFiles/CMakeScratch/TryCompile-RZVEdt


Run Build Command(s):/usr/bin/ninja cmTC_32dd0 && [1/2] Building C object CMakeFiles/cmTC_32dd0.dir/CMakeCCompilerABI.c.o

Using built-in specs.

COLLECT_GCC=/usr/bin/cc

OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa

OFFLOAD_TARGET_DEFAULT=1

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Debian 12.2.0-14' --with-bugurl=file:///usr/share/doc/gcc-12/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-12 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-12-bTRWOB/gcc-12-12.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-12-bTRWOB/gcc-12-12.2.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

Thread model: posix

Supported LTO compression algorithms: zlib zstd

gcc version 12.2.0 (Debian 12.2.0-14)

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_32dd0.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_32dd0.dir/'

/usr/lib/gcc/x86_64-linux-gnu/12/cc1 -quiet -v -imultiarch x86_64-linux-gnu /usr/share/cmake-3.25/Modules/CMakeCCompilerABI.c -quiet -dumpdir CMakeFiles/cmTC_32dd0.dir/ -dumpbase CMakeCCompilerABI.c.c -dumpbase-ext .c -mtune=generic -march=x86-64 -version -fasynchronous-unwind-tables -o /tmp/cceFB3Sj.s

GNU C17 (Debian 12.2.0-14) version 12.2.0 (x86_64-linux-gnu)

compiled by GNU C version 12.2.0, GMP version 6.2.1, MPFR version 4.1.1-p1, MPC version 1.3.1, isl version isl-0.25-GMP


warning: MPFR header version 4.1.1-p1 differs from library version 4.2.0.

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"

ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/12/include-fixed"

ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include"

#include "..." search starts here:

#include <...> search starts here:

/usr/lib/gcc/x86_64-linux-gnu/12/include

/usr/local/include

/usr/include/x86_64-linux-gnu

/usr/include

End of search list.

GNU C17 (Debian 12.2.0-14) version 12.2.0 (x86_64-linux-gnu)

compiled by GNU C version 12.2.0, GMP version 6.2.1, MPFR version 4.1.1-p1, MPC version 1.3.1, isl version isl-0.25-GMP


warning: MPFR header version 4.1.1-p1 differs from library version 4.2.0.

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

Compiler executable checksum: cc72d2b9b5048fedc2be9051c917b40b

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_32dd0.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_32dd0.dir/'

as -v --64 -o CMakeFiles/cmTC_32dd0.dir/CMakeCCompilerABI.c.o /tmp/cceFB3Sj.s

GNU assembler version 2.40 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.40

COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/

LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../:/lib/:/usr/lib/

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_32dd0.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_32dd0.dir/CMakeCCompilerABI.c.'

[2/2] Linking C executable cmTC_32dd0

Using built-in specs.

COLLECT_GCC=/usr/bin/cc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/12/lto-wrapper

OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa

OFFLOAD_TARGET_DEFAULT=1

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Debian 12.2.0-14' --with-bugurl=file:///usr/share/doc/gcc-12/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-12 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-12-bTRWOB/gcc-12-12.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-12-bTRWOB/gcc-12-12.2.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

Thread model: posix

Supported LTO compression algorithms: zlib zstd

gcc version 12.2.0 (Debian 12.2.0-14)

COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/

LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../:/lib/:/usr/lib/

COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_32dd0' '-mtune=generic' '-march=x86-64' '-dumpdir' 'cmTC_32dd0.'

/usr/lib/gcc/x86_64-linux-gnu/12/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/12/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/12/lto-wrapper -plugin-opt=-fresolution=/tmp/cclrGapo.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_32dd0 /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/12/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/12 -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/12/../../.. CMakeFiles/cmTC_32dd0.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/12/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crtn.o

COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_32dd0' '-mtune=generic' '-march=x86-64' '-dumpdir' 'cmTC_32dd0.'
 

Tuna

Member
You should try a tag. Not sure where OBS mentions Debian is the only support to build on as the only native release is for Ubuntu.

At least avdevice seems missing from the detect ffmpeg libraries. So you may just be missing some packages. Please note that the building wiki is community maintained and may be out of date on some points.
 

lookingin

New Member
Commit 144599f is tag version 30.2.3.

About platform, I think I misread something. Considering their relative compatibility, I have a tendency to read Ubuntu and think Debian. In short, mea culpa!

It seems promising, however, that there is something that is missing. What sort of packages might be missing?
 
Top