Neon improve find_obj ??

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Neon improve find_obj ??

642 Views
MarcoDiVivo87
Contributor I

Hi everybody,

 

I try to enable Neon as Eric Gregori suggest : in CMakeList.txt i added (OpenCV 2.1 library... i tried on OpenCV 1.1 but i can't find any gcc flag on enabling NEON..):

 

if(USE_FAST_MATH)
       set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -ffast-math -mfpu=neon")

 

but when i do :

cmake -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_EXAMPLES=ON -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..

 

I get this error :

1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzio.o
cc1: error: unrecognized command line option "-ffast-math-mfpu=neon"
make[2]: *** [3rdparty/zlib/CMakeFiles/zlib.dir/gzio.o] Error 1
make[1]: *** [3rdparty/zlib/CMakeFiles/zlib.dir/all] Error 2
make: *** [all] Error 2

 

Can anyone help me??

 

Another question...I'm interested on find_obj.cpp ..Does Neon improve this algorithm too(like on face_detect) ?

 

Thank you very much..

 

Marco

Tags (1)
0 Kudos
Reply
0 Replies