"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

NDK build error

Hi there,

I'm having a problem regarding building my c++ code.

When attempting to compile, i get the following output:

"D:\\android\\android-ndk-r8e\\ndk-build.cmd" allGdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserverGdbsetup       : libs/armeabi/gdb.setupGdbserver      : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserverGdbsetup       : libs/armeabi-v7a/gdb.setup"Compile++ arm  : ImageTargets <= ImageTargets.cppSharedLibrary  : libImageTargets.soD:/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: ./obj/local/armeabi/libstdc++.a:1:1: syntax error, unexpected '!', expecting $endD:/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: ./obj/local/armeabi/libstdc++.a: not an object or archivecollect2: ld returned 1 exit statusmake: *** [obj/local/armeabi/libImageTargets.so] Error 1

I have no idea why it doesn't work since I have another project which is set up pretty much the same way.

Especially this part: syntax error, unexpected '!', expecting $end seems odd.

What is the problem here?

Thanks a lot in advance!

 

found the error:

I had to delete the obj folder -> afterwards it was successfully build