By GabrielS
on Thu, 07/12/2012 - 09:43
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.
#include doesn't work
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.
#include doesn't work
Hey Peter,
I missed two lanes from the Android.mk, it finally works !
Thanks.