Making OpenCV: Error hal undeclared

asked 2016-01-10 12:11:19 -0600

tstannar gravatar image

I am working on making opencv with the options below in Ubuntu 14.04 with cmake 3.4.1. When I try to compile with make I keep getting an exit with an error that hal is undeclared. Does anyone know why I would get this error? Thanks.

cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D WITH_TBB=ON \ -D WITH_V4L=ON \ -D WITH_QT=ON \ -D WITH_OPENGL=ON \ -D ENABLE_FAST_MATH=1 \ -D CUDA_FAST_MATH=1 \ -D WITH_CUBLAS=ON \ -D CUDA_cublas_LIBRARY:FILEPATH=/usr/local/cuda/lib64/libcublas.so \ -D PYTHON3_EXECUTABLE:FILEPATH=/home/tyler/miniconda3/bin/python3 \ -D PYTHON_INCLUDE_DIR:PATH=/home/tyler/miniconda3/lib/python3.5/site-packages \ -D PYTHON3_LIBRARY:FILEPATH=/home/tyler/miniconda3/lib/libpython3.5m.so \ -D PYTHON3_NUMPY_INCLUDE_DIRS:PATH=/home/tyler/miniconda3/lib/python3.5/site-packages/numpy/core \ -D PYTHON3_PACKAGES_PATH:PATH=/home/tyler/miniconda3/lib/python3.5/site-packages \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ -D INSTALL_C_EXAMPLES=OFF \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D BUILD_EXAMPLES=ON \ -D BUILD_opencv_python2=OFF \ -D BUILD_opencv_python3=ON ..

CXX object modules/optflow/CMakeFiles/opencv_optflow.dir/opencl_kernels_optflow.cpp.o /home/tyler/opencv_contrib/modules/optflow/src/motempl.cpp: In function ‘void cv::motempl::calcMotionGradient(cv::InputArray, cv::OutputArray, cv::OutputArray, double, double, int)’: /home/tyler/opencv_contrib/modules/optflow/src/motempl.cpp:215:9: error: ‘hal’ has not been declared hal::fastAtan2(dY_max_row, dX_min_row, orient_row, size.width, true); ^ make[2]: * [modules/optflow/CMakeFiles/opencv_optflow.dir/src/motempl.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [modules/optflow/CMakeFiles/opencv_optflow.dir/all] Error 2 make[1]: * Waiting for unfinished jobs....

edit retag flag offensive close merge delete

Comments

1

the hal module was moved to core , recently. re-download latest src from github (especially, if you're using opencv_contrib as well !, both, then.), clean up your build dir, and try again.

berak gravatar imageberak ( 2016-01-10 12:18:40 -0600 )edit

are you sure your contrib source is up to date motempl.cpp. try saving it and re-compile. if this file pass probably you will get another break. do same for files causes break.

sturkmen gravatar imagesturkmen ( 2016-01-10 12:23:22 -0600 )edit

I have the same problem which version should re-download 3.0 or 3.1 to use contrib repo?

Mario gravatar imageMario ( 2016-01-10 23:13:33 -0600 )edit

latest 3 branch, which is 3.1!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-01-11 04:21:11 -0600 )edit