Bart wrote:Wait a minute -- sdl2-config is pointing to /usr/local/include, which seems right, whereas you had it in /usr/include, which does not seem correct. What's going on? Did you change something or manually install SDL2? My guess is that you unintentionally b0rked your SDL2 installation. Could it also be that you have multiple SDL2 installations around, with the wrong sdl2-config being picked up when you run that command?
From my experience, I think "/usr/include/SDL2" "is correct... and it's a problem with his SDL2 installation / config files...
I have mulitple machines running Ubunu 20.04 and 20.10, where SDL2 was installed via the standard repo packages, and they all have the SDL2 files in /usr/lib/SDL2 and /usr/lib
I also installed Arch Linux from scratch on another computer this morning, and it also has the SDL2 files in /usr/include/SDL2, and I had no issues building r843 from SVN.
From that machine:
- Code: Select all
$ uname -a
Linux 5.10.3-arch1-1 #1 SMP PREEMPT Sun, 27 Dec 2020 10:50:46 +0000 x86_64 GNU/Linux
$ sdl2-config --cflags
-I/usr/include/SDL2 -D_REENTRANT
$ sdl2-config --libs
-L/usr/lib -pthread -lSDL2