EngoEngine/engo

Cannot Compile on m1 mac

bayou-brogrammer opened this issue · 3 comments

CleanShot 2022-05-21 at 09 43 17@2x

Im using m1 mac on the latest Monterey, and I keep getting erros where GamePad is not available to me.

CleanShot 2022-05-21 at 09 44 13@2x

Looking at the source I believe it is not getting compiled due to my arch?

I'd like to add to this post and add that there is an additional issue in EngoEngine/gl. Your last compiler error there,

../../../../../go/pkg/mod/github.com/!engo!engine/engo@v1.0.6/engo_mobile.go:97:25: too many arguments in call to gl.NewContext
	have (interface{})
	want ()

seems to be caused by a mismatch in the build tags between engo_mobile.go and gl_mobile.go. I've created an issue there to track as well.

Hope we can get this working on our M1s soon. 😄

looks like this was resolved in Pull Request #37 in EngoEngine/gl and on Pull Request #785. Neither of these changes have been released yet though, so you'll need to pull from the master branch.

go get github.com/EngoEngine/gl@master
go get github.com/EngoEngine/engo@master

This solved the issue on my M1, so you should be able to close this issue.

The changes were released here.

You should be able to run go get -u @lecoqjacob and get the latest version to be able to run the example.

Let me know if there are any issues.

Closed by #785 being released.