I tried to compile a MinGW version of the SDL library (yes,
I know they’re provided, I was doing it for educational
purposes). I followed the instructions on http://www.libsdl.org/extras/win32/mingw32/README.txt and I
got it to work. The thing is, to link against the version I
compiled, I need to add -luser32 -lgdi32 -winmm to the link
line. Why did I need this with the version I made when I
didn’t for the version provided on the website (I also
noticed that my library file was >9MB whereas the given one
is only 136KB)?
Secondly, is there an easier way to get MinGW versions of
the SDL_net, SDL_mixer, SDL_image, SDL_ttf libraries than
compiling them myself? I’m having trouble getting SMPEG to
compile…
I tried to compile a MinGW version of the SDL library (yes,
I know they’re provided, I was doing it for educational
purposes). I followed the instructions on http://www.libsdl.org/extras/win32/mingw32/README.txt and I
got it to work. The thing is, to link against the version I
compiled, I need to add -luser32 -lgdi32 -winmm to the link
line. Why did I need this with the version I made when I
didn’t for the version provided on the website (I also
noticed that my library file was >9MB whereas the given one
is only 136KB)?
Secondly, is there an easier way to get MinGW versions of
the SDL_net, SDL_mixer, SDL_image, SDL_ttf libraries than
compiling them myself? I’m having trouble getting SMPEG to
compile…
Have you tried using the DLL provided by the website as the DLL which
runs the program, or are you using the one you compiled? If the former,
I have no idea. If the latter, try the former. Also the filesize may
be due to not using optimizations.
I tried to compile a MinGW version of the SDL library (yes,
I know they’re provided, I was doing it for educational
purposes). I followed the instructions on http://www.libsdl.org/extras/win32/mingw32/README.txt and I
got it to work. The thing is, to link against the version I
compiled, I need to add -luser32 -lgdi32 -winmm to the link
line. Why did I need this with the version I made when I
didn’t for the version provided on the website (I also
noticed that my library file was >9MB whereas the given one
is only 136KB)?
Apart from setting a few optimization flags for the build process,
try make install-strip instead of make install after compilation.
(or using strip manually)
You’ll find filesizes shrink, because the library files contain alot of
redundant symbols & sections.–
John
-------------- next part --------------
A non-text attachment was scrubbed…
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040504/d4556d5d/attachment.pgp