我想在crystalax ndk上从Google替换android ndk。我安装了它并指向设置中的路径。但出现错误
错误:找不到-lcrystax collect2.exe:错误:ld返回1退出状态
I tried to correct the error using article。之后出现错误
错误:找不到-lcrystax
被淘汰
但是错误
collect2.exe:错误:ld返回1个退出状态
保留
我的.pro文件如下:
android {
INCLUDEPATH += $$NDK_ROOT/sources/crystax/include \
$$NDK_ROOT/sources/boost/1.58.0/include \
$$PWD/ssl
LIBS += -L"$$PWD/ssl" -lssl -lcrypto
LIBS += -L"$$NDK_ROOT/sources/crystax/libs/$$ANDROID_TARGET_ARCH"
ANDROID_EXTRA_LIBS = $$NDK_ROOT/sources/crystax/libs/$$ANDROID_TARGET_ARCH/libcrystax.so
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
ANDROID_EXTRA_LIBS = $$NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9/libgcc.a}
static {
System.loadLibrary( "crystax" ); }