SDL_net with SDL 1.3

Hi,

Here is my build environment:

Windows 7 x86_64
MinGW32+MSYS

I’m trying to compile SDL_net from source to work with SDL 1.3. I compiled
SDL 1.3 and installed it with absolutely no problem at all (I built it as a
static library, if that makes any difference).
SDL_net, however, wouldn’t build. Here are the steps I took:

$ hg clone http://hg.libsdl.org/SDL_net/

$ ./autogen.sh
$ ./configure --disable-sdltest --enable-gui=no # Absolutely no problems
reported
$ mingw32-make

I get the following build errors:

C:/MinGW/msys/1.0/bin/sh.exe ./libtool --tag=CC --mode=compile gcc

-DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAG
E_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT=""
-DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -
DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_S
TDINT_H=1 -DHAVE_UNISTD_H=1 -DLT_OBJDIR=".libs/" -DPACKAGE=“SDL_net”
-DVERSION=“1.2.7” -I. -g -O2 -Dmain=SDL_m
ain -I/usr/local/include/SDL -MT SDLnet.lo -MD -MP -MF .deps/SDLnet.Tpo
-c -o SDLnet.lo SDLnet.c
XSDLnet.Tpo -c -o SDLnet.lo SDLnet.lo
libtool: compile: warning: libobj name SDLnet.Tpo -c -o SDLnet.lo SDLnet.lo' may not contain shell special characters. rm: invalid option -- c Tryrm --help’ for more information.
libtool: compile: gcc “-DPACKAGE_NAME=\” -DPACKAGE_TARNAME=""
-DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAG
E_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_S
TRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DLT_OBJDIR=".li
bs/" -DPACKAGE=“SDL_net” -DVERSION=“1.2.7” -I. -g -O2 -Dmain=SDL_main
-I/usr/local/include/SDL -MT SDLnet.lo -MD -M
P -MF .deps/SDLnet.Tpo -c -o SDLnet.lo SDLnet.c" -DDLL_EXPORT -DPIC -o
.libs/SDLnet.Tpo -c -o SDLnet.lo SDLnet.o
gcc.exe: SDLnet.o: No such file or directory
gcc.exe: no input files
mingw32-make: *** [SDLnet.lo] Error 1

It looks like in the middle, there is some sort of an issue using the rm
command, which I’m not sure if that’s the source of the issue or not - I’m
also not sure where I should look to try and fix that.

Anyone have any ideas what I should do to get this working? If not, or it’s
somewhere in the works (but is on low priority), I was debating on using
enet for some networking stuff, so I should be alright regardless.

Thanks gents,
-Alex

[quote=“MrOzBarry”]Hi,

$ hg clone http://hg.libsdl.org/SDL_net/ (http://hg.libsdl.org/SDL_net/)
$ ./autogen.sh
$ ./configure --disable-sdltest --enable-gui=no ? # Absolutely no problems reported
$ mingw32-make

Hello Alex.

I can’t say it would make a difference, but could you use make rather than mingw32-make? Sorry for the ridiculous pun, but that might MAKE a difference.

Most forum posts I’ve seen have said to not use mingw32-make.

Or, it could simply be an error in the makefile. I haven’t had a chance to try compiling SDL_net in a while, but I’ll take a look after a while.

For some reason, I thought I tried that after trying mingw32-make, but I
didn’t, and it worked like a charm - thanks for the tip!
I’ll toss that in the sdl wiki :smiley:

-AlexOn Wed, Sep 21, 2011 at 2:28 PM, MBrening <micah.brening at gmail.com> wrote:

**

[quote=“MrOzBarry”]Hi,

Quote:

$ hg clone http://hg.libsdl.org/SDL_net/
$ ./autogen.sh
$ ./configure --disable-sdltest --enable-gui=no # Absolutely no problems
reported
$ mingw32-make

Hello Alex.

I can’t say it would make a difference, but could you use make rather than
mingw32-make? Sorry for the ridiculous pun, but that might MAKE a
difference.

Most forum posts I’ve seen have said to not use mingw32-make.

Or, it could simply be an error in the makefile. I haven’t had a chance to
try compiling SDL_net in a while, but I’ll take a look after a while.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org