David Szöke
David Szöke

Reputation: 1

SDL/SDL.h file not found in Karol the Robot

I tried to run this Github repository called 'Karel the Robot' for my work in university: Karel the Robot for MacOS

I use macOS Monterey V12.2.1 and run this through an IDE called Clion. I tried to work on the projects via the built in VCS option of the IDE and also tried to simply download and open it from the desktop. Whenever I try to run the basic project (without any additions or changes made by me) I get this error:

/Library/Developer/CommandLineTools/usr/bin/cc  -I/Users/nox/CLionProjects/karel/include -I/usr/local/include -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -mmacosx-version-min=12.2 -std=gnu11 -MD -MT CMakeFiles/StarterProject.dir/HelloKarel.c.o -MF CMakeFiles/StarterProject.dir/HelloKarel.c.o.d -o CMakeFiles/StarterProject.dir/HelloKarel.c.o -c /Users/nox/CLionProjects/karel/HelloKarel.c
In file included from /Users/nox/CLionProjects/karel/HelloKarel.c:10:
In file included from /Users/nox/CLionProjects/karel/include/karel.h:3:
In file included from /Users/nox/CLionProjects/karel/include/structs.h:48:
/Users/nox/CLionProjects/karel/include/config.h:1:10: fatal error: 'SDL/SDL.h' file not found #include <SDL/SDL.h>

I understand that he can't find the SDL.h file on my system so I installed and reinstalled it with brew by doing the following: brew install sdl sdl_image sdl_ttf and brew reinstall sdl sdl_image sdl_ttf

Nothing seemed to work for me. Can anyone help me with this please?

Upvotes: 0

Views: 806

Answers (0)

Related Questions