You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed SDL2 via homebrew, same error before and after install using build.sh or make:
asteroid % bash build.sh
\e[93mAst3r0id Game - Coded By v3l0r3k\e[0m
[+] Install SDL2 libraries? (sudo required) [Y/N]: Y
Password:
sudo: apt-get: command not found
sudo: apt-get: command not found
sudo: apt-get: command not found
sudo: apt-get: command not found
[+] Attempting to compile game...
In file included from list.c:4:
./list.h:6:10: fatal error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
^~~~~~~~~~~~
1 error generated.
main.c:21:10: fatal error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
^~~~~~~~~~~~
1 error generated.
clang: error: no such file or directory: 'list.o'
clang: error: no such file or directory: 'main.o'
gcc main.c -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lm -Wall -o asteroid
Run as \e[93m./asteroid\e[0m
Enjoy it!
The text was updated successfully, but these errors were encountered:
I see. Thank you for letting me know. The issue seems to be missing SDL2 headers/SDL2 development libraries or that the compiler can't find the path to where they are.
Installed SDL2 via homebrew, same error before and after install using build.sh or make:
asteroid % bash build.sh
\e[93mAst3r0id Game - Coded By v3l0r3k\e[0m
[+] Install SDL2 libraries? (sudo required) [Y/N]: Y
Password:
sudo: apt-get: command not found
sudo: apt-get: command not found
sudo: apt-get: command not found
sudo: apt-get: command not found
[+] Attempting to compile game...
In file included from list.c:4:
./list.h:6:10: fatal error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
^~~~~~~~~~~~
1 error generated.
main.c:21:10: fatal error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
^~~~~~~~~~~~
1 error generated.
clang: error: no such file or directory: 'list.o'
clang: error: no such file or directory: 'main.o'
gcc main.c -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lm -Wall -o asteroid
Run as \e[93m./asteroid\e[0m
Enjoy it!
The text was updated successfully, but these errors were encountered: