I have managed to get the FastCorners sample app running on my HTC One with no issues. When I tried to run the same project on Google Glass however, the app crashes and I get the LogCat output seen below. I tried running the app using the Glass build target and the standard 4.0.3 build target (with the target api set to 9 - the value that comes with the sample). Any ideas on how to fix this? My end goal is to take a project I have running on OpenCv and convert to FastCv since OpenCV is not playing well with my Glass.
03-12 12:17:19.392: D/FastCVSample.cpp(1613): Using FastCV version 1.4.0
03-12 12:17:19.407: E/FastCVSample(1613): Configured FastThreshold: 3
03-12 12:17:19.407: E/FastCVSample(1613): Configured Threshold: 40
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scaling: 0
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scale: 1
03-12 12:17:19.407: E/FastCVSample(1613): Configured Pixel Overlay: 1
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scale: 1
03-12 12:17:19.407: E/FastCVSample(1613): Configured Viewfinder: 0
03-12 12:17:19.407: E/FastCVSample(1613): Configured viewfinder: 0
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scaling: 1
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scale: 1
03-12 12:17:19.493: D/Camera-JNI(1613): Saving AndroidRuntime::getJNIEnv()=0x6e16a8
03-12 12:17:19.525: V/FastCVSample(1613): Set focus mode INFINITY
03-12 12:17:19.525: V/FastCVSample(1613): Set white balance AUTO
03-12 12:17:19.579: D/dalvikvm(1613): GC_FOR_ALLOC freed 532K, 8% free 9094K/9863K, paused 15ms
03-12 12:17:19.579: D/Camera-JNI(1613): android_hardware_Camera_release - release camera
03-12 12:17:19.673: D/dalvikvm(1613): GC_EXPLICIT freed 1K, 5% free 9434K/9863K, paused 3ms+3ms
03-12 12:17:19.696: D/libEGL(1613): loaded /system/lib/egl/libGLES_android.so
03-12 12:17:19.704: D/libEGL(1613): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
03-12 12:17:19.704: D/CameraSurface(1613): SurfaceCreated
03-12 12:17:19.720: D/libEGL(1613): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
03-12 12:17:19.728: D/libEGL(1613): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
03-12 12:17:19.915: D/FastCVSampleRenderer.cpp(1613): Viewport changed to 640x284
03-12 12:17:19.993: E/libEGL(1613): call to OpenGL ES API with no current context (logged once per thread)
03-12 12:17:19.993: A/libc(1613): Fatal signal 11 (SIGSEGV) at 0x41746000 (code=2)
Android 4.0.3 is API level 15.
You might need to change the API level from 9 to 15.
Isn't FastCV meant from Qualcomm Snapdragon platforms (and ARM of course)? If so, one would expect lower performance on the ARM-based TI OMAP inside Google Glass, correct? In any case, I see a single file fastcv-android-1-4-0/lib/Android/libfastcv.a. Does it contain optimized implementations for both ARM and Snapdragon and takes a decision at run-time (first function invocation)?
Or do I have to use some build mechanism to specify different library depending on the processor used?