tinygo version 0.34.0 linux/amd64 (using go version go1.23.1 and LLVM version 18.1.2)
What steps will reproduce the problem?
Clone the main repository of ebitengine
git clone https://github.com/hajimehoshi/ebiten/
Open one of the examples folders
Run tinygo run .
# github.com/hajimehoshi/ebiten/v2/internal/glfw
../../internal/glfw/glfw3native_unix.h:105:12: fatal: 'X11/Xlib.h' file not found
../../internal/glfw/native_linbsd.go:14:12: note: in file included from native_linbsd.go!cgo.c:7:
What is the expected result?
Able to use ebitengine within tinygo
What happens instead?
Cannot find the required headers for ebitengine
Anything else feel useful to add?
I wanted to do
go run github.com/hajimehoshi/ebiten/v2/examples/airship@latest
At the moment we don't support linking against C libraries on the host (as is needed for glfw). This may be added at some point, but will take some work.
Ebitengine Version
2.8.4
Operating System
Go Version (
go version
)tinygo version 0.34.0 linux/amd64 (using go version go1.23.1 and LLVM version 18.1.2)
What steps will reproduce the problem?
tinygo run .
What is the expected result?
Able to use ebitengine within tinygo
What happens instead?
Cannot find the required headers for ebitengine
Anything else feel useful to add?
I wanted to do
and tinygo just exits, unlike Go.