Forums - Running samples in fastcv sdk

4 posts / 0 new
Last post
Running samples in fastcv sdk
nrgarach
Join Date: 7 Apr 12
Posts: 6
Posted: Tue, 2012-07-17 17:44

Hi,

I just installed fast cv sdk on my 64 bit windows machine and try to build the given samples using cygwin, but it does not work.

Can you please guide me on how to solve this,

In cygwin it errors out as follows :

 

$ /cygdrive/C/Development/Android/android-ndk-r8/ndk-build

Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver

Gdbsetup       : libs/armeabi/gdb.setup

Cygwin         : Generating dependency file converter script

Compile++ thumb  : fastcvsample <= FastCVSample.cpp

jni/FastCVSample.cpp:19:27: error: fastcv/fastcv.h: No such file or directory

jni/FastCVSample.cpp:86: error: 'corners' has not been declared

jni/FastCVSample.cpp: In function 'void updateCorners(uint8_t*, uint32_t, uint32_t)':

jni/FastCVSample.cpp:181: error: 'fcvMemFree' was not declared in this scope

jni/FastCVSample.cpp:192: error: 'fcvMemAlloc' was not declared in this scope

jni/FastCVSample.cpp:202: error: 'fcvScaleDownBy2u8' was not declared in this scope

jni/FastCVSample.cpp:220: error: 'fcvScaleDownBy4u8' was not declared in this scope

jni/FastCVSample.cpp:242: error: 'fcvScaleDownu8' was not declared in this scope

jni/FastCVSample.cpp:279: error: 'fcvMemFree' was not declared in this scope

jni/FastCVSample.cpp:290: error: 'fcvMemAlloc' was not declared in this scope

jni/FastCVSample.cpp:298: error: 'fcvFilterGaussian3x3u8' was not declared in this scope

jni/FastCVSample.cpp:316: error: 'struct State' has no member named 'corners'

jni/FastCVSample.cpp:318: error: 'fcvCornerFast9u8' was not declared in this scope

jni/FastCVSample.cpp:323: error: 'struct State' has no member named 'corners'

jni/FastCVSample.cpp:323: error: 'struct State' has no member named 'corners'

jni/FastCVSample.cpp: In function 'void Java_com_qualcomm_fastcorner_FastCVSample_cleanup(JNIEnv*, _jobject*)':

jni/FastCVSample.cpp:353: error: 'fcvMemFree' was not declared in this scope

jni/FastCVSample.cpp:359: error: 'fcvMemFree' was not declared in this scope

jni/FastCVSample.cpp:365: error: 'fcvMemFree' was not declared in this scope

jni/FastCVSample.cpp: In function 'void Java_com_qualcomm_fastcorner_FastCVSample_update(JNIEnv*, _jobject*, _jbyteArray*, jint, jint)':

jni/FastCVSample.cpp:419: error: 'fcvMemFree' was not declared in this scope

jni/FastCVSample.cpp:429: error: 'fcvMemAlloc' was not declared in this scope

jni/FastCVSample.cpp:457: error: 'fcvColorYUV420toRGB565u8' was not declared in this scope

jni/FastCVSample.cpp:474: error: 'struct State' has no member named 'corners'

jni/FastCVSample.cpp: In function 'void Java_com_qualcomm_fastcorner_FastCVSample_init(JNIEnv*, _jobject*)':

jni/FastCVSample.cpp:490: error: 'fcvOperationMode' was not declared in this scope

jni/FastCVSample.cpp:490: error: 'fcvSetOperationMode' was not declared in this scope

/cygdrive/C/Development/Android/android-ndk-r8/build/core/build-binary.mk:243: recipe for target `obj/local/armeabi/objs-debug/fastcvsample/FastCVSample.o' failed

make: *** [obj/local/armeabi/objs-debug/fastcvsample/FastCVSample.o] Error 1

 

Can anyone please help with this ?

 

Thanks

 

  • Up0
  • Down0
jeff4s Moderator
Join Date: 14 Mar 12
Posts: 54
Posted: Wed, 2012-07-18 00:11

There was a similar issue reported in:

https://developer.qualcomm.com/forum/qdevnet-forums/computer-vision-fast...

Please refer to that and see if the solution applies to your problem.

Cheers,

-Jeff

  • Up0
  • Down0
nrgarach
Join Date: 7 Apr 12
Posts: 6
Posted: Thu, 2012-07-19 10:51

Thanks you for your reply.

I tried to follow the steps from the given link 

But I now I see the following error.

 

" Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver

Gdbsetup       : libs/armeabi/gdb.setup

SharedLibrary  : libfastcvsample.so

C:/Development/Android/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: cannot find -lfastcv

collect2: ld returned 1 exit status

/cygdrive/C/Development/Android/android-ndk-r8/build/core/build-binary.mk:369: recipe for target `obj/local/armeabi/libfastcvsample.so' failed

make: *** [obj/local/armeabi/libfastcvsample.so] Error 1  "

  • Up0
  • Down0
nrgarach
Join Date: 7 Apr 12
Posts: 6
Posted: Thu, 2012-07-19 10:59

Problem solved.

https://developer.qualcomm.com/forum/qdevnet-forums/computer-vision-fastcv/8619

This link's discussion helped me to solve the problem

  • 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.