Topic locked

The library libQCAR.so could not be loaded

December 27, 2012 - 8:35pm #1

Hi Everyone ,

                        I have installed the android sdk and Vuforia ,my problem is when i'm trying to run the sample (Image Targets ) it's running but when i click on the start button it is showing the "unfortunatly image targets has stopped"

In my logcat it showing

The library libQCAR.so could not be loaded
The library libMultiTargets.so could not be loaded

12-28 09:55:47.400: W/dalvikvm(799): threadid=1: thread exiting with uncaught exception (group=0x40a70930)
12-28 09:55:47.459: E/AndroidRuntime(799): FATAL EXCEPTION: main
12-28 09:55:47.459: E/AndroidRuntime(799): java.lang.UnsatisfiedLinkError: Native method not found: com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative:()I
12-28 09:55:47.459: E/AndroidRuntime(799):     at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative(Native Method)
12-28 09:55:47.459: E/AndroidRuntime(799):     at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags(ImageTargets.java:384)
12-28 09:55:47.459: E/AndroidRuntime(799):     at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:355)
12-28 09:55:47.459: E/AndroidRuntime(799):     at android.app.Activity.performCreate(Activity.java:5104)
12-28 09:55:47.459: E/AndroidRuntime(799):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
12-28 09:55:47.459: E/AndroidRuntime(799):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
12-28 09:55:47.459: E/AndroidRuntime(799):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
12-28 09:55:47.459: E/AndroidRuntime(799):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-28 09:55:47.459: E/AndroidRuntime(799):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
12-28 09:55:47.459: E/AndroidRuntime(799):     at android.os.Handler.dispatchMessage(Handler.java:99)
12-28 09:55:47.459: E/AndroidRuntime(799):     at android.os.Looper.loop(Looper.java:137)
12-28 09:55:47.459: E/AndroidRuntime(799):     at android.app.ActivityThread.main(ActivityThread.java:5039)
12-28 09:55:47.459: E/AndroidRuntime(799):     at java.lang.reflect.Method.invokeNative(Native Method)
12-28 09:55:47.459: E/AndroidRuntime(799):     at java.lang.reflect.Method.invoke(Method.java:511)
12-28 09:55:47.459: E/AndroidRuntime(799):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
12-28 09:55:47.459: E/AndroidRuntime(799):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
12-28 09:55:47.459: E/AndroidRuntime(799):     at dalvik.system.NativeStart.main(Native Method)

 

Can anyone help me ..

 

The library libQCAR.so could not be loaded

February 22, 2015 - 6:43am #39

You're welcome.

The library libQCAR.so could not be loaded

February 22, 2015 - 3:42am #38

Thanks! That fix the problem for me

The library libQCAR.so could not be loaded

February 21, 2015 - 4:12am #37

Hi eddingnr,

as you can see in this line:

<fileset dir="../../build/lib/armeabi-v7a"/>

the copy "from" directory is two levels up ( "../../ ") with respect to the location of the sample dir (where the CopyVuforiaFiles.xml is located), so, you have 2 options

1. you can correct that path (e.g. replace "../../" with just one "../") 

or

2. you can copy your project dir under samples (i.e. move it one level down in a subdirectory)

More in general, just prefix the correct number of  "../" to the path in fileset dir above, based on the actual relative location of your project w.r.t the SDK location

 

The library libQCAR.so could not be loaded

February 19, 2015 - 3:03pm #36

Same problem here.

Seems like it is missing one step when trying to find  armeabi-v7a. Mine is located at C:\Users\elcrack\AppData\Local\Android\vuforia-sdk-3.0\build\lib\armeabi-v7a but it is looking at C:\Users\elcrack\AppData\Local\Android\build\lib\armeabi-v7a

I have also declared my QCAR_SDK_ROOT classpath variable like :  C:/Users/elcrack/AppData/Local/Android/vuforia-sdk-3.0

 
 
CopyVuforiaSo:
 
BUILD FAILED
C:\Users\elcrack\AppData\Local\Android\vuforia-sdk-3.0\samples\CopyVuforiaFiles.xml:4: C:\Users\elcrack\AppData\Local\Android\build\lib\armeabi-v7a does not exist.
 
