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

Can't build on Linux #36

Closed
JanPoonthong opened this issue Apr 21, 2021 · 5 comments
Closed

Can't build on Linux #36

JanPoonthong opened this issue Apr 21, 2021 · 5 comments

Comments

@JanPoonthong
Copy link

Error:

mkdir -p ./bin
cd lib/cglm && cmake . -DCGLM_STATIC=ON && make
/bin/sh: 1: cmake: not found
make: *** [Makefile:28: libs] Error 127

I tried to run make command, every time I get this error above.

@JanPoonthong
Copy link
Author

Maybe I don't have cmake and that causes the error, but I would like you to mention that cmake is required in order to build this project.

@jdah
Copy link
Owner

jdah commented Apr 21, 2021

This is definitely just cmake missing. Do you have any other errors after that?

@JanPoonthong
Copy link
Author

JanPoonthong commented Apr 22, 2021

Error:

make[3]: Leaving directory '/home/jan/Tmp/minecraft-weekend/lib/cglm'
[100%] Built target cglm
make[2]: Leaving directory '/home/jan/Tmp/minecraft-weekend/lib/cglm'
make[1]: Leaving directory '/home/jan/Tmp/minecraft-weekend/lib/cglm'
cd lib/glad && clang -o src/glad.o -Iinclude -c src/glad.c
/bin/sh: 1: clang: not found
make: *** [Makefile:29: libs] Error 127

Yes, I got more errors ... I need clang also.

@JanPoonthong
Copy link
Author

JanPoonthong commented Apr 22, 2021

After installing cmake and clang, the project builds. I might submit a PR on your README.md for adding requirements.

@ghost
Copy link

ghost commented Apr 24, 2021

You could have installed build-essential by your package manager (like apt) or something.

@jdah jdah closed this as completed Apr 24, 2021
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