编译 GCC/FFMPEG 库

编译 GCC/FFMPEG 库

无法编译 cpp 文件和一些视频库。所有库实际上都安装并存储在 /usr/lib/x86_64-linux-gnu/ 中。努力寻找所有可能的解决方法,但仍然一无所获。强烈建议

.sh 文件

g++ -Wno-format-zero-length -Wno-write-strings -L/home/supernova/Downloads/ffmpeg/lib/ -L/usr/lib/x86_64-linux-gnu/  -I/home/supernova/ffmpeg/include/ -o bin/ScreenRecorder src/main.cpp src/ScreenRecorder.cpp -lavdevice -lavfilter -lswscale -lavformat -lavcodec -lavutil -lswresample -lm -lva -lpthread -lvorbis -lvpx -lopus -lz -lpostproc -ldl -lfdk-aac -lmp3lame -lvorbisenc -lvorbisfile -lx264 -ltheora -lx265 -ltheoraenc -ltheoradec -ldl -lrt -lbz2 -lasound -lSDL -lSDLmain -lSDL_ttf -lfreetype -lass -llzma -lftgl -lperl -lcrypto -lxcb -lxcb-shm -lxcb-xfixes -lao -lxcb-shape -lfftw3 -lltdl 

错误:

/usr/bin/ld: cannot find -lva 
/usr/bin/ld: cannot find -lvorbis x
/usr/bin/ld: cannot find -lvpx x
/usr/bin/ld: cannot find -lopus
/usr/bin/ld: cannot find -lfdk-aac
/usr/bin/ld: cannot find -lmp3lame
/usr/bin/ld: cannot find -lvorbisenc
/usr/bin/ld: cannot find -lvorbisfile
/usr/bin/ld: cannot find -lx264
/usr/bin/ld: cannot find -ltheora
/usr/bin/ld: cannot find -lx265
/usr/bin/ld: cannot find -ltheoraenc
/usr/bin/ld: cannot find -ltheoradec
/usr/bin/ld: cannot find -lbz2
/usr/bin/ld: cannot find -lasound
/usr/bin/ld: cannot find -lSDL
/usr/bin/ld: cannot find -lSDLmain
/usr/bin/ld: cannot find -lSDL_ttf
/usr/bin/ld: cannot find -lass
/usr/bin/ld: cannot find -lftgl
/usr/bin/ld: cannot find -lxcb-xfixes
/usr/bin/ld: cannot find -lao
/usr/bin/ld: cannot find -lxcb-shape
/usr/bin/ld: cannot find -lfftw3

更新:我根据 Gabriel 的建议更新了一些库。

现在,我需要为以下库安装开发包

/usr/bin/ld: cannot find -lSDL
/usr/bin/ld: cannot find -lSDLmain
/usr/bin/ld: cannot find -lSDL_ttf

这三个实际上已经重新安装了几次了,有什么想法如何修复吗?

相关内容