Log in or register to post comments

How to solve path problems?

March 12, 2013 - 4:15am #1

Hi,

 

I am new to Vuforia SDK development using Eclipse. I am trying to build ImageTargets project but facing severe path problems.

I have set path according to Vuforia configuration step 1,2,3.

 

I am facing problems in building native-code so in building .apk which crashes when about button is clicked.

 

Problem: #1

My Eclipse project builds .apk but crashes after About screen is clicked OK.

 

Problem: #2

$ ndk-build

Android NDK: ERROR:C:\Android\android-ndk-r8d-windows\android-ndk-r8d/jni/Androi d.mk:QCAR-prebuilt: LOCAL_SRC_FILES points to a missing file

Android NDK: Check that C:\Android\android-ndk-r8d-windows\android-ndk-r8d/jni/. ./../../build/lib/armeabi/libQCAR.so exists or that its path is correct

/cygdrive/c/Android/android-ndk-r8d-windows/android-ndk-r8d/build/core/prebuilt- library.mk:43: *** Android NDK: Aborting . Stop.

 

Problem: #3)

03-07 10:04:36.645: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.requiresAlpha, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.initApplicationAR
03-07 10:04:36.645: W/dalvikvm(803): VFY: unable to resolve static method 67: Lcom/qualcomm/QCAR/QCAR;.requiresAlpha ()Z
03-07 10:04:36.655: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x000c
03-07 10:04:36.665: D/dalvikvm(803): VFY: dead code 0x000f-0067 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.initApplicationAR ()V
03-07 10:04:36.735: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.deinit, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onDestroy
03-07 10:04:36.735: W/dalvikvm(803): VFY: unable to resolve static method 60: Lcom/qualcomm/QCAR/QCAR;.deinit ()V
03-07 10:04:36.745: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x0048
03-07 10:04:36.745: D/dalvikvm(803): VFY: dead code 0x004b-004f in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onDestroy ()V
03-07 10:04:36.745: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.onPause, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onPause
03-07 10:04:36.745: W/dalvikvm(803): VFY: unable to resolve static method 63: Lcom/qualcomm/QCAR/QCAR;.onPause ()V
03-07 10:04:36.759: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x002c
03-07 10:04:36.759: D/dalvikvm(803): VFY: dead code 0x002f-002f in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onPause ()V
03-07 10:04:36.778: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.onResume, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onResume
03-07 10:04:36.778: W/dalvikvm(803): VFY: unable to resolve static method 64: Lcom/qualcomm/QCAR/QCAR;.onResume ()V
03-07 10:04:36.778: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x0008
03-07 10:04:36.797: D/dalvikvm(803): VFY: dead code 0x000b-0023 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onResume ()V
03-07 10:04:36.825: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.isInitialized, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.updateRenderView
03-07 10:04:36.825: W/dalvikvm(803): VFY: unable to resolve static method 62: Lcom/qualcomm/QCAR/QCAR;.isInitialized ()Z
03-07 10:04:36.825: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x0010
03-07 10:04:36.825: D/dalvikvm(803): VFY: dead code 0x0013-0030 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.updateRenderView ()V
03-07 10:04:36.846: E/QCAR(803): The library libQCAR.so could not be loaded
03-07 10:04:36.846: E/QCAR(803): The library libImageTargets.so could not be loaded
03-07 10:04:36.846: D/QCAR(803): ImageTargets::onCreate
03-07 10:04:37.436: D/dalvikvm(803): GC_EXTERNAL_ALLOC freed 362K, 53% free 2886K/6023K, external 3017K/3137K, paused 105ms
03-07 10:04:38.195: W/dalvikvm(803): No implementation found for native Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.getOpenGlEsVersionNative ()I
03-07 10:04:38.205: D/AndroidRuntime(803): Shutting down VM
03-07 10:04:38.205: W/dalvikvm(803): threadid=1: thread exiting with uncaught exception (group=0x40015560)
03-07 10:04:38.245: E/AndroidRuntime(803): FATAL EXCEPTION: main
03-07 10:04:38.245: E/AndroidRuntime(803): java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative
03-07 10:04:38.245: E/AndroidRuntime(803):  at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative(Native Method)
03-07 10:04:38.245: E/AndroidRuntime(803):  at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags(ImageTargets.java:384)
03-07 10:04:38.245: E/AndroidRuntime(803):  at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:355)
 

Can you give me solution regarding NDK> ndk-build or alternative to ndk-build.

Plz. help

 

Thanks in advance

 

How to solve path problems?

July 8, 2014 - 11:27pm #13

Did you find the solution of that problem ? I am strugling with this from last 3 days . please email me if you have solution for the same . 

 

hiteshchauhan1990@live.com

How to solve path problems?

March 17, 2013 - 5:36am #12

OK.

How to solve path problems?

March 17, 2013 - 4:44am #11

Thanks

Now it is working perfectly.

I am working on emulator

 

