qt使用assimp加载模型_使用额外的图书馆Qt的构建Android应用程序(Assimp)

在尝试将OpenGL桌面应用移植到Android时,作者遇到问题:使用Qt Creator和android-cmake构建的libassimp.so库无法在Android设备上运行。应用部署后崩溃,提示找不到libassimp.so.3。作者尝试了手动放置库文件、修改链接文件等方法,但问题仍未解决。最终,通过在CMakeLists.txt中调整SET_TARGET_PROPERTIES,取消VERSION和SOVERSION设置,解决了库文件加载失败的问题。
摘要由CSDN通过智能技术生成

Hi I am trying to port an OpenGL desktop app to android. I have no knowledge of android development so am depending on Qt Creator to package the app. As part of the setup, I have invoked 'make-standalone-toolchain' script in android ndk with following settings

--platform=android-21

--toolchain=arm-linux-androideabi-4.9

--system=linux-x86_64

Then I used android-cmake and passed it the path of my newly created standalone-toolchain, which created libassimp.so, libassimp.so.3, and libassimp.so.3.1.1(ln) inside my assimp directory tree.

I passed the libassimp.so path to Qt creator project build menu under 'additional libraries'. However, on deploying the app on android, it crashes with error:

dlopen("/data/app/org.qtproject.example.a3dqtquick-2/lib/arm/lib3dqtquick.so", RTLD_LAZY) failed: dlopen failed: could not load libr

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值