Difficulty compiling SDL_image with either Cygwin or Mingw

I would like to try to make a Windows build of a Linux SDL game, and have not
been able to set up a working build environment. I have tried both Cygwin
and Mingw, and I cannot get SDL_image to build on either of them. I am
posting this from my Linux machine rather than the Windows box in question,
so I can’t paste in the compiler output, but basically the message
is “libjpeg.h not found”. It seems this should be possible, but I have
spent a lot of time with Google and have yet to find out how to get going.
The main SDL lib is no problem.

Sorry for the general FAQ-type question, but I really am stuck. Can anyone
tell me how to set up an environment to make a Windows build of a Linux SDL
game, preferably without buying MS’ dev tools?–
David Bruce

Hello David,

Monday, August 28, 2006, 5:08:37 PM, you wrote:

I would like to try to make a Windows build of a Linux SDL game, and have not
been able to set up a working build environment. I have tried both Cygwin
and Mingw, and I cannot get SDL_image to build on either of them. I am
posting this from my Linux machine rather than the Windows box in question,
so I can’t paste in the compiler output, but basically the message
is “libjpeg.h not found”. It seems this should be possible, but I have
spent a lot of time with Google and have yet to find out how to get going.
The main SDL lib is no problem.

Sorry for the general FAQ-type question, but I really am stuck. Can anyone
tell me how to set up an environment to make a Windows build of a Linux SDL
game, preferably without buying MS’ dev tools?

Have you installed libjpeg, libpng etc… in the standard unix-type way
under cygwin? ie untar, ./configure && make && make install ?–
Best regards,
Peter mailto:@Peter_Mulholland

Hello David,On Monday 28 August 2006 18:08, David Bruce wrote:

Sorry for the general FAQ-type question, but I really am stuck. Can anyone
tell me how to set up an environment to make a Windows build of a Linux SDL
game, preferably without buying MS’ dev tools?

You can have a look at the following articles about setting-up the MSYS/MinGW
environment and compiling SDL_image and SDL libraries on Windows:

http://blog.pantokrator.net/2006/08/13/compiling-sdl_image-with-msysmingw/
http://blog.pantokrator.net/2006/08/08/setting-up-msysmingw-build-system-for-compiling-sdlopengl-applications/

Berislav Kovacki