[英]How to combine qt(necessitas) with SDL on android?
I am using Qt on android through necessitas port. 我通过necessitas端口在android上使用Qt。 I'm trying to combine Qt with SDL.
我正在尝试将Qt与SDL结合在一起。 When compile such project with SDL invoked (SDL_Init) , compiler gives me error : multiple definition of `JNI_OnLoad'.
当使用SDL调用(SDL_Init)编译此类项目时,编译器给我错误:JNI_OnLoad的多个定义。
LOG : /mnt/sdcard/Android/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/arm-linux-androideabi/4.7.1/../../../../arm-linux-androideabi/lib/libSDL.a(SDL_andvideo.o): In function JNI_OnLoad': SDL_andvideo.c:(.text+0xddc): multiple definition of
JNI_OnLoad' qtmain_android.o:qtmain_android.cpp:(.text.JNI_OnLoad+0x0): first defined here 日志:/mnt/sdcard/Android/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/arm-linux-androideabi/4.7.1/../../../。 ./arm-linux-androideabi/lib/libSDL.a(SDL_andvideo.o):在函数
JNI_OnLoad': SDL_andvideo.c:(.text+0xddc): multiple definition of
JNI_OnLoad的JNI_OnLoad': SDL_andvideo.c:(.text+0xddc): multiple definition of
qtmain_android.o:qtmain_android.cpp :(。 text.JNI_OnLoad + 0x0):首先在此处定义
Is there some short way how to solve this ? 有一些捷径可以解决这个问题吗?
specific : compiling on C4droid (ide from google play with gcc , necessitas Qt(gui + core) , SDL plugin) 特定的:在C4droid上编译(来自Google Play的gcc,necessitas Qt(gui + core)和SDL插件)
thanks 谢谢
You should ask the developer of c4droid. 您应该询问c4droid的开发人员。 Looks like he's a helpful guy.
看起来他是个乐于助人的人。 He says on google play you should contact him if you have trouble.
他说在Google Play上遇到麻烦时应与他联系。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.