Log in or register to post comments

Problem in cygwin

October 14, 2012 - 7:52am #1

I got the following errors when i run the ndk-build command in the cgywin.

 

$ ndk-build

Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver

Gdbsetup       : libs/armeabi/gdb.setup

Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver

Gdbsetup       : libs/armeabi-v7a/gdb.setup

SharedLibrary  : libImageTargets.so

c:/development/android/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/preb uilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-l inux-androideabi/bin/ld.exe: cannot find ./obj/local/armeabi/libQCAR.so: Permiss ion denied

collect2: ld returned 1 exit status

/cygdrive/c/Development/Android/android-ndk-r8b/build/core/build-binary.mk:378:  recipe for target `obj/local/armeabi/libImageTargets.so' failed

make: *** [obj/local/armeabi/libImageTargets.so] Error 1

 

Thanks and seeking reply.

 

Problem in cygwin

April 8, 2014 - 7:27am #26

Sir,

I just go through the step and find nothing wrong in the installation 

there is no way to uninstall cygwin except to stop the services and delete the entire directory but in my case the directory 

has been corrupted that's why it give me the error (0x80070091 The directory is not empty)

so i put it into the separate folder and install it again and then create another directory with C:\cygwin

now it works but 

it doesn't recognize adb command

Problem in cygwin

April 8, 2014 - 12:04am #25

Anita,

looks like you have some issue with your Cygwin instllation; I would probably restart from scratch and go through the setup steps again:

https://developer.vuforia.com/resources/dev-guide/step-1-setting-development-environment-android-sdk

 

Problem in cygwin

April 7, 2014 - 10:50am #24

I have seen this sort of problem suddenly

I have installed cygwin in the directory like C:\cygwin 

but it gives me a bad file descriptor error

AttachmentSize
Image icon Untitled.png22.51 KB

Problem in cygwin

December 7, 2013 - 6:25pm #23

Hello, I have the same problem and i tried yours propositions but still the same error, could somebody help me? Thanks in advance!

/cygdrive/c/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/jni
$ ndk-build
[armeabi] Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
[armeabi] Gdbsetup       : libs/armeabi/gdb.setup
[armeabi-v7a] Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
[armeabi-v7a] Gdbsetup       : libs/armeabi-v7a/gdb.setup
[armeabi] Install        : libImageTargets.so => libs/armeabi/libImageTargets.so
[armeabi] Install        : libQCAR.so => libs/armeabi/libQCAR.so
[armeabi-v7a] SharedLibrary  : libImageTargets.so
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot open C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/libQCAR.so: Permission denied
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function ImageTargets_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/ImageTargets.cpp:95: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initTracker:jni/ImageTargets.cpp:153: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_deinitTracker:jni/ImageTargets.cpp:172: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTrackerData:jni/ImageTargets.cpp:183: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_onQCARInitializedNative:jni/ImageTargets.cpp:297: error: undefined reference to 'QCAR::registerCallback(QCAR::UpdateCallback*)'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:314: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:317: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:337: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:347: error: undefined reference to 'QCAR::State::getTrackableResult(int) const'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:350: error: undefined reference to 'QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:344: error: undefined reference to 'QCAR::State::getNumTrackableResults() const'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::State::~State()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function configureVideoBackground:jni/ImageTargets.cpp:446: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:586: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:593: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:598: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_setProjectionMatrix:jni/ImageTargets.cpp:642: error: undefined reference to 'QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)'
C:/Development/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_initRendering:jni/ImageTargets.cpp:699: error: undefined reference to 'QCAR::requiresAlpha()'
collect2: ld returned 1 exit status
/cygdrive/c/Development/Android/android-ndk-r9b/build/core/build-binary.mk:577: recipe for target '/cygdrive/c/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/libImageTargets.so' failed
make: *** [/cygdrive/c/Development/Android/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7/obj/local/armeabi-v7a/libImageTargets.so] Error 1
 

Problem in cygwin

November 13, 2013 - 6:55am #22

the most recent,i aslo encounter this problem. i also chome - r 777 *  in cygwin .but  it doesn't  work.  eventually, i found the reason. v  should cd ImageTarget-2-6-7/jni. then  use  ndk-build command in cygwin。

Problem in cygwin

October 18, 2013 - 4:33am #21

binspaul wrote:

Hi,

I have updated the Vudoria SDK to version 2.5.7 today. When running the NDK build from Cygwin, I am getting the following error. The NDK build is working perfecty for the old version (2.0.7).

$ ndk-build
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
Install        : libImageTargets.so => libs/armeabi/libImageTargets.so
Install        : libQCAR.so => libs/armeabi/libQCAR.so
SharedLibrary  : libImageTargets.so
C:/android-ndk/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-v7a/libQCAR.so: Permission denied
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function ImageTargets_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/ImageTargets.cpp:95: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initTracker:jni/ImageTargets.cpp:153: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_deinitTracker:jni/ImageTargets.cpp:172: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTrackerData:jni/ImageTargets.cpp:183: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_onQCARInitializedNative:jni/ImageTargets.cpp:297: error: undefined reference to 'QCAR::registerCallback(QCAR::UpdateCallback*)'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:314: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:317: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:337: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:347: error: undefined reference to 'QCAR::State::getTrackableResult(int) const'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:350: error: undefined reference to 'QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:344: error: undefined reference to 'QCAR::State::getNumTrackableResults() const'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::State::~State()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function configureVideoBackground:jni/ImageTargets.cpp:446: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:586: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:593: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:598: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_setProjectionMatrix:jni/ImageTargets.cpp:642: error: undefined reference to 'QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_initRendering:jni/ImageTargets.cpp:699: error: undefined reference to 'QCAR::requiresAlpha()'
collect2: ld returned 1 exit status
/cygdrive/c/android-ndk/build/core/build-binary.mk:450: recipe for target `obj/local/armeabi-v7a/libImageTargets.so' failed
make: *** [obj/local/armeabi-v7a/libImageTargets.so] Error 1
 
