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

startup failure #38

Closed
fresonn opened this issue Dec 29, 2022 · 3 comments
Closed

startup failure #38

fresonn opened this issue Dec 29, 2022 · 3 comments

Comments

@fresonn
Copy link

fresonn commented Dec 29, 2022

During running the startup script, it prints some errors.
Looks like a dependencies absence

src/main.c:5:10: fatal error: SDL2/SDL.h: No such file or directory
    5 | #include <SDL2/SDL.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from src/sdl_extra.c:1:
src/./sdl_extra.h:4:10: fatal error: SDL2/SDL.h: No such file or directory
    4 | #include <SDL2/SDL.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from src/gl_extra.c:4:
src/gl_extra.h:5:10: fatal error: GL/glew.h: No such file or directory
    5 | #include <GL/glew.h>
      |          ^~~~~~~~~~~
compilation terminated.
In file included from src/free_glyph.c:3:
src/./free_glyph.h:8:10: fatal error: GL/glew.h: No such file or directory
    8 | #include <GL/glew.h>
      |          ^~~~~~~~~~~
compilation terminated.
In file included from src/cursor_renderer.c:2:
src/./gl_extra.h:5:10: fatal error: GL/glew.h: No such file or directory
    5 | #include <GL/glew.h>
      |          ^~~~~~~~~~~
compilation terminated.
In file included from src/uniforms.c:2:
src/./uniforms.h:5:10: fatal error: GL/glew.h: No such file or directory
    5 | #include <GL/glew.h>
      |          ^~~~~~~~~~~
compilation terminated.

On Linux Kernel: 5.15.0-56-generic

@zevaverbach
Copy link

zevaverbach commented Dec 29, 2022

on MacOS I resolved this with brew install glew, and I bet you could resolve it with something like apt-get install libglew-dev on Linux.

@fresonn
Copy link
Author

fresonn commented Dec 31, 2022

on MacOS I resolved this with brew install glew, and I bet you could resolve it with something like apt-get install libglew-dev on Linux.

It didn't solve the problem 😔

@nathanb9
Copy link

nathanb9 commented Jan 7, 2023

@Vlad-Shevliakov looks like you are missing libsdl2-dev.
So try sudo apt-get install libsdl2-dev

@fresonn fresonn closed this as completed Jan 8, 2023
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

3 participants