Undefined references when building OpenCV 4.0.0 sources

asked 2018-11-24 16:24:26 -0500

perracolabs gravatar image

updated 2018-11-24 16:42:34 -0500

I get several undefined references when building OpenCV from sources, with the latest 4.0.0 version:

\src\main\cpp\opencv\core\src/arithm.cpp:378: undefined reference to `cv::hal::and8u(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, int, int, void*)'

\src\main\cpp\opencv\core\src/arithm.cpp:378: undefined reference to `cv::hal::and8u(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, int, int, void*)'
liblib_opencv.a(arithm.cpp.o): In function `cv::bitwise_or(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&)':

\src\main\cpp\opencv\core\src/arithm.cpp:386: undefined reference to `cv::hal::or8u(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, int, int, void*)'

I get several more undefined references in the arithm.cpp all related to cv::hal bitwise operations:

  • cv::hal::and8u
  • cv::hal::or8u
  • cv::hal::xor8u
  • cv::hal::not8u

I've seen that these functions were refactored in the commit core: reimplement SIMD arithmetic, logic and comparison operations in... Yet I can't find where these are now implemented, and I'm not missing any file.

edit retag flag offensive close merge delete

Comments

When you say "building OpenCV 4.0.0 sources", I suppose you are still in the installation process, right? Can you give more details of how are you doing this?

nicolasrs gravatar imagenicolasrs ( 2018-11-26 05:27:38 -0500 )edit