---
 
The path screen shot is attached with this message. I also tried running the Cygwin as admin, but was getting the same result.
 
What is the possible solution to fix this build error?
 
Thanks,
Binu Paul

 

you can try : 

cd /cygdrive/c/Development/Android/vuforia-sdk-android-2-5-7/samples

chmod 777 *

 

try to ndk-build again your project, if still the same error, do this : 

cd /ImageTargets-2-6-7

chmod 777 *

 

and try to ndk-build again. it worked for me, i hope it help :)

Problem in cygwin

September 22, 2013 - 10:41am #20

Your error message indicates that you have some file permission issue;

Have you tried navigating to the Vuforia installation directory and typing:

 chmod  -R  777  *

at the cygwin console ?

(as already indicated in this thread?)

 

 

 

Problem in cygwin - ndk-build

September 20, 2013 - 12:38pm #19

 /cygdrive/c/Development/vuforia-sdk-android-2-6-10/samples/ImageTargets-2-6-7
$ ndk-build
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
SharedLibrary  : libImageTargets.so
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/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-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function ImageTargets_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/ImageTargets.cpp:95: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initTracker:jni/ImageTargets.cpp:153: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_deinitTracker:jni/ImageTargets.cpp:172: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTrackerData:jni/ImageTargets.cpp:183: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_onQCARInitializedNative:jni/ImageTargets.cpp:297: error: undefined reference to 'QCAR::registerCallback(QCAR::UpdateCallback*)'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:314: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:317: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:337: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:347: error: undefined reference to 'QCAR::State::getTrackableResult(int) const'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:350: error: undefined reference to 'QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:344: error: undefined reference to 'QCAR::State::getNumTrackableResults() const'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::State::~State()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function configureVideoBackground:jni/ImageTargets.cpp:446: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:586: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:593: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:598: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_setProjectionMatrix:jni/ImageTargets.cpp:642: error: undefined reference to 'QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)'
C:/Development/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_initRendering:jni/ImageTargets.cpp:699: error: undefined reference to 'QCAR::requiresAlpha()'
collect2: ld returned 1 exit status
/cygdrive/c/Development/android-ndk-r9/build/core/build-binary.mk:533: recipe for target `obj/local/armeabi/libImageTargets.so' failed
make: *** [obj/local/armeabi/libImageTargets.so] Error 1

Hi,

I have this problem with cygwin, i have reinstalled cygwin, and the path ist C:\cygwin64, but it dont work. Need a little help

Problem in cygwin

August 28, 2013 - 10:38am #18

Have you put a space between 777 and * ?

This should work (just verified)

 

Problem in cygwin

August 28, 2013 - 10:32am #17

Hi,

I had the exact same problem described by binspaul on June 21 had but when i type 

 

/cygdrive/c/vuforia-2-5-7/samples
$ chmod -R 777 *

in cygwin terminal it says that there's a missing operand after  <<777*>>

Thnk you for all the help.

Problem in cygwin

August 14, 2013 - 7:37am #16

 Ham797,

the issue you report is a build problem raised by a Cocos2dx configuration, not relevant to Vuforia.

Could you avoid posting in this Forum ? Thanks.

 

Problem in cygwin

August 14, 2013 - 7:09am #15

Hello 

After that i am getting this error 

$ ndk-build
Android NDK: jni/Android.mk: Cannot find module with tag 'CocosDenshion/android' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?   
Android NDK: The following directories were searched:
Android NDK:
jni/Android.mk:19: *** Android NDK: Aborting.    .  Stop.
 
please can you help me :(
 
thanks!

Problem in cygwin

August 14, 2013 - 6:44am #14

Hello 

i have also the same problem with cygwin 

$ ./build_native.sh
NDK_ROOT = C:\Projects\android-ndk\
COCOS2DX_ROOT = /cygdrive/c/Projects/cocos2d-x/demo2/proj.android/../..
APP_ROOT = /cygdrive/c/Projects/cocos2d-x/demo2/proj.android/..
APP_ANDROID_ROOT = /cygdrive/c/Projects/cocos2d-x/demo2/proj.android
Using prebuilt externals
make: Entering directory `/cygdrive/c/Projects/cocos2d-x/demo2/proj.android'
SharedLibrary  : libgame.so
C:/Projects/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Projects/cocos2d-x/demo2/proj.android/../../cocos2dx/platform/third_party/android/prebuilt/libcurl/libs/armeabi/libcurl.a(dso_dlfcn.o): in function dlfcn_pathbyaddr:(.text.dlfcn_pathbyaddr+0xe): error: undefined reference to 'dladdr'
collect2: ld returned 1 exit status
/cygdrive/c/Projects/android-ndk/build/core/build-binary.mk:450: recipe for target `obj/local/armeabi/libgame.so' failed
make: *** [obj/local/armeabi/libgame.so] Error 1
make: Leaving directory `/cygdrive/c/Projects/cocos2d-x/demo2/proj.android'
 

 but how can i resolve it please can you tell me this reference my project name is demo2 and i need to run build_native.sh file through cygwin

