Question / Help Can't build OBS (using custom FFmpeg build).

Midnightas

New Member
Here are the commands I used:
Bash:
git clone --recursive https://github.com/obsproject/obs-studio.git
cd obs-studio/
mkdir build32
cd build32
cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
But make -j4 seems to fail around here:
Code:
[  6%] Linking C executable obs-ffmpeg-mux
[  6%] Built target media-playback
[  6%] Built target glad
[  6%] Built target jansson
/usr/local/lib/../lib/libavcodec.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
plugins/obs-ffmpeg/ffmpeg-mux/CMakeFiles/obs-ffmpeg-mux.dir/build.make:97: recipe for target 'plugins/obs-ffmpeg/ffmpeg-mux/obs-ffmpeg-mux' failed
make[2]: *** [plugins/obs-ffmpeg/ffmpeg-mux/obs-ffmpeg-mux] Error 1
CMakeFiles/Makefile2:1107: recipe for target 'plugins/obs-ffmpeg/ffmpeg-mux/CMakeFiles/obs-ffmpeg-mux.dir/all' failed
make[1]: *** [plugins/obs-ffmpeg/ffmpeg-mux/CMakeFiles/obs-ffmpeg-mux.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  6%] Automatic moc for target obs
[  6%] Automatic moc for target decklink-ouput-ui
[  6%] Automatic moc for target frontend-tools
[  6%] Built target obs_automoc
[  6%] Built target decklink-ouput-ui_automoc
[  6%] Built target frontend-tools_automoc
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Which makes me think I might have built FFmpeg in a way that is incompatible with OBS.
My goal is to get VAAPI to be enabled, as the option doesn't seem to be there, even though vainfo says that it's supported.
 

Tuna

Member
Sounds to me that you tried mixing 32-bit and 64-bit. They should be the same architecture.
 

Midnightas

New Member
Sounds to me that you tried mixing 32-bit and 64-bit. They should be the same architecture.
Can I somehow enforce 64-bitness? I did not specify anything like -m32
anywhere, the fact that the build32 directory is called that is just because of me being lazy to rename things.
 
Top