SDL2X11Emulation
SDL2X11Emulation copied to clipboard
Compiling error.
Hello,
I've tried compiling your project on Arch Linux, but was met with a SDL.h: No such file or directory
error.
Here's the CMake output:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/build
[ 22%] Building C object CMakeFiles/sdl2X11Emulation.dir/src/colors.c.o
[ 22%] Building C object CMakeFiles/sdl2X11Emulation.dir/src/cursor.c.o
[ 22%] Building C object CMakeFiles/sdl2X11Emulation.dir/src/display.c.o
[ 22%] Building C object CMakeFiles/sdl2X11Emulation.dir/src/error.c.o
[ 22%] Building C object CMakeFiles/sdl2X11Emulation.dir/src/drawing.c.o
[ 27%] Building C object CMakeFiles/sdl2X11Emulation.dir/src/events.c.o
[ 31%] Building C object CMakeFiles/sdl2X11Emulation.dir/src/atoms.c.o
[ 36%] Building C object CMakeFiles/sdl2X11Emulation.dir/src/font.c.o
/tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/cursor.c:2:10: fatal error: SDL_ttf.h: No such file or directory
2 | #include "SDL_ttf.h"
| ^~~~~~~~~~~
In file included from /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/drawing.c:2:
/tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/drawing.h:4:10: fatal error: SDL.h: No such file or directory
4 | #include "SDL.h"
| ^~~~~~~
compilation terminated.
compilation terminated.
make[2]: *** [CMakeFiles/sdl2X11Emulation.dir/build.make:132: CMakeFiles/sdl2X11Emulation.dir/src/drawing.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/sdl2X11Emulation.dir/build.make:104: CMakeFiles/sdl2X11Emulation.dir/src/cursor.c.o] Error 1
In file included from /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/colors.c:3:
/tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/colors.h:4:10: fatal error: SDL.h: No such file or directory
4 | #include "SDL.h"
| ^~~~~~~
compilation terminated.
In file included from /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/events.c:4:
/tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/events.h:5:10: fatal error: SDL.h: No such file or directory
5 | #include "SDL.h"
| ^~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/sdl2X11Emulation.dir/build.make:90: CMakeFiles/sdl2X11Emulation.dir/src/colors.c.o] Error 1
make[2]: *** [CMakeFiles/sdl2X11Emulation.dir/build.make:160: CMakeFiles/sdl2X11Emulation.dir/src/events.c.o] Error 1
In file included from /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/resourceTypes.h:14,
from /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/errors.h:7,
from /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/error.c:1:
/tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/window.h:4:10: fatal error: SDL.h: No such file or directory
4 | #include "SDL.h"
| ^~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/sdl2X11Emulation.dir/build.make:146: CMakeFiles/sdl2X11Emulation.dir/src/error.c.o] Error 1
In file included from /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/resourceTypes.h:14,
from /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/errors.h:7,
from /tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/atoms.c:4:
/tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/window.h:4:10: fatal error: SDL.h: No such file or directory
4 | #include "SDL.h"
| ^~~~~~~
compilation terminated.
/tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/display.c:5:10: fatal error: SDL.h: No such file or directory
5 | #include "SDL.h"
| ^~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/sdl2X11Emulation.dir/build.make:76: CMakeFiles/sdl2X11Emulation.dir/src/atoms.c.o] Error 1
make[2]: *** [CMakeFiles/sdl2X11Emulation.dir/build.make:118: CMakeFiles/sdl2X11Emulation.dir/src/display.c.o] Error 1
/tmp/tmp.BDW0VorQBE/SDL2X11Emulation/src/font.c:8:10: fatal error: SDL.h: No such file or directory
8 | #include "SDL.h"
| ^~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/sdl2X11Emulation.dir/build.make:174: CMakeFiles/sdl2X11Emulation.dir/src/font.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/sdl2X11Emulation.dir/all] Error 2
make: *** [Makefile:91: all] Error 2