Log in or register to post comments

I can't Build ImageTargets shared library

June 11, 2013 - 6:40am #1

I try to build ImageTargets shared library through cygwin but the displayed message is:

"   $ ndk-build
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
/cygdrive/c/Users/Dimitris/Desktop/ANDROID/adt-bundle-windows-x86/android-ndk-r8e/build/core/build-local.mk:130: *** Android NDK: Aborting    .  Stop.  "

I can assure you that no empty character is to the path of my project directory.

I have located ImageTargets project into the folder : C:\Users\Dimitris\Desktop\ANDROID\adt-bundle-windows-x86\samples

Is there anything I can do so as to successfully build ImageTargets shared library???

I can't Build ImageTargets shared library

March 30, 2016 - 4:36pm #15

Hallo Admin, currently I need to migrate my android project from Vuforia 3 to Vuforia 5.

My current error is a bit similar like this case. However, I have no problem with Permission, but have the following error lines while building my codes with Vuforia SDK Android 5.0.5:

.........

[armeabi-v7a] Compile++ arm  : ImageTargetsNative <= ImageTargets.cpp
[armeabi-v7a] Compile++ arm  : ImageTargetsNative <= SampleUtils.cpp
[armeabi-v7a] Compile++ arm  : ImageTargetsNative <= SampleMath.cpp
[armeabi-v7a] Compile++ arm  : ImageTargetsNative <= Texture.cpp
[armeabi-v7a] SharedLibrary  : libImageTargetsNative.so
jni/ImageTargets.cpp:92: error: undefined reference to 'QCAR::ObjectTracker::getClassType()'
jni/ImageTargets.cpp:159: error: undefined reference to 'QCAR::ObjectTracker::getClassType()'
jni/ImageTargets.cpp:178: error: undefined reference to 'QCAR::ObjectTracker::getClassType()'
jni/ImageTargets.cpp:190: error: undefined reference to 'QCAR::ObjectTracker::getClassType()'
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi-v7a/libImageTargetsNative.so] Error 1
..........

I also have tried to do this with SDK 5.5.9, and follow the instruction described here: https://developer.vuforia.com/library/articles/Solution/How-to-Migrate-an-Android-Project

But somehow I ended up in the same problem... "undefined reference" problem. I have tried to search for similar case on the internet, but still no luck...

FYI, I do not use cygwin, since I use Ubuntu.

I can't Build ImageTargets shared library

October 15, 2013 - 10:27am #14

yes, its working now. problem was my system path was wrong. 

I can't Build ImageTargets shared library

October 14, 2013 - 10:39am #13

Have you tried chmod -R 777 * on both the vuforia install directory and your sample/project dir ?

 

I can't Build ImageTargets shared library

October 14, 2013 - 9:33am #12

