Re: [GD-DEVEL] libgd for MinGW

[email protected] ("Pierre Joye") Thu, 22 May 2008 13:50:24 +0200
Newsgroups php.gd.devel
Message-ID <[email protected]>
HI John,

On Thu, May 22, 2008 at 12:40 PM, John Atkeson <[email protected]> wrote:
>  Hi,
>
>  Where can I find libgd pre-compiled for MinGW?
> All I think I need are the *.a files (something like 'libgd.a') and
> the DLLs if any.

I did not have built yet binaries for MingW but the following call
using CVS head should do it:

cmake -G"MinGW Makefiles" -DCMAKE_LIBRARY_PATH=c:\mingw\lib
-DCMAKE_INCLUDE_PATH=c:\MinGW\include -DENABLE_JPEG=On -DBUILD_TEST=On
-DCMAKE_RELEASE_TYPE=DEBUG ..\libgd_head

Using a classic CMD.exe (not MSys). All you need is to install CMake
(2.4 but should work with 2.6 too).

Given that your installed the dependencies in c:/mingw, update the
CMAKE_XXX_PATH according to your path.

2.0.36RC3 is coming, I will provide binaries for mingw, vc6/7/8. If it
works well, I will keep them for the final releases as well.

An alternative solution would be to user Roger's build (by the way,
Roger, feel free to drop me a mail with your makefile, I can commit
it).

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org