Total time: 361 milliseconds
 
 
 
 
This error refers to this:
<?xml version="1.0" encoding="UTF-8"?>
<project name="VuforiaSamples" default="CopyVuforiaSo">
    <target name="CopyVuforiaSo">
        <copy overwrite="true" todir="libs/armeabi-v7a">
			<fileset dir="../../build/lib/armeabi-v7a"/>
		</copy>
    </target>
</project>

 

 

Does someone know how to fix this?

 

The library libQCAR.so could not be loaded

March 22, 2014 - 5:00am #35

I have same problem and ı can't fix it . So Crazy.  I hope , someone help us :(

The library libQCAR.so could not be loaded

February 21, 2014 - 8:28am #34

Perhaps you forgot to set teh QCAR_SDK_ROOT in your build path variables.

Make sure to read carefully the Getting started guide, and follow all the steps there:

https://developer.vuforia.com/resources/dev-guide/getting-started-android-native-sdk

 

The library libQCAR.so could not be loaded

February 21, 2014 - 4:43am #33

Buildfile: E:\Ahsan Backup 12-12-2013\AH\workspace\VuforiaSamples-2-8-8\CopyVuforiaFiles.xml

CopyVuforiaSo:

BUILD FAILED
E:\Ahsan Backup 12-12-2013\AH\workspace\VuforiaSamples-2-8-8\CopyVuforiaFiles.xml:4: E:\Ahsan Backup 12-12-2013\AH\vuforia-sdk-android-2-8-7\build\lib\armeabi-v7a does not exist.

Total time: 251 milliseconds

 

i am facing this problem whenever i use work on sample of vuforia on lunching

The library libVuforia.so could not be load

January 23, 2014 - 2:54am #32

01-23 15:48:27.008: W/System.err(7287): The library libVuforia.so could not be loaded

i have this issue when i upload new sdk vuforia 2.8  plx help me out.

The library libQCAR.so could not be loaded

December 10, 2013 - 3:11am #31

This error is 

java.lang.UnsatisfiedLinkError: Native method not found: 

has been reported hundreds of times in the Forum. It is fixed by building the sample with ndk-build and refreshing the Java projject in Eclipse.

Please read the Getting Started guide *carefully*, and also have a look at this article:

https://developer.vuforia.com/forum/android/how-do-i-fix-my-compile-or-runtime-errors

The library libQCAR.so could not be loaded

December 9, 2013 - 11:25pm #30

12-10 12:36:54.628: E/QCAR(14115): The library libQCAR.so could not be loaded

12-10 12:36:54.659: E/QCAR(14115): The library libVideoPlayback.so could not be loaded

12-10 12:37:31.393: E/AndroidRuntime(14115): FATAL EXCEPTION: main

12-10 12:37:31.393: E/AndroidRuntime(14115): java.lang.UnsatisfiedLinkError: Native method not found: com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode:(Z)V

12-10 12:37:31.393: E/AndroidRuntime(14115):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode(Native Method)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.initApplication(VideoPlayback.java:1027)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.updateApplicationStatus(VideoPlayback.java:740)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.onCreate(VideoPlayback.java:349)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at android.app.Activity.performCreate(Activity.java:5163)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at android.app.ActivityThread.access$600(ActivityThread.java:140)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at android.os.Handler.dispatchMessage(Handler.java:99)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at android.os.Looper.loop(Looper.java:137)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at android.app.ActivityThread.main(ActivityThread.java:4895)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at java.lang.reflect.Method.invokeNative(Native Method)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at java.lang.reflect.Method.invoke(Method.java:511)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)

12-10 12:37:31.393: E/AndroidRuntime(14115):    at dalvik.system.NativeStart.main(Native Method)

12-10 12:37:54.409: E/QCAR(14206): The library libQCAR.so could not be loaded

12-10 12:37:54.417: E/QCAR(14206): The library libVideoPlayback.so could not be loaded

12-10 12:43:19.682: E/QCAR(14303): The library libQCAR.so could not be loaded

