You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered this error when setting up a project for use in the tutorial:
go run ./cmd/tut/
# golang.org/x/mobile/gl
In file included from /Users/oubiwann/go/pkg/mod/golang.org/x/[email protected]/gl/work.go:29:
./work.h:18:10: fatal error: 'OpenGLES/ES2/glext.h' file not found
#include <OpenGLES/ES2/glext.h>
Btw, hardly any of engo is being used in the above; I didn't get past the "hello world" ... this is the only file in the project so far:
package main
import (
"github.com/EngoEngine/engo"
)
typemyScenestruct{}
// Type uniquely defines your game typefunc (*myScene) Type() string {
return"myGame"
}
// Preload is called before loading any assets from the disk,// to allow you to register / queue themfunc (*myScene) Preload() {}
// Setup is called before the main loop starts. It allows you// to add entities and systems to your Scene.func (*myScene) Setup(engo.Updater) {}
funcmain() {
opts:= engo.RunOptions{
Title: "Hello World",
Width: 400,
Height: 400,
}
engo.Run(opts, &myScene{})
}
Hello! Thank you for bringing up this issue! I believe it is due to M1 Macs using the same build tags as iOS rather than MacOS, due to the way Apple is trying to merge the two into one build process (so iOS apps run on MacOS and vice-versa, and can all be done in Xcode). Unfortunately, I don't have an M1 Mac to test it out on, so there's not much I can do on my end until April/May when I'll be upgrading. If you'd like to play around with the build tags to get it working before then, I'd be more than happy to accept a pull request!
I encountered this error when setting up a project for use in the tutorial:
I tried with:
After finding this bug, and the latest version of , I manually set this in
go.mod
:and got past that error. I now see the following errors when using the latest
x/mobile
in all combinations of the versions listed above:Thoughts? Work-arounds?
The text was updated successfully, but these errors were encountered: