Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find headers for ebitengine #4606

Open
1 task done
symful opened this issue Nov 16, 2024 · 1 comment
Open
1 task done

Cannot find headers for ebitengine #4606

symful opened this issue Nov 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@symful
Copy link

symful commented Nov 16, 2024

Ebitengine Version

2.8.4

Operating System

  • Linux

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?

  1. Clone the main repository of ebitengine
git clone https://github.com/hajimehoshi/ebiten/
  1. Open one of the examples folders
  2. 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

and tinygo just exits, unlike Go.

@aykevl
Copy link
Member

aykevl commented Nov 16, 2024

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.

@aykevl aykevl added the enhancement New feature or request label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants