Comments (6)
I'm on 11.6 on a 2019 15 inch MBP and can't replicate this, running the examples off of the master branch. Is there anything else about your system that could be a factor? Is it an M1 Mac?
Additionally: could you include the output of go env
? Could you name which examples are not working (or just one of them)?
from oak.
Intel MacBook
Go 1.17.2
from oak.
❯ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ricardo.silva/Library/Caches/go-build"
GOENV="/Users/ricardo.silva/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/ricardo.silva/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/ricardo.silva/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.17.2/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.17.2/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/ricardo.silva/code/oak/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/h7/rp8ld5_n2ld57w78vzqvcrx40000gp/T/go-build3544231302=/tmp/go-build -gno-record-gcc-switches -fno-common"
from oak.
I replicated all of those settings and flappy-bird still runs for me.
Other, reaching ideas:
- How many monitors are connected to your machine?
- Is there an unusual USB device connected to your machine?
- What does
clang -v
output? - Can you run the examples here: https://github.com/go-gl/example?
from oak.
1/2) I do have an external monitor through a dongle but I just disconnected it and ran only on the macbook display. Same problem.
3)
❯ clang -v
Homebrew clang version 11.1.0
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm@11/bin
- yes. both of them run fine.
from oak.
Thank you for all the details.
I downgraded from clang 13 to 11.1 via brew, and while the behavior of the examples is a little different (there's some initial rendering artifacts), it doesn't display just a black screen and the examples play as normal. You could try using a newer clang but based on that it shouldn't be a factor.
I've also tried manipulating GOMAXPROCS
to no effect.
So status: still unable to reproduce; next I'll try looking for historical issues in any dependencies.
from oak.
Related Issues (20)
- Q: respond to close window click on linux? HOT 7
- Issue found by Svace static analyzer HOT 4
- Quite a number of the examples don't work (on macOS) HOT 12
- Add the ability to persist bindings between scenes
- Document OS / Build Target Compatibility
- WASM+JS Controller Support
- WASM+JS Audio Support
- Remove CGO requirement from OSX builds HOT 13
- alg:ChooseX consider changing handling of 0 weight entries HOT 4
- Linux audio library does not compile on arm64
- Investigate adding CI to confirm JS builds of examples
- Should Wiki articles be moved to local readmes?
- JS does not support a Window Scale that is not 1
- Refactor Audio Interface to reduce number of OS streams
- Drop FOSSA? HOT 2
- Generic, type safe event handling with Go 1.18 HOT 1
- Add Debug / Trace logs around OS drivers
- Could you update the wiki, which still uses v3 as the example code?
- Replace CGO with PureGo and/or an embedded C compiler HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oak.