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 nameSDLnet.Tpo -c -o SDLnet.lo SDLnet.lo' may not contain shell special characters. rm: invalid option -- c Try
rm --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