本来是想在windows编译ffmpeg库的,结果按照教程没编出来,然后想转移到ubuntu下,结果库是编成了,但是用的时候报错了,请教下大家这是怎么回事
环境:
Qt5.15.2
jdk1.8.0_341
ndk/21.3.6528147
android_openssl
之前用的是动态库,后来改成了静态库:
INCLUDEPATH += $$PWD/ffmpeg/include
DEPENDPATH += $$PWD/ffmpeg
LIBS += $$PWD/ffmpeg/lib/libavcodec.a
LIBS += $$PWD/ffmpeg/lib/libavdevice.a
LIBS += $$PWD/ffmpeg/lib/libavfilter.a
LIBS += $$PWD/ffmpeg/lib/libavformat.a
LIBS += $$PWD/ffmpeg/lib/libavutil.a
LIBS += $$PWD/ffmpeg/lib/libpostproc.a
LIBS += $$PWD/ffmpeg/lib/libswresample.a
LIBS += $$PWD/ffmpeg/lib/libswscale.a
结果都报错:
:-1: error: linker command failed with exit code 1 (use -v to see invocation)clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** Error 1
:-1: Error while building/deploying project android-test (kit: Android Qt 5.15.2 Clang Multi-Abi)Error while building/deploying project android-test (kit: Android Qt 5.15.2 Clang Multi-Abi)The kit Android Qt 5.15.2 Clang Multi-Abi has configuration issues which might be the root cause for this problem.When executing step "Make"