首页| 论坛| 消息
主题:请教下大佬们qt android怎么编译ffmpeg库
koniue发表于 2022-08-08 22:29
本来是想在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"
回帖(4):
4楼:20091001753:
就像在 Win系统里,dll 会有 32位 和 64位 的区别。
同理,安卓系统,.a ..
3楼:就像在 Win系统里,dll 会有 32位 和 64位 的区别。
同理,安卓系统,.a 文件也有类似的区别 ..
2楼:liudianwu:注意位数 (2022-08-09 09:22) 
大佬能详细的说下嘛

全部回帖(4)»
最新回帖
收藏本帖
发新帖