Thanks

How to solve path problems?

March 16, 2013 - 1:43am #10

Are you running on emulator or real device ?

How to solve path problems?

March 15, 2013 - 11:57pm #9

OK Thanks

My ndk-build problem gone.

I created dir structure on another PC and got results.

Now, my ImageTargets is compiling without any errors.

 

But, while running ImageTargets I am getting these errors like:

 

03-12 20:08:06.163: D/Zygote(33): Process 833 terminated by signal (4)
03-12 20:08:06.183: I/ActivityManager(96): Process com.qualcomm.QCARSamples.ImageTargets (pid 833) has died.
03-12 20:08:06.232: E/InputDispatcher(96): channel '408c98e0 com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.AboutScreen (server)' ~ Consumer closed input channel or an error occurred.  events=0x8
03-12 20:08:06.232: E/InputDispatcher(96): channel '408c98e0 com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.AboutScreen (server)' ~ Channel is unrecoverably broken and will be disposed!
03-12 20:08:06.293: I/WindowManager(96): WIN DEATH: Window{408dd100 com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.ImageTargets paused=false}
03-12 20:08:06.375: I/WindowManager(96): WIN DEATH: Window{408c98e0 com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.AboutScreen paused=false}
03-12 20:08:06.463: E/InputDispatcher(96): Received spurious receive callback for unknown input channel.  fd=161, events=0x8
03-12 20:08:06.544: I/ActivityManager(96): Start proc com.qualcomm.QCARSamples.ImageTargets for activity com.qualcomm.QCARSamples.ImageTargets/.AboutScreen: pid=846 uid=10034 gids={1006, 3003}
03-12 20:08:08.282: W/InputManagerService(96): Got RemoteException sending setActive(false) notification to pid 833 uid 10034

 

What must be the actual cause? How to fix it?

Please help

 

Thanks in advance

How to solve path problems?

March 15, 2013 - 1:20am #8

Hi,

if you installed the SDK and the samples with a directory structure similar to the one that I mention in my previous post, you should not need any change to the Android.mk file.

How to solve path problems?

March 14, 2013 - 2:18am #7

Hi,

 

Please give me one Android.mk with LOCAL_SRC_FILES having absolute path so I can try it again.

 

 

Thanks in advance

How to solve path problems?

March 13, 2013 - 11:22pm #6

Hi,

Can Vuforia give services like suppling libImageTargets.so or available elsewhere on the website

No (note: that library will contain your sample code compiled, so if you later want to make any change to the sample code to build your own app, you will need to rebuild that library anyway)

Can I use libQCAR.so available in the C:\Android\vuforia-sdk-android-2-0-31\build\lib\armeabi-v7a folder?

Yes, but that will not sole your issue because you need to build the sample part too, so you really need to make the ndk-build work

 

How to solve path problems?

March 13, 2013 - 10:45pm #5

Hello,

 

Question:

1)I am making a request. Can Vuforia give services like suppling libImageTargets.so or available elsewhere on the

Vuforia web site,internet which can be downloaded and utilized in my project because of ndk-build problems ?

 

2) Can I use libQCAR.so available in the C:\Android\vuforia-sdk-android-2-0-31\build\lib\armeabi-v7a folder?

 

 

Thanks in advance

 

How to solve path problems?

March 13, 2013 - 12:45am #4

This is a typical path on Windows:

 

C:\Development\Android\vuforia-sdk-android-2-0-30\
 
so, for Image Targets sample, the path is like:
 
C:\Development\Android\vuforia-sdk-android-2-0-30\samples\ImageTargets-2-0-6\
 
the main directories under the ImageTargets sample directory (like for any other samples) are:
  • \jni
  • \src
  • \res
  • \assets

Under \jni you will see:

  • Android.mk
  • Application.mk
  • CubeShaders.h
  • ImageTargets.cpp
  • SampleUtils.cpp
  • Teapot.h
  • Texture.cpp
  • Texture.h

There is no "Vuforia IDE", we recommend to use Eclipse though.

How to solve path problems?

March 12, 2013 - 11:40pm #3

Hi,

I am still strugling with path problems. again same error. I edited Android.mk according to forum post but no success.

 

1) Can you supply expected dir structure of Vuforia SDK from c:\

2) Names of files for ImageTargets sample project so that I can cross check for dir and files present in those dir.

3) Is Vuforia IDE available to bypass path problems of NDK build or any other tool or .batch like file to skip ndk-build?

 

Plz. help

 

Thanks in advance

 

How to solve path problems?

March 12, 2013 - 5:04am #2

Hi, Problem #1 and Problem #3 are just a consequence of Problem #2 (i.e. your ndk-build was not successfull...)

To solve Problem #2, you should check this thread which discusses the same issue:

https://developer.vuforia.com/forum/android/ndk-build-problem

Then problems #1 and #3 should disappear as well.

In addition, you can also check this article:

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

 

Log in or register to post comments