gocv
gocv copied to clipboard
go run doesn't work on macos ventura arm64
Description
go run main.go gives me this error:
-input 576775.jpg
dyld[14152]: Symbol not found: __ZN2cv10HoughLinesERKNS_11_InputArrayERKNS_12_OutputArrayEddidddd
Referenced from: <15B49058-6BA2-3E27-B6E0-21CCC0647C22> /private/var/folders/f6/6yqslb513nl_14hvm9njg1y80000gp/T/go-build3249400460/b001/exe/main
Expected in: <no uuid> unknown
signal: abort trap
This worked in previous version of MacOS.
Your Environment
-
Operating System and version: macOS ventura (13.6)
-
OpenCV version used: 4.8.0
-
How did you install OpenCV? manually compiled. this worked before
-
GoCV version used: 0.34.0
-
Go version: 1.21.1
-
Did you run the
env.sh
orenv.cmd
script before trying togo run
orgo build
? go build works. compiles binary linked like thisname @rpath/libopencv_gapi.408.dylib (offset 24) name @rpath/libopencv_highgui.408.dylib (offset 24) name @rpath/libopencv_ml.408.dylib (offset 24) name @rpath/libopencv_objdetect.408.dylib (offset 24) name @rpath/libopencv_photo.408.dylib (offset 24) name @rpath/libopencv_stitching.408.dylib (offset 24) name @rpath/libopencv_video.408.dylib (offset 24) name @rpath/libopencv_calib3d.408.dylib (offset 24) name @rpath/libopencv_features2d.408.dylib (offset 24) name @rpath/libopencv_dnn.408.dylib (offset 24) name @rpath/libopencv_flann.408.dylib (offset 24) name @rpath/libopencv_videoio.408.dylib (offset 24) name @rpath/libopencv_imgcodecs.408.dylib (offset 24) name @rpath/libopencv_imgproc.408.dylib (offset 24) name @rpath/libopencv_core.408.dylib (offset 24)
go run doesn't work simply.
user@aaa:/usr/local/lib ➜ file libopencv_ml.4.8.0.dylib
libopencv_ml.4.8.0.dylib: Mach-O 64-bit dynamically linked shared library arm64