Hi.. i have the same problem. I will Admit first, i have a different folder structure than the one in your guide because i already had both SDK and NDK setup from another project. I got some problems like in the previous post and after trying the chmod -R 777 * command i get this new error. could you please help me. Thank you

 

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
Install        : libImageTargets.so => libs/armeabi/libImageTargets.so
Install        : libQCAR.so => libs/armeabi/libQCAR.so
Compile++ arm    : ImageTargets <= ImageTargets.cpp
Compile++ arm    : ImageTargets <= SampleUtils.cpp
Compile++ arm    : ImageTargets <= Texture.cpp
Prebuilt       : libQCAR.so <= jni/../../../build/lib/armeabi-v7a/
StaticLibrary  : libstdc++.a
SharedLibrary  : libImageTargets.so
C:/AndroidNDK/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-v7a/libQCAR.so: Permission denied
C:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-v7a/objs-debug/ImageTargets/ImageTargets.o: in function configureVideoBackground:jni/ImageTargets.cpp:446: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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:/AndroidNDK/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-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/AndroidNDK/android-ndk-r9/build/core/build-binary.mk:533: recipe for target `obj/local/armeabi-v7a/libImageTargets.so' failed
make: *** [obj/local/armeabi-v7a/libImageTargets.so] Error 1
 

I can't Build ImageTargets shared library

September 11, 2013 - 2:20am #11

You're welcome.

I can't Build ImageTargets shared library

September 11, 2013 - 12:44am #10

Thank you...problem solved

I can't Build ImageTargets shared library

September 10, 2013 - 2:40am #9

@ ,

your error logs indicate that you have file permission problem;

if you search the Forum, you would find that this has been already replied many times,

see here for instance:

https://developer.vuforia.com/forum/android/problem-cygwin

(you need to use chmod -R 777 *)

I can't Build ImageTargets shared library

September 10, 2013 - 1:35am #8

Hey I followed Installation instructions but still am getting a big error which is

Tarun@Tarun-PC /cygdrive/c/Development/Android/vuforia-sdk-android-2-6-10/sample
s/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
Cygwin         : Generating dependency file converter script
Compile++ arm    : ImageTargets <= ImageTargets.cpp
Compile++ arm    : ImageTargets <= SampleUtils.cpp
Compile++ arm    : ImageTargets <= Texture.cpp
Prebuilt       : libQCAR.so <= jni/../../../build/lib/armeabi/
StaticLibrary  : libstdc++.a
SharedLibrary  : libImageTargets.so
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: error: cannot open ./obj/local/armeabi/libQCAR.so: Per
mission denied
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function ImageTargets_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/I
mageTargets.cpp:95: error: undefined reference to 'QCAR::TrackerManager::getInst
ance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initTr
acker:jni/ImageTargets.cpp:153: error: undefined reference to 'QCAR::TrackerMana
ger::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_deinit
Tracker:jni/ImageTargets.cpp:172: error: undefined reference to 'QCAR::TrackerMa
nager::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTr
ackerData:jni/ImageTargets.cpp:183: error: undefined reference to 'QCAR::Tracker
Manager::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_onQCAR
InitializedNative:jni/ImageTargets.cpp:297: error: undefined reference to 'QCAR:
:registerCallback(QCAR::UpdateCallback*)'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRendere
r_renderFrame:jni/ImageTargets.cpp:314: error: undefined reference to 'QCAR::Ren
derer::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRendere
r_renderFrame:jni/ImageTargets.cpp:317: error: undefined reference to 'QCAR::Ren
derer::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRendere
r_renderFrame:jni/ImageTargets.cpp:337: error: undefined reference to 'QCAR::Ren
derer::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRendere
r_renderFrame:jni/ImageTargets.cpp:347: error: undefined reference to 'QCAR::Sta
te::getTrackableResult(int) const'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRendere
r_renderFrame:jni/ImageTargets.cpp:350: error: undefined reference to 'QCAR::Too
l::convertPose2GLMatrix(QCAR::Matrix34F const&)'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRendere
r_renderFrame:jni/ImageTargets.cpp:344: error: undefined reference to 'QCAR::Sta
te::getNumTrackableResults() const'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRendere
r_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::Ren
derer::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRendere
r_renderFrame:jni/ImageTargets.cpp:438: error: undefined reference to 'QCAR::Sta
te::~State()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function configureVideoBackground:jni/ImageTargets.cpp:446: error: unde
fined reference to 'QCAR::CameraDevice::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startC
amera:jni/ImageTargets.cpp:586: error: undefined reference to 'QCAR::CameraDevic
e::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startC
amera:jni/ImageTargets.cpp:593: error: undefined reference to 'QCAR::CameraDevic
e::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startC
amera:jni/ImageTargets.cpp:598: error: undefined reference to 'QCAR::CameraDevic
e::getInstance()'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_setPro
jectionMatrix:jni/ImageTargets.cpp:642: error: undefined reference to 'QCAR::Too
l::getProjectionGL(QCAR::CameraCalibration const&, float, float)'
C:/Development/Android/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebu
ilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linu
x-androideabi/bin/ld.exe: ./obj/local/armeabi/objs-debug/ImageTargets/ImageTarge
ts.o: in function Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRendere
r_initRendering:jni/ImageTargets.cpp:699: error: undefined reference to 'QCAR::r
equiresAlpha()'
collect2: ld returned 1 exit status
/cygdrive/c/Development/Android/android-ndk-r9/build/core/build-binary.mk:533: r
ecipe for target `obj/local/armeabi/libImageTargets.so' failed
make: *** [obj/local/armeabi/libImageTargets.so] Error 1
 
Tarun@Tarun-PC /cygdrive/c/Development/Android/vuforia-sdk-android-2-6-10/sample
s/ImageTargets-2-6-7
$

Please help me out

I can't Build ImageTargets shared library

August 22, 2013 - 4:15pm #7

I told you that I solved the problem.

The problem was created due to a bad installation of Android Sdk etc...I followed the procedure according to your site and it worked.

Thanks

I can't Build ImageTargets shared library

August 19, 2013 - 4:15am #6

I think the sentence starting with

Change directory to ImageTargets in ..

is already telling what you suggest, but thanks for the tip, we'll see how to make that statement clearer.

I can't Build ImageTargets shared library

August 18, 2013 - 6:46am #5

Hello Therio,

 

As Android Getting Started guide's Step 3 below, actually you should direct it to correct project folder ..\samples\ImageTargets, not just \samples, and then keyin "ndk-build".

Build ImageTargets shared library

Change directory to ImageTargets in the <DEVELOPMENT_ROOT>\vuforia-sdk-android-xx-yy-zz\samples\ImageTargets directory and execute: ndk-build

 

Best,

Jay

I can't Build ImageTargets shared library

June 17, 2013 - 5:44am #4

glad to help!

I can't Build ImageTargets shared library

June 17, 2013 - 5:36am #3

Thank you very much!!!

I tried to avoid this painstaking procedure but I inevitably did it and it did worked.

 

I can't Build ImageTargets shared library

June 11, 2013 - 7:36am #2

Hi, make sure you have also followed the instructions on how to setup the NDK and how to install Vuforia;

https://developer.vuforia.com/resources/sdk/android

I would suggest to follow the recommended directory structure as explained in the guide.

Log in or register to post comments