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
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
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 "
Problem solved.
https://developer.qualcomm.com/forum/qdevnet-forums/computer-vision-fastcv/8619
This link's discussion helped me to solve the problem