2014-06-24 71 views
3

Project.pro文件:QT的Android UnsatisfiedLinkError無法加載庫

LIBS += -LF:/Path/lib/ -lmyLibrary 
INCLUDEPATH += F:/Path/include/ 

後的項目來看,我有RuntimeError。
日誌:

E/AndroidRuntime(10303): FATAL EXCEPTION: main 
E/AndroidRuntime(10303): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1936]: 85 could not load needed library 'libmyLibrary.so' for 'libProject.so' (load_library[1091]: Library 'libmyLibrary.so' not found) 
E/AndroidRuntime(10303): at java.lang.Runtime.loadLibrary(Runtime.java:370) 
E/AndroidRuntime(10303): at java.lang.System.loadLibrary(System.java:535) 

回答

4

通過加入這一行.pro文件解決的:

ANDROID_EXTRA_LIBS += F:/Path/lib/ -lmyLibrary.so 
相關問題