-
Notifications
You must be signed in to change notification settings - Fork 867
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
Unable to build the cross-platform binary #615
Comments
I have same issue when building wasm file. gocv.io/x/gocvgocv.io/x/gocv/calib3d_string.go:3:9: undefined: CalibFlag |
Just got hit by this when trying to build a binary for an AWS Lambda :
Any idea why this happens or any known fix or workaround for this? |
Duplicate of #381 |
You cannot currently build cross-platform binaries with GoCV due to that big binary dependency named OpenCV. You need to build the binary using the same OS that you want to target. |
Description
To build the cross platform binary, mainly for windows from Ubuntu
Steps to Reproduce
$ env GOOS=windows GOARCH=386 go build -o main.exe main.go
Your Environment
Error:
gocv.io/x/gocv
/home/denny/go/src/gocv.io/x/gocv/calib3d_string.go:3:9: undefined: CalibFlag
/home/denny/go/src/gocv.io/x/gocv/core_string.go:3:9: undefined: MatType
/home/denny/go/src/gocv.io/x/gocv/core_string.go:57:9: undefined: CompareType
/home/denny/go/src/gocv.io/x/gocv/core_string.go:75:9: undefined: CovarFlags
/home/denny/go/src/gocv.io/x/gocv/core_string.go:93:9: undefined: DftFlags
/home/denny/go/src/gocv.io/x/gocv/core_string.go:113:9: undefined: RotateFlag
/home/denny/go/src/gocv.io/x/gocv/core_string.go:125:9: undefined: KMeansFlags
/home/denny/go/src/gocv.io/x/gocv/core_string.go:137:9: undefined: NormType
/home/denny/go/src/gocv.io/x/gocv/core_string.go:159:9: undefined: TermCriteriaType
/home/denny/go/src/gocv.io/x/gocv/core_string.go:169:9: undefined: SolveDecompositionFlags
/home/denny/go/src/gocv.io/x/gocv/core_string.go:169:9: too many errors
The text was updated successfully, but these errors were encountered: