簡體   English   中英

如何在Android上將Qt(necessitas)與SDL結合?

[英]How to combine qt(necessitas) with SDL on android?

我通過necessitas端口在android上使用Qt。 我正在嘗試將Qt與SDL結合在一起。 當使用SDL調用(SDL_Init)編譯此類項目時,編譯器給我錯誤:JNI_OnLoad的多個定義。

日志:/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):首先在此處定義

有一些捷徑可以解決這個問題嗎?

特定的:在C4droid上編譯(來自Google Play的gcc,necessitas Qt(gui + core)和SDL插件)

謝謝

您應該詢問c4droid的開發人員。 看起來他是個樂於助人的人。 他說在Google Play上遇到麻煩時應與他聯系。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM