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

external/glfw/src/context.c: No such file or directory #281

Closed
nomad-software opened this issue Sep 18, 2023 · 2 comments
Closed

external/glfw/src/context.c: No such file or directory #281

nomad-software opened this issue Sep 18, 2023 · 2 comments

Comments

@nomad-software
Copy link
Contributor

nomad-software commented Sep 18, 2023

I'm trying to build a project using this library but i'm running into issues.
I'm using Ubuntu 22.04.3 LTS - 64-bit (X11)

go build main.go
# github.com/gen2brain/raylib-go/raylib
vendor/github.com/gen2brain/raylib-go/raylib/cgo_linux.go:7:10: fatal error: external/glfw/src/context.c: No such file or directory
    7 | #include "external/glfw/src/context.c"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Am I missing a dependency? I've installed all the packages mentioned here: https://github.com/gen2brain/raylib-go#ubuntu
Any idea what is going wrong here?
Thanks.

@gen2brain
Copy link
Owner

You are using vendoring. It will copy only some Go files and will miss all important files. Either do not use vendor or copy manually missing files.

@nomad-software
Copy link
Contributor Author

Ah, that's the problem! 🤦 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants