gocv
gocv copied to clipboard
Library not loaded: '/opt/homebrew/opt/opencv/lib/libopencv_gapi.405.dylib'
dyld[36676]: Library not loaded: '/opt/homebrew/opt/opencv/lib/libopencv_gapi.405.dylib'
Referenced from: <REDACTED>
Reason: tried: '/opt/homebrew/opt/opencv/lib/libopencv_gapi.405.dylib' (no such file), '/usr/local/lib/libopencv_gapi.405.dylib' (no such file), '/usr/lib/libopencv_gapi.405.dylib' (no such file), '/opt/homebrew/Cellar/opencv/4.6.0/lib/libopencv_gapi.405.dylib' (no such file), '/usr/local/lib/libopencv_gapi.405.dylib' (no such file), '/usr/lib/libopencv_gapi.405.dylib' (no such file)
Description
In opencv 4.6, Homebrew creates the soft link in a format of "<LIB_NAME>.406.dylib" while the GoCV requires it to be "<LIB_NAME>.405.dylib", but even if I re-linked them to the required format, it throws an error says "cant find symbol xxxBlobFromxxx"
Steps to Reproduce
-
go get -u -d gocv.io/x/gocv
-
brew install opencv
-
go run ...
Your Environment
- Operating System and version: macOS Monterey
- OpenCV version used: 4.6.0
- How did you install OpenCV? Homebrew
- GoCV version used: 0.31
- Go version: 1.18.1
- Did you run the
env.sh
orenv.cmd
script before trying togo run
orgo build
? No
EDIT: typo