12-10 12:43:19.682: E/QCAR(14303): The library libVideoPlayback.so could not be loaded

12-10 12:43:20.690: E/AndroidRuntime(14303): FATAL EXCEPTION: main

12-10 12:43:20.690: E/AndroidRuntime(14303): java.lang.UnsatisfiedLinkError: Native method not found: com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode:(Z)V

12-10 12:43:20.690: E/AndroidRuntime(14303):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode(Native Method)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.initApplication(VideoPlayback.java:1027)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.updateApplicationStatus(VideoPlayback.java:740)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.onCreate(VideoPlayback.java:349)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at android.app.Activity.performCreate(Activity.java:5163)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at android.app.ActivityThread.access$600(ActivityThread.java:140)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at android.os.Handler.dispatchMessage(Handler.java:99)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at android.os.Looper.loop(Looper.java:137)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at android.app.ActivityThread.main(ActivityThread.java:4895)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at java.lang.reflect.Method.invokeNative(Native Method)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at java.lang.reflect.Method.invoke(Method.java:511)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)

12-10 12:43:20.690: E/AndroidRuntime(14303):    at dalvik.system.NativeStart.main(Native Method)

12-10 12:46:29.526: E/QCAR(14445): The library libQCAR.so could not be loaded

12-10 12:46:29.526: E/QCAR(14445): The library libVideoPlayback.so could not be loaded

12-10 12:46:30.526: E/AndroidRuntime(14445): FATAL EXCEPTION: main

12-10 12:46:30.526: E/AndroidRuntime(14445): java.lang.UnsatisfiedLinkError: Native method not found: com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode:(Z)V

12-10 12:46:30.526: E/AndroidRuntime(14445):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode(Native Method)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.initApplication(VideoPlayback.java:1027)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.updateApplicationStatus(VideoPlayback.java:740)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.onCreate(VideoPlayback.java:349)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at android.app.Activity.performCreate(Activity.java:5163)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at android.app.ActivityThread.access$600(ActivityThread.java:140)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at android.os.Handler.dispatchMessage(Handler.java:99)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at android.os.Looper.loop(Looper.java:137)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at android.app.ActivityThread.main(ActivityThread.java:4895)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at java.lang.reflect.Method.invokeNative(Native Method)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at java.lang.reflect.Method.invoke(Method.java:511)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)

12-10 12:46:30.526: E/AndroidRuntime(14445):    at dalvik.system.NativeStart.main(Native Method)

12-10 12:47:19.276: E/QCAR(14523): The library libQCAR.so could not be loaded

12-10 12:47:19.284: E/QCAR(14523): The library libVideoPlayback.so could not be loaded

12-10 12:47:55.987: E/AndroidRuntime(14523): FATAL EXCEPTION: main

12-10 12:47:55.987: E/AndroidRuntime(14523): java.lang.UnsatisfiedLinkError: Native method not found: com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode:(Z)V

12-10 12:47:55.987: E/AndroidRuntime(14523):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode(Native Method)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.initApplication(VideoPlayback.java:1027)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.updateApplicationStatus(VideoPlayback.java:740)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.onCreate(VideoPlayback.java:349)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at android.app.Activity.performCreate(Activity.java:5163)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at android.app.ActivityThread.access$600(ActivityThread.java:140)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at android.os.Handler.dispatchMessage(Handler.java:99)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at android.os.Looper.loop(Looper.java:137)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at android.app.ActivityThread.main(ActivityThread.java:4895)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at java.lang.reflect.Method.invokeNative(Native Method)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at java.lang.reflect.Method.invoke(Method.java:511)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)

12-10 12:47:55.987: E/AndroidRuntime(14523):    at dalvik.system.NativeStart.main(Native Method)

 

 

I got this error. Can anyone help?

The library libQCAR.so could not be loaded

September 25, 2013 - 2:25am #29

Have you built the native code with ndk-build ? 

Looks like not, from the error logs.

Please read the getting started guide carefully before posting:

https://developer.vuforia.com/resources/dev-guide/step-3-compiling-running-vuforia-sample-app

 

The library libQCAR.so could not be loaded

