Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[macOS] Library not loaded: /opt/homebrew/opt/openexr/lib/libOpenEXR-3_2.31.dylib #652

Open
frank3215 opened this issue Nov 16, 2024 · 1 comment

Comments

@frank3215
Copy link

frank3215 commented Nov 16, 2024

macOS运行BallonsTranslator时,将修复工具改成patchmatch会这么报错:

dlopen(data/libs/macos_libopencv_world.4.8.0.dylib, 0x0006): Library not loaded: /opt/homebrew/opt/openexr/lib/libOpenEXR-3_2.31.dylib
  Referenced from: <958C610D-171C-38B6-B864-C1B417552E69> BallonsTranslator/data/libs/macos_libopencv_world.4.8.0.dylib
  Reason: tried: '/opt/homebrew/opt/openexr/lib/libOpenEXR-3_2.31.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/openexr/lib/libOpenEXR-3_2.31.dylib' (no such file), '/opt/homebrew/opt/openexr/lib/libOpenEXR-3_2.31.dylib' (no such file), '/usr/local/lib/libOpenEXR-3_2.31.dylib' (no such file), '/usr/lib/libOpenEXR-3_2.31.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/openexr/3.3.2/lib/libOpenEXR-3_2.31.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/openexr/3.3.2/lib/libOpenEXR-3_2.31.dylib' (no such file), '/opt/homebrew/Cellar/openexr/3.3.2/lib/libOpenEXR-3_2.31.dylib' (no such file), '/usr/local/lib/libOpenEXR-3_2.31.dylib' (no such file), '/usr/lib/libOpenEXR-3_2.31.dylib' (no such file, not in dyld cache)
Failed to set module.

原因是项目本地的 BallonsTranslator/data/libs/macos_libopencv_world.4.8.0.dylib 依赖 libOpenEXR-3_2.31.dylib,但当前版本的 OpenEXR 是 3_3.32,版本对不上。

可能需要更新项目本地的 macos_libopencv_world.4.8.0.dylib

@frank3215 frank3215 changed the title Library not loaded: /opt/homebrew/opt/openexr/lib/libOpenEXR-3_2.31.dylib [macOS] Library not loaded: /opt/homebrew/opt/openexr/lib/libOpenEXR-3_2.31.dylib Nov 16, 2024
@frank3215
Copy link
Author

可以通过

curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/442d601c084ba0d309571a83c1303b515baf56ff/Formula/o/openexr.rb
brew install openexr.rb

安装3.2.1版本的OpenEXR,暂时解决这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant