Forums - SampleApp from FastCV crashes

2 posts / 0 new
Last post
SampleApp from FastCV crashes
jds
Join Date: 23 Oct 13
Posts: 2
Posted: Thu, 2013-10-24 08:26
error: E/AndroidRuntime(926): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load fastcvsample from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.qualcomm.fastcorner-1.apk,libraryPath=/data/app-lib/com.qualcomm.fastcorner-1]: findLibrary returned null
 
 
I'm using MacOSX. I have no idea how to fix this. I need specific steps to take. 
  • Up0
  • Down0
jeff4s Moderator
Join Date: 4 Nov 12
Posts: 106
Posted: Thu, 2013-10-24 11:29

It may be because you forgot to convert the jni part into C/C++ project https://developer.qualcomm.com/mobile-development/mobile-technologies/computer-vision-fastcv/compiling-and-running-fastcv-sample-app

To compile the native part, we'll need to add C/C++ attributes to the project.

To do so, use File > New > Other > C/C++ > Convert to a C++ Project menu option to add C/C++ attributes to the project.

NOTE:

Contrary to what the text of the menu option implies, this does not replace the Android application attributes with C/C++ application attributes, nor does it create a new project in place of, or side-by-side with, your Android application. It only adds additional attributes for C/C++ to the project, alongside the Android attributes.

The wizard invoked to add C/C++ attributes for your project will ask you to configure the project type and toolchains to use for the project. By selecting Makefile project for the project type, and Other Toolchain for the toolchains, you configure the project to invoke GNU Make to build the C/C++ portion of your project.

This is where you will be integrating the two build systems (the Java part using the ADT, with the C/C++ part using the NDK).

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.