thats it!

thanks in advance

AttachmentSize
Image icon error3.png73.23 KB

Problem in cygwin

August 6, 2013 - 10:49pm #13

Thank you man. your answer helped me..

Problem in cygwin

June 29, 2013 - 8:39pm #12

Hi, did you rebuild your PATH ?

from build path--> configure path --> export import

and also add your xxx.cpp to android.mk (find this part) LOCAL_SRC_FILES

 

correct me if i'm wrong

Problem in cygwin

June 29, 2013 - 6:54pm #11

Hi,

I moved my custom Video Player project from the folder: C:\vuforia-2-5-7\samples to the path C:\NLAR\projects. When I invoked the command 'ndk-build' from cygwin, I was presented with some errors. What is the reason for this error and how can I fix this. I the API tightly bound to Vuforia path?

---

Binu Paul@Nautilus-Labs /cygdrive/c/NLAR/projects/VideoPlayer
$ pwd
/cygdrive/c/NLAR/projects/VideoPlayer
 
Binu Paul@Nautilus-Labs /cygdrive/c/NLAR/projects/VideoPlayer
$ ndk-build
Android NDK: ERROR:jni/Android.mk:QCAR-prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/../../../build/lib/armeabi/libQCAR.so exists  or that its path is correct
/cygdrive/c/android-ndk/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.
 
---
 
Thanks,
Binu Paul

Problem in cygwin

June 21, 2013 - 8:42am #10

Great! 

 

Problem in cygwin

June 21, 2013 - 8:34am #9

Hi,

I found the fix for this. It is due to the permission issue. The solution is to give full permission to the samples(workspace) folder.

---

Binu Paul@Nautilus-Labs /cygdrive/c/vuforia-2-5-7/samples/ImageTargets-2-5-5
$ cd ..
 
Binu Paul@Nautilus-Labs /cygdrive/c/vuforia-2-5-7/samples
$ chmod -R 777 *
 
Binu Paul@Nautilus-Labs /cygdrive/c/vuforia-2-5-7/samples
$ cd ImageTargets-2-5-5
 
