What happened?
I try to use https://github.com/hajimehoshi/ebiten Go game engine and followed the instructions.
To confirm the environment, one can run the following command: go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
If I install go on my computer (Ubuntu) with all the required system dependencies and run go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest then it works.
If I remove Go from my computer, create a devbox environment, add Go package to it, open a devbox shell and then run the same command I get an error:
# github.com/hajimehoshi/ebiten/v2/internal/glfw
In file included from pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.9.9/internal/glfw/native_linbsd.go:14:
./glfw3native_unix.h:105:12: fatal error: X11/Xlib.h: No such file or directory
105 | #include <X11/Xlib.h>
| ^~~~~~~~~~~~
compilation terminated.
Steps to reproduce
- Install system dependencies
- add go to devbox environment
- run a devbox shell
- run
go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
Command
shell
devbox.json
Devbox version
0.17.2
Nix version
nix (Nix) 2.31.1
What system does this bug occur on?
Linux (x86-64)
Debug logs
No response
What happened?
I try to use https://github.com/hajimehoshi/ebiten Go game engine and followed the instructions.
To confirm the environment, one can run the following command:
go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latestIf I install go on my computer (Ubuntu) with all the required system dependencies and run
go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latestthen it works.If I remove Go from my computer, create a devbox environment, add Go package to it, open a devbox shell and then run the same command I get an error:
Steps to reproduce
go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latestCommand
shell
devbox.json
{ "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.16.0/.schema/devbox.schema.json", "packages": ["curl@latest", "gettext@latest", "go@latest"], "env": { "GOPATH": "$PWD", "PATH": "$PATH:$PWD" }, "shell": { "init_hook": ["echo 'Welcome to devbox!' > /dev/null"], "scripts": { "test": ["echo \"Error: no test specified\" && exit 1"] } } }Devbox version
0.17.2
Nix version
nix (Nix) 2.31.1
What system does this bug occur on?
Linux (x86-64)
Debug logs
No response