Comments (3)
It's likely that the error is related to your version of opengl. This only aims to support 4.1 which is fine if it's in your profile, but would return an error if it's not available.
If you're on wsl you can try
sudo apt install mesa-utils
glxinfo | grep "core profile"
To find supported core GL version.
Then, to get it running, you can change all "github.com/go-gl/gl/v4.1-core/gl"
imports to a supported version and change the window hints here: https://github.com/danfragoso/thdwb/blob/master/mustard/window.go#L16-17
Longer term would need to add support for older versions of gl.
from thdwb.
i'm facing the same problem
OS : windows 10
$ make test
Testing Sauce...
named files must be .go files: sauce/go.mod
make: *** [Makefile:24: test] Error 1
make build works perfectly but the binary doesn't run
C:\Users\ZEEL\Documents\languages\go\repositories\thdwb>C:\Users\ZEEL\Documents\languages\go\repositories\thdwb\bin\thdwb.exe
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x421ac9]
goroutine 1 [running, locked to thread]:
github.com/go-gl/glfw/v3.3/glfw.(*Window).SetSizeLimits.func1(0x0, 0x12c, 0xc8, 0xffffffffffffffff, 0xffffffffffffffff)
C:/Users/ZEEL/Documents/languages/go/golib/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/window.go:505 +0x29
github.com/go-gl/glfw/v3.3/glfw.(*Window).SetSizeLimits(0x0, 0x12c, 0xc8, 0xffffffffffffffff, 0xffffffffffffffff)
C:/Users/ZEEL/Documents/languages/go/golib/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/window.go:505 +0x5e
github.com/danfragoso/thdwb/mustard.CreateNewWindow(0x76d231, 0x5, 0x384, 0x258, 0x1, 0x0)
C:/Users/ZEEL/Documents/languages/go/repositories/thdwb/mustard/window.go:24 +0xd1
main.main()
C:/Users/ZEEL/Documents/languages/go/repositories/thdwb/browser/main.go:46 +0x2fe
I've ran these make commands in git bash install on windows.
and renamed the bin/thdwb build file to bin/thdwb.exe and tried to run it
from thdwb.
The error on line 23 is unchecked so something went wrong.
You might try to insert:
if err != nil {
log.Fatal(err)
}
Before line 24, make run
, then paste the error here.
from thdwb.
Related Issues (20)
- [Mustard] Create the widget interface
- make test 报错老哥
- Can't use thdwb as a Go library HOT 3
- img doesn't work with relative src url
- Epileptic bug on MacOS HOT 9
- Assets error when running `make` HOT 9
- make: go: Command not found make: *** [Makefile:32: build_assets] Error 127 HOT 3
- i dont know i installed gccgo-go and golang and when i try to compile this happens
- and this happens when i try to do make test
- this is new
- Cannot build
- Can I use this browser as embedded?
- can't build HOT 2
- can't build HOT 1
- Error creating shader on Windows11 HOT 1
- Can't Download/Install HOT 1
- List Dependencies HOT 1
- how did u find those websites
- can you add sugar (javascript)?
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 thdwb.