Undefined references when building OpenCV 4.0.0 sources [closed]

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

perracolabs gravatar image

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

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 reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-13 16:46:44.602903

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?

nicoz gravatar imagenicoz ( 2018-11-26 05:27:38 -0600 )edit