Comments (9)
What are the errors? Can you post the entire output?
from example.
Maybe the problem was the same as mine when I wanted to run the project for the first time (and I haven't used Go in a long time...).
OS X El Capitan Verision 10.11.3
What I did was inpired by "Test your installation" in https://golang.org/doc/install
➜ ~ go get -u github.com/go-gl/examples/glfw31-gl41core-cube
➜ ~ go install github.com/go-gl/examples/glfw31-gl41core-cube
➜ ~ ./go/bin/glfw31-gl41core-cube
OpenGL version 4.1 NVIDIA-10.8.14 310.42.15f01
panic: open square.png: no such file or directory
goroutine 1 [running, locked to thread]:
main.main()
/Users/krzysztofkula/go/src/github.com/go-gl/examples/glfw31-gl41core-cube/cube.go:84 +0x913
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1721 +0x1
Now I have copied the image square.png to the go/bin/
directory.
➜ ~ cd go/bin
➜ bin ls
glfw31-gl41core-cube square.png
➜ bin ./glfw31-gl41core-cube
OpenGL version 4.1 NVIDIA-10.8.14 310.42.15f01
And it works.
from example.
@krzychukula, the binary looks for the "square.png" file in the current working directory. It assumes you're inside the glfw31-gl41core-cube
folder, where that file is located.
from example.
@shurcooL I know, but while examples lack info for the newbies it may be the error many encounter. Maybe @phbcanada got the same error?
from example.
Maybe @phbcanada got the same error?
Maybe, but "7273 errors generated" sounds more like something else. His report is not very detailed.
examples lack info for the newbies it may be the error many encounter.
@krzychukula, I agree that it's not very clear and it might be a common pitfall. We can definitely improve to do better. I've created #50 to track that.
from example.
Sorry guys, took me a while to get back to this. Output attached.
from example.
What version of OS X are you running? Maybe it's out of date?
What version of Xcode or Xcode command line utilities?
from example.
As the title says, Mac OS 10.11 El Capitan. Xcode version 7.0.1
from example.
Sorry for forgetting to get back to this.
It looks to me that there must've been something misconfigured or poorly installed on that setup. I've installed the examples on multiple macs with El Capitan and Xcode 7+ and never ran into that.
I don't think it's a bug/problem in this repository or GLFW, so I'll close the issue.
Hopefully, if you try to install it again now, things should work without issues.
from example.
Related Issues (20)
- Improve unfriendly requirement that examples must be run in their package directory. HOT 2
- Go 1.6 -msan option error (memory sanitizer) HOT 6
- build error on OSX, go1.6 HOT 2
- [Question] Unable to run examples, only background windows showing in GL window HOT 4
- multiple contexts HOT 6
- Proposal: Rename repository to "example". HOT 6
- Specify permissive license. HOT 5
- Examples are broken HOT 1
- More information in examples HOT 2
- gl21-cube: Cube in demo appears squashed. HOT 6
- Odd choppiness to animation? HOT 8
- frame rate drops proportionally to number of process instances HOT 5
- Handle leak on Windows at SetSize? HOT 4
- fatal error: checkptr: unsafe pointer arithmetic on Go 1.14rc1 HOT 1
- Re: github.com/go-gl/example/gl41core-cube/cube.go HOT 1
- Can I render a webpage at the window HOT 1
- c:\go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1 HOT 1
- gl.GenTextures
- Error when binding in loop HOT 1
- Cel Shader Example 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 example.