September 25, 2013 - 1:32am #28

hello. i try to run all the sample app and i always got this on log cat

 

E/QCAR(15007): The library libQCAR.so could not be loaded

E/QCAR(15007): The library libVirtualButtons.so could not be loaded

E/AndroidRuntime(15007): FATAL EXCEPTION: main

E/AndroidRuntime(15007): java.lang.UnsatisfiedLinkError: setActivityPortraitMode

E/AndroidRuntime(15007):          at com.qualcomm.QCARSamples.VirtualButtons.VirtualButtons.setActivityPortraitMode(Native Method)

E/AndroidRuntime(15007):          at com.qualcomm.QCARSamples.VirtualButtons.VirtualButtons.initApplication(VirtualButtons.java:758)

E/AndroidRuntime(15007):          at com.qualcomm.QCARSamples.VirtualButtons.VirtualButtons.updateApplicationStatus(VirtualButtons.java:609)

E/AndroidRuntime(15007):          at com.qualcomm.QCARSamples.VirtualButtons.VirtualButtons.onCreate(VirtualButtons.java:314)

E/AndroidRuntime(15007):          at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)

E/AndroidRuntime(15007):          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)

E/AndroidRuntime(15007):          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)

E/AndroidRuntime(15007):          at android.app.ActivityThread.access$1500(ActivityThread.java:121)

E/AndroidRuntime(15007):          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)

E/AndroidRuntime(15007):          at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(15007):          at android.os.Looper.loop(Looper.java:130)

E/AndroidRuntime(15007):          at android.app.ActivityThread.main(ActivityThread.java:3701)

E/AndroidRuntime(15007):          at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(15007):          at java.lang.reflect.Method.invoke(Method.java:507)

E/AndroidRuntime(15007):          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)

E/AndroidRuntime(15007):          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)

E/AndroidRuntime(15007):          at dalvik.system.NativeStart.main(Native Method)

The library libQCAR.so could not be loaded

September 11, 2013 - 2:21am #27

Glad to help.

The library libQCAR.so could not be loaded

September 11, 2013 - 1:37am #26

It's working now.Thank You very much !!!

The library libQCAR.so could not be loaded

September 11, 2013 - 12:17am #25

Hi, this question has been addressed several times in the Forum (if you search it);

the issue is explained by the Permission Denied error message; you need to cd to the root directory of Vuforia (in cygwin console) and  type:

chmod  -R  777  *

so to enable all files read/write permissions.

The library libQCAR.so could not be loaded

September 10, 2013 - 11:44pm #24

I am also getting  libCloudReco.so could not be loaded  error while building cloud recognition application  using NDK build .For all sample application it is giving the same errors.

How can I build  liCloudReco.so file

Error Log is As:

 

 

 

 

