DebianでOpenBroadcasterをコンパイルする

DebianでOpenBroadcasterをコンパイルする

以下の説明に従ってDebianでobsをコンパイルしてください。https://github.com/jp9000/obs-studio/blob/master/installation 私には、次のエラーが発生します。

Linking C shared library libobs.so
/usr/bin/ld: /usr/local/lib/../lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/../lib/libavcodec.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
libobs/CMakeFiles/libobs.dir/build.make:1591: recipe for target 'libobs/libobs.so.0' failed
make[2]: *** [libobs/libobs.so.0] Error 1
CMakeFiles/Makefile2:333: recipe for target 'libobs/CMakeFiles/libobs.dir/all' failed
make[1]: *** [libobs/CMakeFiles/libobs.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

コンパイルしようとしましたが、-fPIC次のエラーが発生します。

make: PIC: File or Directory not found
make: *** No rule to make target 'PIC'. stop.

ベストアンサー1

ただここのガイドに従い、効果がありました。https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

おすすめ記事