Compiling fails with this message related to SDL_net.
OS: Linux Mint 20 / kernel 5.8
Compiler: gcc 10.2.0
Bad build: r389
Last good build: r384
Shoegazer wrote:Yes, though sdl-net is not available in the Mint (Ubuntu) repo. The only one there is libsdl-net1.2-dev which is for sdl 1.2 rather than sdl 2.0, so even after installing it, the build fails for these systems,
$ sudo apt install libsdl2-net-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsdl2-net-dev is already the newest version (2.0.1+dfsg1-4).
0 upgraded, 0 newly installed, 0 to remove.
$ apt install libsdl2-net-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsdl2-net-dev is already the newest version (2.0.1+dfsg1-4).
$ ls -la /usr/include/SDL2/SDL_net.h
-rw-r--r-- 1 root root 17488 Oct 19 2018 /usr/include/SDL2/SDL_net.h
#include SDL_net.h
$ ln -s ./Makefiles/Makefile.UNIX ./Makefile
make -j12 NET_BOARD=1
From: #include <SDL_net.h>
To: #include </usr/include/SDL2/SDL_net.h>
#include <SDL2/SDL_net.h>
sdl2-config --cflags
sdl2-config --libs
$ sdl2-config --cflags
-I/usr/local/include/SDL2 -D_REENTRANT
$ sdl2-config --libs
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,--enable-new-dtags -lSDL2
Shoegazer wrote:Thanks, Bart. Actually yes, #include <SDL2/SDL_net.h> worked. Can/should that change be made to supermodel's code?
Outputs:
- Code: Select all
$ sdl2-config --cflags
-I/usr/local/include/SDL2 -D_REENTRANT
$ sdl2-config --libs
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,--enable-new-dtags -lSDL2
Interesting. Why all of a sudden /usr/local/include rather than /usr/include? This must have changed recently because again, supermodel compiled successfully without any changes with r834 earlier this month.
Users browsing this forum: No registered users and 1 guest