Android Studio Wikitiude Error

I have this error when I try to run Wikitude examples. How can i solve this.

Error: error: C: / Users / se / Desktop / wwww / Examples / SDKExamples / plugins / src / main / cpp / jni /../ lib / x86 / libippicv.a (jmp_icvippiMulC_32f_C1IR_as.so): moving R_386_GOTOFF against the character being chased icv_ippJumpIndexForMergedLibs cannot be used when creating a shared object

Error: Error: Linker command failed with exit code 1 (use -v to see the call)

+5
source share
3 answers

I had the same problem, but I think I found this problem. I think the problem lies in the new version of NDK, so you can try to reinstall it.

Open the SDK Manager and go to the Appearance & Behavior/System Settings/Android SDK .

From the tab menu, select "SDK Tools" and uncheck the NDK checkbox -> Apply box. After removal → mark NDK and apply again.

In addition, after installing NDK, delete the build folder in your project (only the one where the intermediates folder is located in it).

Your errors will still occur when you make a project, but your code will work when you click Debug .

This work worked for me, so I hope it works for you too.

0
source

I have the same error, sorry, I can not add a comment, because there is not enough reputation.

Error: error: /Users/alex/Projects/Android/docsign/opencv/src/sdk/native/3rdparty/libs/x86/libippicv.a (jmp_icvippiTranspose_32s_C4IR_as.so) cannot be used to create the R_386_GOTOffLifJerfferff for shared facility

This is the latest Android studio and NDK, and I use OpenCV,

Android Studio 3.0.1 NDK 16.0.4442984

This does not happen on my other machine that does not have an NDK update.

Update: Guys supporting OpenCV for Android advised me to add the following line to the CMake file to avoid compilation errors with the new NDK.

set (CMAKE_SHARED_LINKER_FLAGS "$ {CMAKE_SHARED_LINKER_FLAGS} -Wl, - exclude-libs, libippicv.a -Wl, - exclude-libs, libippiw.a")

https://github.com/opencv/opencv/issues/10229#issuecomment-370326899

+6
source

Android Wikitude samples will not work with Android NDK 16 at this time. You need to downgrade Android NDK to 14.

Alternatively, you can simply remove the functions of the plugins from the assembly. To do this, remove the include for ':plugins' from the settings.gradle file and the lines that link to ':plugins' in the main build.gradle file.

0
source

Source: https://habr.com/ru/post/1273486/


All Articles