Compiling under windows with Dev-C++

Hi,
I should compile a new release of a game under windows using DevC++.
I’ve compiled the game several time in the past with no problems, but
now it requires libpng (and it requires zlib), because we use libpng
to save screenshots in PNG, and I don’t know how to compile these libs
under win.

Any tips about that?–
Davide “M3xican” Coppola


email: @Davide_M3xican_Coppo
homep: http://dmc.dev-labs.net
ICQ: 104241710
MSN: bad_hangover at hotmail.it

I’ve figured it out using DevC++ packages, but I still have a problem.

DevC++ package is based on libpng 1.2.8, but the executable I got
looks for libpng13.dll.
I’ve solved this using the dll inside the png GnuWin32 archive
(libpng-1.2.8-bin.zip), but SDL_image uses libpng 1.2.10, I think this
could be a problem.

What should I do?–
Davide “M3xican” Coppola


email: @Davide_M3xican_Coppo
homep: http://dmc.dev-labs.net
ICQ: 104241710
MSN: bad_hangover at hotmail.it

Hey,

This may be a hack-job, but it turns out that .dlls don’t change much between releases (for the most part). I’ve done this before where I needed something like libpng13 but had libpng12. Just copy and rename the one you have. You’ll probably want to fix this before an official release if it causes you to keep both libpng12 and 13 linked… I hope that helps!

Jonathan Dearborn> Date: Sun, 17 Dec 2006 20:12:55 +0100> From: m3xican at marsnomercy.org> To: sdl at libsdl.org> Subject: Re: [SDL] compiling under windows with Dev-C++> > I’ve figured it out using DevC++ packages, but I still have a problem.> > DevC++ package is based on libpng 1.2.8, but the executable I got> looks for libpng13.dll.> I’ve solved this using the dll inside the png GnuWin32 archive> (libpng-1.2.8-bin.zip), but SDL_image uses libpng 1.2.10, I think this> could be a problem.> > What should I do?> > – > Davide “M3xican” Coppola> > --------------------------------------------------------------------> email: m3xican at marsnomercy.org> homep: http://dmc.dev-labs.net> ICQ: 104241710> MSN: bad_hangover at hotmail.it> --------------------------------------------------------------------> > _______________________________________________> SDL mailing list> SDL at libsdl.org> http://www.libsdl.org/mailman/listinfo/sdl


Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG

It’s not so easy…
libpng12.dll (it comes from SDL_image) and libpng13.dll (it comes from
libpng-1.2.8-bin.zip) are two different files, and nothing works if I
rename one of them.

I think the only solution is compiling libpng 1.2.10 on my own, now I
need to understand how to do that.

If someone know it, please let me know.

2006/12/18, Jonathan Dearborn :>

Hey,

This may be a hack-job, but it turns out that .dlls don’t change much
between releases (for the most part). I’ve done this before where I needed
something like libpng13 but had libpng12. Just copy and rename the one you
have. You’ll probably want to fix this before an official release if it
causes you to keep both libpng12 and 13 linked… I hope that helps!

Jonathan Dearborn


Davide “M3xican” Coppola


email: @Davide_M3xican_Coppo
homep: http://dmc.dev-labs.net
ICQ: 104241710
MSN: bad_hangover at hotmail.it