$ 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    : CloudReco <= Transition3Dto2D.cpp
Compile++ arm    : CloudReco <= CloudReco.cpp
Compile++ arm    : CloudReco <= SampleUtils.cpp
Compile++ arm    : CloudReco <= Texture.cpp
Compile++ arm    : CloudReco <= SampleMath.cpp
Prebuilt       : libQCAR.so <= jni/../../../build/lib/armeabi/
StaticLibrary  : libstdc++.a
SharedLibrary  : libCloudReco.so
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/Transition3Dto2D.o: in function Transition3Dto2D::render(QCAR::Matrix44F, QCAR::Matrix34F, unsigned int):jni/Transition3Dto2D.cpp:142: error: undefined reference to 'QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function CloudReco_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/CloudReco.cpp:23: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function CloudReco_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/CloudReco.cpp:38: error: undefined reference to 'QCAR::State::getFrame() const'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function CloudReco_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/CloudReco.cpp:38: error: undefined reference to 'QCAR::Frame::getTimeStamp() const'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function CloudReco_UpdateCallback::QCAR_onUpdate(QCAR::State&):jni/CloudReco.cpp:38: error: undefined reference to 'QCAR::Frame::~Frame()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudReco_initTracker:jni/CloudReco.cpp:129: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudReco_deinitTracker:jni/CloudReco.cpp:148: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudReco_initCloudReco:jni/CloudReco.cpp:161: error: undefined reference to 'QCAR::TrackerManager::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudRecoRenderer_renderFrame:jni/CloudReco.cpp:234: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudRecoRenderer_renderFrame:jni/CloudReco.cpp:237: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudRecoRenderer_renderFrame:jni/CloudReco.cpp:263: error: undefined reference to 'QCAR::State::getNumTrackableResults() const'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudRecoRenderer_renderFrame:jni/CloudReco.cpp:275: error: undefined reference to 'QCAR::State::getTrackableResult(int) const'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudRecoRenderer_renderFrame:jni/CloudReco.cpp:282: error: undefined reference to 'QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudRecoRenderer_renderFrame:jni/CloudReco.cpp:349: error: undefined reference to 'QCAR::Renderer::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudRecoRenderer_renderFrame:jni/CloudReco.cpp:349: error: undefined reference to 'QCAR::State::~State()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudReco_initApplicationNative:jni/CloudReco.cpp:369: error: undefined reference to 'QCAR::registerCallback(QCAR::UpdateCallback*)'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudReco_startCamera:jni/CloudReco.cpp:425: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudReco_startCamera:jni/CloudReco.cpp:432: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudReco_startCamera:jni/CloudReco.cpp:437: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudReco_stopCamera:jni/CloudReco.cpp:477: error: undefined reference to 'QCAR::CameraDevice::getInstance()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudReco_setProjectionMatrix:jni/CloudReco.cpp:497: error: undefined reference to 'QCAR::Tool::getProjectionGL(QCAR::CameraCan const&, float, float)'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function Java_com_qualcomm_QCARSamples_CloudRecognition_CloudRecoRenderer_initRendering:jni/CloudReco.cpp:573: error: undefined reference to 'QCAR::requiresAlpha()'
C:/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/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/CloudReco/CloudReco.o: in function configureVideoBackground:jni/CloudReco.cpp:904: error: undefined reference to 'QCAR::Renderer::getInstance()'
collect2: ld returned 1 exit status
/cygdrive/c/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/android-ndk-r9/build/core/build-binary.mk:533: recipe for target `obj/local/armeabi/libCloudReco.so' failed
make: *** [obj/local/armeabi/libCloudReco.so] Error 1

The library libQCAR.so could not be loaded

August 23, 2013 - 4:11am #23

Probably worth giving a try to the other samples as well; if they also fail, this could indicate that erhaps you have not correctly executed some of the installation stes indicated in the Dev guide;

also, can you confirm you did build the sample with ndk-build and that the ndk-build output was showing a successfull build ?

 

The library libQCAR.so could not be loaded

August 23, 2013 - 3:43am #22

No didnt test other app , i just use this single application and it is giving the error.
 

The library libQCAR.so could not be loaded

August 23, 2013 - 12:21am #21

Have you tried the other samples ? for instance Imagetargets ? do they show similar problem ?

also, does the native compilation get completed successfully, when you run ndk-build ?

 

The library libQCAR.so could not be loaded

August 22, 2013 - 10:14pm #20

I am using sample app.

The library libQCAR.so could not be loaded

August 22, 2013 - 12:08am #19

Are you compiling the UserDefinedTargets sample ? or a modified version of it ? 

The library libQCAR.so could not be loaded

August 21, 2013 - 10:07pm #18

yes , i use now it is giving only 1 error thar is 2nd one, first is resolved, from where did i get the file .so file of  " libUserDefinedTargets.so". it is again giving the error that is " The library libUserDefinedTargets.so could not be loaded"

The library libQCAR.so could not be loaded

August 21, 2013 - 4:30am #17

Have you followed the instructions on how to build the samples:

https://developer.vuforia.com/resources/dev-guide/step-3-compiling-running-vuforia-sample-app

 

The library libQCAR.so could not be loaded

August 21, 2013 - 1:48am #16

 E/QCAR(29307): The library libQCAR.so could not be loaded
 The library libUserDefinedTargets.so could not be loaded

i even use all the method which tell below, QCAR_SDK_ROOT is also configure Coreectly and also added .jar file.

develping on android with JAVA
 

The library libQCAR.so could not be loaded

March 15, 2013 - 3:39am #15

The libs were recreated using the Cygwin terminal so i did not copy those...

I only copied the java classes, the recources and the jni folder

The library libQCAR.so could not be loaded

March 15, 2013 - 3:26am #14

HiBartPraats

copying libs around is not a good idea, it is always best to rebuild each project with ndk-build

Also, if you really want to copy them, you might need to copy also the libs/armeabi-v7a dir

 

 

The library libQCAR.so could not be loaded

March 15, 2013 - 3:18am #13

Hi,

I am having the same problem:

 

03-15 11:02:30.199: ERROR/QCAR(8642): The library libQCAR.so could not be loaded
03-15 11:02:30.209: ERROR/QCAR(8642): The library libCloudReco.so could not be loaded
 
But I have both .so files in folder libs/armeabi and folder obj/local/armeabi.
I use intellij and I am trying to intergrate the CloudRecognition into an existing android project. I managed to get the sample project to work but when I copy the files into my own project I get the previous shown error.
 
Package structure is: src as source root with package com.qualcomm.QCARSamples.CloudRecognition
Startup file:
 
        <activity
                android:name=".CloudReco"
                android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize"
                android:finishOnTaskLaunch="true"
                android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

Thanks!

 

The library libQCAR.so could not be loaded

January 23, 2013 - 12:32am #12

The library libQCAR.so could not be loaded

January 22, 2013 - 11:57pm #11

Thank you very much !

Would be great if we can get this this running ( Unity 4 is in use ) - because the "export to eclipse" feature in unity 4 doesn't work at all :-(

 

I established a simple demo project and got a few errors. Because it has nothing to do with this topic, i added it to the following post:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/need-help-including-unity-project-library-eclipse#comment-2020587

 

The library libQCAR.so could not be loaded

January 22, 2013 - 12:37pm #10

Hi,

first, happy to hear that it works.

Concerning your second question:

yes, the good news for you is that it is possible to integrate Unity and Eclipse development; 

in practice you can develop your app in Unity with focus on the 3D aspects (e.g. nice 3D models, physics simulation, etc;) and then "export" the app to Eclipse and code in Java / Android (e.g. to add your own widgets, etc.)

The procedure to do that is explained in detail here:

https://developer.vuforia.com/forum/faq/unity-how-can-i-extend-unitys-android-activity

 

There is also a second approach, which is to build a Java (Android) plugin in Eclipse and then integrate it in Unity (a step-by-step guide for this is not yet available here, but you could find some tutorials on this searching the internet, or looking in the Unity3D forum)

 

For what concerns integration of Unity with iOS - XCode development, it should be possible as well, but we don't have a tutorial for this;

maybe I would suggest to post this specific question (Unity + iOS/XCode integration) in the iOS section of this forum:

https://developer.vuforia.com/forum/ar-technical-discussion/ios

 

I hope this helps;

The library libQCAR.so could not be loaded

January 22, 2013 - 12:02pm #9

Hi Alessandro,

 

thank you for the hint - on the device it works perfect! :-)

But one more question -> i also testet it with the unity samples, and i think the possibility to work with well textured and animated 3D models is much better than the .h model in the eclipse SDK.

I'd like to add a image gallery, info activities and so on - and the native functionality of android components are much better with developing in eclipse. Is it possible to combine these two "ways" ? Use the AR-Part made in Unity3D and the rest added in eclipse?

And also combine Unity3D Part with Xcode for IOS ?

 

 

The library libQCAR.so could not be loaded

January 22, 2013 - 11:39am #8

Hi, the crash is due to the emulator; you need to use a real device.

Vuforia supports using the PC WebCam in Unity (if you're interested), but does not support the Android emulator.

 

The library libQCAR.so could not be loaded

January 22, 2013 - 10:09am #7

Hi Alessandro!

 

Yeah now it's running - but the application crashes on the emulator when starting the AR Part. I set the Backcamera of the device to Webcam.

Errors are:

01-22 18:05:12.379: E/AndroidRuntime(698): FATAL EXCEPTION: GLThread 85
01-22 18:05:12.379: E/AndroidRuntime(698): java.lang.IllegalArgumentException: No matching EGL configs
01-22 18:05:12.379: E/AndroidRuntime(698):     at com.qualcomm.QCARSamples.ImageTargets.QCARSampleGLView$ConfigChooser.getMatchingConfig(QCARSampleGLView.java:151)
01-22 18:05:12.379: E/AndroidRuntime(698):     at com.qualcomm.QCARSamples.ImageTargets.QCARSampleGLView$ConfigChooser.chooseConfig(QCARSampleGLView.java:181)
01-22 18:05:12.379: E/AndroidRuntime(698):     at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
01-22 18:05:12.379: E/AndroidRuntime(698):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
01-22 18:05:12.379: E/AndroidRuntime(698):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
 

 

Did i something wrong or is it because the emulated device?

The library libQCAR.so could not be loaded

January 22, 2013 - 9:33am #6

Hi, looks like QCAR_SDK_ROOT is not set to the correct path;

could you do the following:

- in Eclipse go to Window -> Preferences

- select Java -> Build Path -> Classpath Variables

- in the list of variables you should see QCAR_SDK_ROOT (and next to it, you should see the system Path to which it is set)

Check that the path actually points to the right directory (your QCAR SDK root directory);

If you don't see the QCAR_SDK_ROOT in the list, please create such variable and point it to the QCAR installation diectory

Note: this procedure is also explained in detail here:

https://developer.vuforia.com/resources/dev-guide/step-2-installing-vuforia-sdk

(see paragraph titled "Set the QCAR Environment Variable")

 

Normally this should solve your problem.

 

The library libQCAR.so could not be loaded

January 22, 2013 - 9:22am #5

Hi Alessandro,

 

i imported the project as you discribe -but the errors aren't fixed with FIX Project Properties. I still got 2 errors:

Error:

Description    Resource    Path    Location    Type
The project cannot be built until build path errors are resolved    ImageTargets        Unknown    Java Problem
 

Error:

Description    Resource    Path    Location    Type
Unbound classpath variable: 'QCAR_SDK_ROOT/build/java/QCAR/QCAR.jar' in project 'ImageTargets'    ImageTargets        Build path    Build Path Problem
 

 

At Properties -> Java Build Path is QCAR_SDK_ROOT enabled, is this ok and shall i proceed with the ndk-build - or is someething went wrong ?

 

The library libQCAR.so could not be loaded

January 22, 2013 - 4:45am #4

Hi suppenhum,

have you tried doing as follows:

  1. Open Eclipse
  2. Go to File Menu -> Import ...
  3. Select "General -> Existing Project Into Workspace"
  4. In the dialog that shows up, click "Browse" and point to the sample project (e.g. ImageTargets-2-0-6, or the sample that you like)

Then if you see a warning, open the project Properties, choose Android Tools -> Fix Project Properties

Then you just need to run the ndk-build and then to refresh the project in Eclipse, and you should be good to go.

If you still see an issue, you can try to do the following (as I posted previously):

go to project properties, Java build path, switch to the Order and Export tab and check (enable)the QCAR_SDK_ROOT.

The library libQCAR.so could not be loaded

January 22, 2013 - 4:37am #3

Hi,

i've got the same problem - the QCAR is enabled. Each time running the sample:

 libQCAR.so could not be loaded

 

I also read in other threads there should be an lib folder in the project to check if ImageTarget.so file is existing - but there isn't a lib folder at all.

Maybe i open the samples in a wrong way? May way is:

New Project -> new Android Project from Existing Code ( ImageTargets-2-0-6 ) -> copy projects into workspace

After this i have errors in the Texture.java file

Hi, for some reasons your

January 14, 2013 - 6:46am #2

Hi, for some reasons your post has not shown up for a while, I just noticed it;

however, have you built the native code with ndk-build and then cleaned and refreshed the project in Eclipse ?

If it still does not work, then you probably need to open the properties of your project, go to Java build path, switch to the Order and Export tab and check (enable)the QCAR_SDK_ROOT

Topic locked