Giter Club home page Giter Club logo

Comments (3)

ownaginatious avatar ownaginatious commented on September 26, 2024 2

Yep, it's a compatibility issue with Xcode 15's new linker. As a workaround for now, just downgrade to Xcode 14 until the next Go version is released (download here).

from gocv.

dpanic avatar dpanic commented on September 26, 2024

Maybe this issue could be related to golang/go#61229 ?

from gocv.

dpanic avatar dpanic commented on September 26, 2024

I upgraded to latest Go 1.21.3

This is newest error I have:

user@megatron:engine/src ondevGOARCH=arm64 go run main.go 

# gocv.io/x/gocv
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/calib3d_string.go:3:9: undefined: CalibFlag
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/calib3d_string.go:29:9: undefined: CalibCBFlag
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/core_string.go:3:9: undefined: MatType
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/core_string.go:57:9: undefined: CompareType
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/core_string.go:75:9: undefined: CovarFlags
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/core_string.go:93:9: undefined: DftFlags
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/core_string.go:113:9: undefined: RotateFlag
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/core_string.go:125:9: undefined: KMeansFlags
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/core_string.go:137:9: undefined: NormType
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/core_string.go:159:9: undefined: TermCriteriaType
/Users/user/go/pkg/mod/gocv.io/x/gocv@v0.34.0/core_string.go:159:9: too many errors

OpenCV is compiled for Darwin arm64.

I have error as well if I compile OpenCV for x86_64 (amd64) and try to run go run for x86_64:

dyld[9870]: Library not loaded: @rpath/libopencv_gapi.408.dylib
  Referenced from: <C0DB9902-8279-3B64-BCD9-1CC9C1D16D7B> /private/var/folders/f6/6yqslb513nl_14hvm9njg1y80000gp/T/go-build1623771139/b001/exe/main
  Reason: no LC_RPATH's found
signal: abort trap

from gocv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.