Log in or register to post comments

Error when compile with Cygwin (Imagetargets2-0-6)

January 6, 2013 - 7:12am #1

 

$ ndk-build
SharedLibrary  : libImageTargets.so
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot open ./obj/local/armeabi/libQCAR.so: Permission denied
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function ImageTargets_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/ImageTargets.cpp:96: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initTracker:jni/ImageTargets.cpp:154: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_deinitTracker:jni/ImageTargets.cpp:173: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTrackerData:jni/ImageTargets.cpp:184: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_onQCARInitializedNative:jni/ImageTargets.cpp:298: error: undefined reference to 'QCAR::registerCallback(QCAR::UpdateCallback*)'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:315: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:318: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:338: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:345: error: undefined reference to 'QCAR::State::getNumTrackableResults() const'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:348: error: undefined reference to 'QCAR::State::getTrackableResult(int) const'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:351: error: undefined reference to 'QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:439: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:439: error: undefined reference to 'QCAR::State::~State()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function configureVideoBackground:jni/ImageTargets.cpp:447: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:587: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:594: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:599: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_setProjectionMatrix:jni/ImageTargets.cpp:643: error: undefined reference to 'QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)'
C:/Development/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_initRendering:jni/ImageTargets.cpp:700: error: undefined reference to 'QCAR::requiresAlpha()'
collect2: ld returned 1 exit status
/cygdrive/c/Development/Android/android-ndk-r8d/build/core/build-binary.mk:397: recipe for target `obj/local/armeabi/libImageTargets.so' failed
make: *** [obj/local/armeabi/libImageTargets.so] Error 1
 
 
 
I try to change AndroidManifest.xml because when it was compiled  it shows red x mark
 
Thank you (Thai student)

Hi Numpon, the best would be

January 7, 2013 - 12:54am #2

Hi Numpon, the best would be to upgrade your Android SDK version to 4.1 (by using the Android SDL Manager in Eclipse) and then make sure that the ImageTarget project is using such Android version;

this should then make the "red marks" disappear from your Android manifest, so that you don;t have to make any changes to it.

If you don't make changes (and if you followed the Vuforia SDK installation instructions precisely) you should not get in any such errors.

IHTH.

Log in or register to post comments