I'm currently trying to compile native code for Android. Code from the OpenCV port for Android. I correctly embedded all the code in my project and edited my files accordingly. When I set android: debuggable to false everything works fine and I get my own library. When I try in android: debuggable is set to true, I get an error. Here is the part of the magazine:
Compile++ thumb: cxcore <= AR_Still_Image/jni/cxcore/src/cxutils.cpp
AR_Still_Image/jni/cxcore/src/cxutils.cpp: In function 'void icvSort16u(ushort*, size_t, int)':
AR_Still_Image/jni/cxcore/src/cxutils.cpp:987: internal compiler error: in reload, at reload1.c:1173
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [AR_Still_Image/obj/local/armeabi/objs/cxcore/cxcore/src/cxutils.o] Error 1
From what I found on the Internet, this is due to the level of compilation optimization. So far, the code has not been compiled, so after that everything should be fine-tuned.
Now, apparently, this can be avoided by installing APP-OPTIM := releasein Application.mk or adding -O2to LOCAL_CFLAGS. I tried both, and still get this error.
I'm currently not really interested in debugging my own code, but I would like basic debugging enabled. And I don't want to keep switching Android: debugging in my manifest every time I want to compile. I'm not even sure that everything is fine if I just install the android: debug before compiling with fake pre-compilation and compiling the true message, but I'm sure that I will forget this every second run.
Has anyone encountered a similar problem or does anyone know how to fix this? That would be a big help.