"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

#include doesn't work

Hello,

I get some issues while trying to make my own ImageTarget. Based on ImageTarget sample, I tried to make my own app, but i have issues with the android.mk file.

When i put the " #include <QCAR/xxxx.h> " in my .cpp file and when i put " LOCAL_SHARED_LIBRARIES := QCAR-prebuilt " in android.mk file, the ndk-build works but the app closes with the following error : the library libndkmain.so could not be loaded.

However, when i remove the #include <QCAR.xxxx.h> and the lane of the android.mk, it works fine (but i can't use QCAR library this way..)

Thanks in advance for help.

Hello,

It appears you are missing a few lines from the Android.mk file. See the ImageTargets sample Android.mk file. At the top you will see where the QCAR-prebuilt module is defined. Without these lines the local_shared_libraries definition won't work.