gocv icon indicating copy to clipboard operation
gocv copied to clipboard

Library not loaded: '/opt/homebrew/opt/opencv/lib/libopencv_gapi.405.dylib'

Open pot-code opened this issue 1 year ago • 0 comments

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

  1. go get -u -d gocv.io/x/gocv
  2. brew install opencv
  3. 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 or env.cmd script before trying to go run or go build? No

EDIT: typo

pot-code avatar Sep 02 '22 03:09 pot-code