opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

Error encountered while compiling with opencv_contrib-4.8.0

Open cultist123 opened this issue 1 year ago • 2 comments

'ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [lib/libopencv_hdf.4.5.1.dylib] Error 1 make[1]: *** [modules/hdf/CMakeFiles/opencv_hdf.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 23%] Built target opencv_imgproc make: *** [all] Error 2'

cultist123 avatar May 25 '24 15:05 cultist123

Hello, thank you for your report.

  1. please could you fill issue template ? there are no information about your os/compiler/environment to reproduce your issue. (Maybe is it on macOS?)

  2. please could you update to OpenCV 4.9.0 (official release version) or 4.x (latest development branch). Maybe even if old version has some problem, it will be fixed at latest version only.

  3. please could you check what OpenCV and OpenCV Contrib versions are used in strictly.

This issue title has "opencv_contrib-4.8.0". Your log contains "libopencv_hdf.4.5.1".

Perhaps it seems that you try to compile OpenCV 4.5.1 with OpenCV Contrib 4.8.0 .

OpenCV allows only same version conbination. If you use OpenCV 4.9.0, you must use OpenCV-contrib 4.9.0, not mixing different versions is important.

If possible, please could you share how to get source code ? (download archive zip ? git clone command ? )

Kumataro avatar May 26 '24 01:05 Kumataro

您好,感谢您的报告。

  1. 请您填写问题模板?没有关于您的操作系统/编译器/环境的信息来重现您的问题。(也许是在 macOS 上?)
  2. 请您更新到 OpenCV 4.9.0(官方发布版本)或 4.x(最新开发分支)。即使旧版本存在问题,也只能在最新版本中修复。
  3. 请严格检查所使用的 OpenCV 和 OpenCV Contrib 版本。

此问题标题为“opencv_contrib-4.8.0”。 您的日志包含“libopencv_hdf.4.5.1”。

也许您似乎尝试使用 OpenCV Contrib 4.8.0 编译 OpenCV 4.5.1。

OpenCV 仅允许相同版本的组合。如果您使用 OpenCV 4.9.0,则必须使用 OpenCV-contrib 4.9.0,不要混合使用不同版本非常重要。

如果可能的话,请您分享如何获取源代码?(下载存档 zip?git clone 命令?)

Thank you for your advice and response. I have solved the problem. I'm on macOS system. It was necessary to uninstall Homebrew, and then the installation proceeded smoothly.

cultist123 avatar May 26 '24 13:05 cultist123