|
Post by hurleybird on Aug 5, 2008 19:03:43 GMT
For classic:
$ make make: svnversion: Command not found gcc -o obj/animlib.o -MMD -c --std=c99 -fgnu89-inline -pedantic -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-declarations -Wno-unused -Werror -I/otyrian/src/ -g3 -O0 -I/usr/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -DTARGET_UNIX src/animlib.c cc1.exe: error: unrecognized command line option "-fgnu89-inline" make: *** [obj/animlib.o] Error 1
(coded for a different version of MinGW maybe?)
For enhanced:
blah, blah, blah...
/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main src/picload.cpp src/picload.cpp: In function `void load_pcx_palette(unsigned int, bool)': src/picload.cpp:102: warning: comparison between signed and unsigned integer expressions src/picload.cpp:108:2: no newline at end of file make: *** [obj/picload.o] Error 1
(this is odd, two warnings and the source won't compile. Fixed the newline at end of file, and no difference.)
Solutions?
|
|
|
Post by Mindless on Aug 5, 2008 22:52:58 GMT
Consider Classic fixed. -fgnu89-inline is more trouble than it's worth.
|
|
|
Post by hurleybird on Aug 5, 2008 23:05:56 GMT
Ok. Looks like more stuff got broken though
$ make make: svnversion: Command not found gcc -o obj/animlib.o -MMD -c --std=c99 -pedantic -Wall -Wstrict-prototypes -Wold -style-definition -Wmissing-declarations -Wno-unused -Werror -I/otyrian/src/ -g3 -O0 -I/usr/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -DTARGET_UNIX src/animli b.c In file included from src/animlib.c:25: src/network.h:26:21: SDL_net.h: No such file or directory In file included from src/animlib.c:25: src/network.h:53: error: syntax error before '*' token src/network.h:53: warning: type defaults to `int' in declaration of `packet_out_ temp' src/network.h:53: error: ISO C forbids data definition with no type or storage c lass src/network.h:54: error: syntax error before '*' token src/network.h:54: warning: type defaults to `int' in declaration of `packet_in' src/network.h:54: warning: type defaults to `int' in declaration of `packet_out' src/network.h:55: warning: type defaults to `int' in declaration of `packet_stat e_in' src/network.h:55: warning: type defaults to `int' in declaration of `packet_stat e_out' src/network.h:55: error: ISO C forbids data definition with no type or storage c lass src/network.h:87: error: syntax error before '*' token src/network.h:87: warning: function declaration isn't a prototype src/network.h:88: error: syntax error before '*' token src/network.h:88: warning: function declaration isn't a prototype src/network.h:89: error: syntax error before '*' token src/network.h:89: warning: function declaration isn't a prototype src/network.h:54: warning: array 'packet_in' assumed to have one element src/network.h:54: warning: array 'packet_out' assumed to have one element src/network.h:55: warning: array 'packet_state_in' assumed to have one element src/network.h:55: warning: array 'packet_state_out' assumed to have one element make: *** [obj/animlib.o] Error 1
|
|
|
Post by yuriks on Aug 5, 2008 23:14:56 GMT
You need to install SDL_net.
|
|
|
Post by hurleybird on Aug 6, 2008 1:24:29 GMT
Ok, how do I do that? Downloaded the DLL but have no idea what to do with it.
|
|
|
Post by yuriks on Aug 6, 2008 3:05:10 GMT
Since you're copiling you need the sources or development libraries, it's just like you installed SDL.
|
|
|
Post by hurleybird on Aug 6, 2008 3:38:39 GMT
Except it's not. I downloaded an SDL package made for Mingw , and all that I had to do was issue the command "make native". As far as I can see there's no SDL_net source package where I can do the same thing. I'm not too skilled with this stuff, but I'd like to be able to compile new executables since your guy's official builds have stopped getting regular updates.
|
|
|
Post by Mindless on Aug 6, 2008 22:34:03 GMT
|
|
|
Post by hurleybird on Aug 7, 2008 0:56:19 GMT
I have it. And yeah, I should be able to build it, but I have no idea how. 'Make native' doesen't work for it like it did for the SDL package on the google code tutorial. Plain 'ole 'Make" doesen't work either.
Eg.
$ make native make: *** No rule to make target `native'. Stop.
$ make /bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -o libSDL_net.la -rpath /usr/local/cross-tools/i386-mingw32/lib -no-undefined -release 1.2 -version-info 0:7:0 -Wl,version.o SDLnet.lo SDLnetTCP.lo SDLnetUDP.lo SDLnetselect.lo -lwsock32 -L/usr/lib -lmingw32 -lSDLmain -lSDL -mwindows ./libtool: cygpath: command not found gcc -o .libs/libSDL_net.dll.a .libs/SDLnet.o .libs/SDLnetTCP.o .libs/SDLnetUDP.o .libs/SDLnetselect.o -Wl,version.o -mwindows `echo " -lwsock32 -L/usr/lib -lmingw32 -lSDLmain /usr/lib/libSDL.dll.a" | /bin/sed -e 's/ -lc$//'` -link -dll C:\msys\1.0\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -link collect2: ld returned 1 exit status make: *** [libSDL_net.la] Error 1
(Just a thought, but you might want to update the tutorial now that SDL_net is also required)
|
|
AshTR
Member
You fail.
Posts: 10
|
Post by AshTR on Aug 8, 2008 3:49:41 GMT
Just shove the SDL_net VC8 dev libraries into your MinGW's lib folder. Should fix the problem. Did for me at least.
EDIT: I had yuriks upload my edit of the compiling wiki entry. I apparently messed up a bit in it though so he'll probably be a bit ticked when he sees he has to reupload a fix. But all the instructions are on there. They're just a little....Arranged wrong.
|
|
|
Post by hurleybird on Aug 8, 2008 19:00:42 GMT
Didn't work, but maybe I'm doing it wrong. Tried both the lib folders in the msys the Mingw folders. Tried copying the entire archive and just the contents of the archive's lib folder both times. Nothing.
|
|
AshTR
Member
You fail.
Posts: 10
|
Post by AshTR on Aug 12, 2008 5:36:23 GMT
Didn't work, but maybe I'm doing it wrong. Tried both the lib folders in the msys the Mingw folders. Tried copying the entire archive and just the contents of the archive's lib folder both times. Nothing. What error did you get this time?
|
|
|
Post by hurleybird on Aug 12, 2008 20:19:04 GMT
Same thing.
|
|
AshTR
Member
You fail.
Posts: 10
|
Post by AshTR on Aug 14, 2008 3:55:14 GMT
Your Makefile platform is set to WINDOWS, correct?
|
|