Binu Paul@Nautilus-Labs /cygdrive/c/vuforia-2-5-7/samples/ImageTargets-2-5-5
$ ndk-build
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
Install        : libImageTargets.so => libs/armeabi/libImageTargets.so
Install        : libQCAR.so => libs/armeabi/libQCAR.so
SharedLibrary  : libImageTargets.so
Install        : libImageTargets.so => libs/armeabi-v7a/libImageTargets.so
Install        : libQCAR.so => libs/armeabi-v7a/libQCAR.so

---

 

Thanks,

Binu Paul

Problem in cygwin ndk-build

June 21, 2013 - 7:53am #8

Hi,

I have updated the Vudoria SDK to version 2.5.7 today. When running the NDK build from Cygwin, I am getting the following error. The NDK build is working perfecty for the old version (2.0.7).

$ ndk-build
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
Install        : libImageTargets.so => libs/armeabi/libImageTargets.so
Install        : libQCAR.so => libs/armeabi/libQCAR.so
SharedLibrary  : libImageTargets.so
C:/android-ndk/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-v7a/libQCAR.so: Permission denied
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function ImageTargets_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/ImageTargets.cpp:95: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initTracker:jni/ImageTargets.cpp:153: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_deinitTracker:jni/ImageTargets.cpp:172: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTrackerData:jni/ImageTargets.cpp:183: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_onQCARInitializedNative:jni/ImageTargets.cpp:297: error: undefined reference to 'QCAR::registerCallback(QCAR::UpdateCallback*)'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:314: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:317: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:337: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:347: error: undefined reference to 'QCAR::State::getTrackableResult(int) const'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:350: error: undefined reference to 'QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:344: error: undefined reference to 'QCAR::State::getNumTrackableResults() const'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::State::~State()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function configureVideoBackground:jni/ImageTargets.cpp:446: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:586: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:593: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera:jni/ImageTargets.cpp:598: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_setProjectionMatrix:jni/ImageTargets.cpp:642: error: undefined reference to 'QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)'
C:/android-ndk/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_initRendering:jni/ImageTargets.cpp:699: error: undefined reference to 'QCAR::requiresAlpha()'
collect2: ld returned 1 exit status
/cygdrive/c/android-ndk/build/core/build-binary.mk:450: recipe for target `obj/local/armeabi-v7a/libImageTargets.so' failed
make: *** [obj/local/armeabi-v7a/libImageTargets.so] Error 1
 
---
 
The path screen shot is attached with this message. I also tried running the Cygwin as admin, but was getting the same result.
 
What is the possible solution to fix this build error?
 
Thanks,
Binu Paul
AttachmentSize
Image icon 2013-06-21_202118.png45.98 KB
Binary Data bytes

Problem in cygwin

October 15, 2012 - 11:29am #7

You're welcome.

Problem in cygwin

October 15, 2012 - 8:48am #6

Thanks AlessandroB,

I reinstall the cygwin and the SDK. Now is working properly.

Problem in cygwin

October 15, 2012 - 7:26am #5

Hi, this looks like you have some problems with your 'cygwin' and 'make' installation;

one of the reasons you might get that error is for instance if you have installed cygwin in a directory which contains spaces in directory name (such as "C:\Program Files\cygwin" or similar) ?

If that is the case, I would recommend you reinstall cygwin in a directory without spaces (ideally I would suggest installing cygwin into C:\Cygwin, or maybe C:\GNU\Cygwin, and avoid using Program Files directory, if that's the case for you currently).

 

 

Problem in cygwin

October 15, 2012 - 7:18am #4

I tried using "Run as administrator", but the following message was displayed:

$ ndk-build

obj/local/armeabi/objs-debug/ImageTargets/SampleUtils.o.d:1: *** multiple target patterns.  Stop.

Problem in cygwin

October 15, 2012 - 6:44am #3

A possible third solution is to run Cygwin with administrator rights (i.e. right click on Cygwin executable and choose "Run as adminstrator"); this should avoid to get blocked by any permission issues when running make from cygwin.

Problem in cygwin

October 15, 2012 - 6:35am #2

Hi, one possible reason for your compile error could be that the UAC (User Account Control) of Windows is preventing access to the .so files; if that is the case, one way of solving it is to disable the UAC.

Another possiblity is to run "ndk-build" from a Windows command console (which you can start by typing cmd at the bottom of the Start menu of your Windows installation) instead of using the cygwin console; this is possible since NDKr7 and above (so also in your case) do not need to run under cygwin.

 

Log in or register to post comments