Question / Help Building OBS on Ubuntu 12.04 x64 - error reloc against ff_pw_5

qtr471

New Member
Hi everyone,

i have been trying to build OBS on Ubuntu 12.04 64 bits, and get this error:

Someone could help?
obsstudio-configure-compiling.jpg

Code:
than@than-acer:~/obs-studio/build$ cmake -DCMAKE_C_FLAGS="-fPIC" -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
-- OBS_VERSION: 0.9.1-104-ga090ed5-modified
-- Using system Jansson library
-- XCB[XCB]: Found component XCB
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so
-- Found FFMpeg: /home/than/ffmpeg_build/lib/libavformat.a (found version "56.31.100") found components:  avformat avutil swscale swresample avcodec
-- Using libavcodec for image loading in libobs
-- XCB[XCB]: Found component XCB
-- XCB[RANDR]: Found component RANDR
-- XCB[XINERAMA]: Found component XINERAMA
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so;/usr/lib/x86_64-linux-gnu/libxcb-xinerama.so
-- XCB[XCB]: Found component XCB
-- XCB[SHM]: Found component SHM
-- XCB[XFIXES]: Found component XFIXES
-- XCB[XINERAMA]: Found component XINERAMA
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-shm.so;/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so;/usr/lib/x86_64-linux-gnu/libxcb-xinerama.so
-- Found jack: /usr/lib/x86_64-linux-gnu/libjack.so
-- Found FFMpeg: /home/than/ffmpeg_build/lib/libavcodec.a (found version "56.35.101") found components:  avcodec avfilter avdevice avutil swscale avformat swresample
-- Configuring done
-- Generating done
-- Build files have been written to: /home/than/obs-studio/build


Code:
than@than-acer:~/obs-studio/build$ make -j4 CFLAGS=-fPIC
[  1%] [  7%] [  8%] Automoc for target obs
Built target libff
Built target glad
[  8%] Built target obs_automoc
Linking C shared library libobs.so
/usr/bin/ld: error: /home/than/ffmpeg_build/lib/libavcodec.a(me_cmp.o): requires dynamic R_X86_64_PC32 reloc against 'ff_pb_1' which may overflow at runtime; recompile with -fPIC
/usr/bin/ld: error: /home/than/ffmpeg_build/lib/libavcodec.a(h264_qpel_10bit.o): requires dynamic R_X86_64_PC32 reloc against 'ff_pw_1023' which may overflow at runtime; recompile with -fPIC
/usr/bin/ld: error: /home/than/ffmpeg_build/lib/libavcodec.a(h264_qpel_8bit.o): requires dynamic R_X86_64_PC32 reloc against 'ff_pw_5' which may overflow at runtime; recompile with -fPIC
/usr/bin/ld: error: /home/than/ffmpeg_build/lib/libavcodec.a(hpeldsp.o): requires dynamic R_X86_64_PC32 reloc against 'ff_pb_1' which may overflow at runtime; recompile with -fPIC
/usr/bin/ld: error: /home/than/ffmpeg_build/lib/libswscale.a(swscale.o): requires dynamic R_X86_64_PC32 reloc against 'ff_M24A' which may overflow at runtime; recompile with -fPIC
/usr/bin/ld: error: /home/than/ffmpeg_build/lib/libswscale.a(rgb2rgb.o): requires dynamic R_X86_64_PC32 reloc against 'ff_w1111' which may overflow at runtime; recompile with -fPIC
collect2: ld devolvió el estado de salida 1
make[2]: *** [libobs/libobs.so.0] Error 1
make[1]: *** [libobs/CMakeFiles/libobs.dir/all] Error 2
make: *** [all] Error 2
than@than-acer:~/obs-studio/build$


https://obsproject.com/download#linux
https://github.com/jp9000/obs-studio/blob/master/INSTALL
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu


Thanks
 
Last edited:
Top