Log in or register to post comments

New ndk-build issue

March 26, 2012 - 5:03am #1

So I'm getting this a problem with ndk-build command as of this morning...uff is

Basically looks like the pre-compile stuff isn't working correctly.
Sample:

Compile++ arm  : ImageTargets <= /home/robertross/Development/vuforia-sdk-android-1-5-9/samples/ImageTargets/jni/ImageTargets.cpp
/home/robertross/Development/vuforia-sdk-android-1-5-9/samples/ImageTargets/jni/ImageTargets.cpp:29:23: error: QCAR/QCAR.h: No such file or directory
/home/robertross/Development/vuforia-sdk-android-1-5-9/samples/ImageTargets/jni/ImageTargets.cpp:30:31: error: QCAR/CameraDevice.h: No such file or directory
ETC.

Link to full error here

I know someone's going to say that my directory tree is wrong but I've also tested this in the vuforia samples and I'm still pretty much getting the same error.

Android ndk samples build fine.
I updated from r7 to r7b, still nothing.

The Android.mk file looks ok too (I have never made a change there):
LOCAL_SRC_FILES = ../../../build/lib/$(TARGET_ARCH_ABI)/libQCAR.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include

Any suggestions anyone?

Re: New ndk-build issue

March 27, 2012 - 6:25pm #4

Ah, don't you hate that! At least you finally had the flash of insight :) Glad it's working now.

- Kim

Re: New ndk-build issue

March 27, 2012 - 1:27am #3

Spent hours yesterday trying to fix; sat down this morning and new exactly what the problem was.

I had added a custom ndk to my .profile which was overriding the ndk defined in my .bashrc

So it wasn't my build path! :P

Rob.

Re: New ndk-build issue

March 26, 2012 - 10:11pm #2

Did you recently update your Android SDK as well? There's a runtime issue with Revision 17 and the jar file, but that shouldn't affect the ndk-build step...

Try running "ndk-build -B" to force a complete rebuild, does that help?

If not, then I'm going to say there's an issue with your directory tree :) Try reinstalling the Vuforia SDK, perhaps to a separate directory as a quick test.

- Kim

Log in or register to post comments