아래 설명에 따라 데비안에서 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