Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error encountered while compiling with opencv_contrib-4.8.0 #3745

Open
cultist123 opened this issue May 25, 2024 · 2 comments
Open

Error encountered while compiling with opencv_contrib-4.8.0 #3745

cultist123 opened this issue May 25, 2024 · 2 comments
Labels
category: build/install incomplete question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org/

Comments

@cultist123
Copy link

'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'

@Kumataro
Copy link
Contributor

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 ? )

@cultist123
Copy link
Author

您好,感谢您的报告。

  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.

@opencv-alalek opencv-alalek added question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org/ category: build/install incomplete labels May 27, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
category: build/install incomplete question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org/
Projects
None yet
Development

No branches or pull requests

3 participants