EngoEngine / engo

Engo is an open-source 2D game engine written in Go.
https://engoengine.github.io
MIT License
1.75k stars 136 forks source link

Cannot Compile on m1 mac #788

Closed bayou-brogrammer closed 2 years ago

bayou-brogrammer commented 2 years ago
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?

KennethGrace commented 2 years ago

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. 😄

KennethGrace commented 2 years ago

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.

otraore commented 2 years ago

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 https://github.com/EngoEngine/engo/pull/785 being released.