[SDL] Some instructions to install SDL, SDL_image, SDL_mixer and SDL_net under cygwin/mingw
Kein-Hong Man
keinhong at gmail.com
Sun Jan 7 17:26:08 PST 2007
Hi,
christoph.senjak at web.de wrote:
> Hi.
>
>> This manual method worked well for me:
>> (1) Put header file in the SDL header file directory,
>> c:\msys\1.0\include\SDL (or equivalent) a.k.a. /usr/include/SDL,
>> because sdl-config includes this directory in the search.
>> (2) Put libraries in c:\msys\1.0\lib (or equivalent) a.k.a.
>> /usr/lib, that should already be in the lib search path for gcc.
>> Keep the DLL there as well, for copying over to the executable
>> directory.
>
> Well. Thanks. But this doesnt work for me, unfortunately.
This is very unusual. Can you provide specifics? If you see my
instructions above, it doesn't get any easier than that.
My suggestions:
(a) Check whether you have copied the appropriate DLLs into the
same directory as your executable, in order to run the program.
(b) Check that sdl-config includes /usr/include/SDL in the search
path, by running it as "sdl-config --cflags".
(c) Run "gcc -print-search-dirs" and see that you have /usr/lib/
in the library path. You can try checking the output of
"sdl-config --libs" as well, but /usr/lib/ is a standard library path.
That's all I can do unless you provide the list with more information.
> Maybe Building from source would be the best... But i cannot compile
> libpng on MinGW, and on Cygwin, it cannot find the png.h/jpeg.h-files
> and if i show them it cannot link against.
But you have spent a lot of time on it without complete success,
while I have set up those libraries using the MinGW developer's
package in less than 5 minutes... :-) So logically...
> Why isnt there any MinGw32-Specific installer, or why doesnt the
> Install-Script work on Cygwin?
Because I guess installation involves copying a couple of files to
a couple of places. This, in theory, should be dead easy and
trouble-free.
If you have run into errors, posting the output details to the
list ought to help with diagnosis.
HTH,
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
More information about the SDL
mailing list