Ask Your Question
0

Trouble in hal module

asked 2015-05-21 21:24:00 -0600

chankit gravatar image

updated 2015-05-24 20:34:00 -0600

Hello all,

I got stuck in compiling OpenCV. Some deeper diagnosis led to the fact that the hal module is the culprit here. I also noticed that the error message was :

autoeye-1@autoeye1-desktop:/opencv/3.0.0-r0/opencv-3.0.0-rc1/build/modules/hal$ make
[  0%] Built target opencv_hal_pch_dephelp
[  0%] Generating precomp.hpp.gch/opencv_hal_Release.gch
x86_64-poky-linux-g++: error: unrecognized command line option '-m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/media/ssd/home/autoeye/fido/poky/buildFido/tmp/sysroots/valleyisland-64'
make[2]: *** [modules/hal/precomp.hpp.gch/opencv_hal_Release.gch] Error 1
make[1]: *** [modules/hal/CMakeFiles/pch_Generate_opencv_hal.dir/all] Error 2
make: *** [all] Error 2
autoeye-1@autoeye1-desktop:/media/ssd/home/autoeye/fido/poky/buildFido/tmp/work/corei7-64-poky-linux/opencv/3.0.0-r0/opencv-3.0.0-rc1/build/modules/hal$

Of course I did not compile OpenCV from the directory. I just confirmed that the problem was coming from the HAL module itself. So any input about this?

Thanks.

edit retag flag offensive close merge delete

Comments

hmm, i'd rather think, that hal just happens to be the 1st item in the module list.

your compiler complains about unknown cmdline options. could you check them, one by one, and see, which one is it ? like g++ -m64 , then: g++ -march=corei7 etc.

berak gravatar imageberak ( 2015-05-22 03:28:34 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-24 20:37:32 -0600

chankit gravatar image

Heh. it turned out that I have been using a wrong way of compiling OpenCV. It turned out that I need to use EXTRA_OECMAKE variable rather than doing cmake manually from do_configure() in my Yocto recipe. Will elaborate further iff needed since there isn't many people doing OpenCV in Yocto.

edit flag offensive delete link more

Comments

I've been trying for a month to succeed in compiling OpenCV in Yocto! Please can you help me and share with me the steps? I really need it.

daliajaber gravatar imagedaliajaber ( 2016-05-16 09:53:45 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-05-21 21:24:00 -0600

Seen: 626 times

Last updated: May 24 '15