我试图运行wikitude增强现实样本应用程序。在Application构建时,我收到以下警告:
Module 'plugins' has variant 'allarchsDebug' selected, but the module ''app'' depends on variant 'allarchsRelease'
但是应用程序构建成功,当我尝试在真实设备上运行应用程序时,我得到以下异常:
Build command failed.
Error while executing process C:\Users\Darkwood\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\Computer\Android4\NativeSDKExamples\plugins\src\main\cpp\jni\Android.mk NDK_APPLICATION_MK=E:\Computer\Android4\NativeSDKExamples\plugins\src\main\cpp\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=0 APP_PLATFORM=android-19 NDK_OUT=E:/Computer/Android4/NativeSDKExamples/plugins/build/intermediates/ndkBuild/allarchs/release/obj NDK_LIBS_OUT=E:\Computer\Android4\NativeSDKExamples\plugins\build\intermediates\ndkBuild\allarchs\release\lib E:/Computer/Android4/NativeSDKExamples/plugins/build/intermediates/ndkBuild/allarchs/release/obj/local/x86/libwikitudePlugins.so}
[x86] SharedLibrary : libwikitudePlugins.so
并且异常体的其余部分非常长并且超过30000个字符因此不会被stackoverflow接受,部分内容:
C:/Users/Darkwood/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: E:/Computer/Android4/NativeSDKExamples/plugins/src/main/cpp/jni/../lib/x86/libippicv.a(jmp_icvippiNormDiff_L2_8u_C4R_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object
C:/Users/Darkwood/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: E:/Computer/Android4/NativeSDKExamples/plugins/src/main/cpp/jni/../lib/x86/libippicv.a(jmp_icvippiMulC_32f_C1R_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object
C:/Users/Darkwood/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: E:/Computer/Android4/NativeSDKExamples/plugins/src/main/cpp/jni/../lib/x86/libippicv.a(jmp_icvippiConvert_16s16u_C1Rs_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object
C:/Users/Darkwood/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: E:/Computer/Android4/NativeSDKExamples/plugins/src/main/cpp/jni/../lib/x86/libippicv.a(jmp_icvippiDCTFwdInit_32f_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object
。 。 。 。 。 最后在例外的底部:
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [E:/Computer/Android4/NativeSDKExamples/plugins/build/intermediates/ndkBuild/allarchs/release/obj/local/x86/libwikitudePlugins.so] Error 1
应用程序依赖于c ++插件,所以这可能是问题,我没有创建项目所以我没有启用NDK,我不知道该怎么办? 任何进一步的细节在评论中告诉我,我会立即提供。 提前谢谢你。