Project.pro文件:
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)
答案 0 :(得分:4)
通过将此行添加到.pro
文件来解决:
ANDROID_EXTRA_LIBS += F:/Path/lib/ -lmyLibrary.so