Open dnjooiopa opened 4 months ago
I have the same problem on my M3 mac.
I've tried downgrading OpenCV to 4.9.0
by replacing the following line in Dockerfile
, and it seems working well.
FROM ghcr.io/hybridgroup/opencv:4.9.0
Maybe something has changed between 4.9.0
and 4.10.0
which makes it impossible to build on arm64.
(update)
Instead of downgrading, adding the following line would also solve.
diff --git a/cgo.go b/cgo.go
index 71dda49..47facdf 100644
--- a/cgo.go
+++ b/cgo.go
@@ -7,6 +7,7 @@ package gocv
/*
#cgo !windows pkg-config: opencv4
+#cgo !windows LDFLAGS: -ltbb
#cgo CXXFLAGS: --std=c++11
#cgo windows CPPFLAGS: -IC:/opencv/build/install/include
#cgo windows LDFLAGS: -LC:/opencv/build/install/x64/mingw/lib -lopencv_core4100 -lopencv_face4100 -lopencv_videoio4100 -lopencv_imgproc4100 -lopencv_highgui4100 -lopencv_imgcodecs4100 -lopencv_objdetect4100 -lopencv_features2d4100 -lopencv_video4100 -lopencv_dnn4100 -lopencv_xfeatures2d4100 -lopencv_plot4100 -lopencv_tracking4100 -lopencv_img_hash4100 -lopencv_calib3d4100 -lopencv_bgsegm4100 -lopencv_photo4100 -lopencv_aruco4100 -lopencv_wechat_qrcode4100 -lopencv_ximgproc4100
Description
I clone repository and try running
make docker
but got this error.Steps to Reproduce
make docker
Your Environment
macOS Sonoma 14.5
4.10.0
1.22.3
ghcr.io/hybridgroup/opencv:4.10.0