Hi,
I've built GD using MSYS for dependencies that need configure.
root for my libs and includes is c:/mylib
(so I have c:/mylib/include & c:/mylib/lib)
build static versions of zlib, libjpeg, libpng, libfreetype.
odd things required:
for zlib
add -DWIN64 to makefile FLAGS
move zlib.h & zconf.h to c:/mylib/include and libz.a to c:/mylib/lib
also move zlib headers and library to mingw include and lib paths.
freetype includes install to c:/mylib/include/freetype2. Rename it to
c:/mylib/include/freetype
you must manually copy the includes and libs for libjpeg (the source has
no 'install')
When that's all complete you can install CMake.
In the GD source, remove -m32 flag in top CMAKEfiles.txt (we're building
64 bit)
then in the root of gd source
mkdir localbuild
chdir localbuild
cmake -G"MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\mylib
-DCMAKE_LIBRARY_PATH=C:\mylib\lib -DCMAKE_INCLUDE_PATH=C:\mylib\include
-DENABLE_PNG=1 -DENABLE_FREETYPE=1 -DENABLE_JPEG=1
-DCMAKE_RELEASE_TYPE=RELEASE ..\
Hope it helps
Mark
On 20/09/2011 07:55, Quang Ong wrote:
> I'm trying to build a 64-bit GD DLL to support porting an existing
> application that uses GD functions. Which mingw cross compilation method
> is best? I've tried:
> 1) Cygwin + mingw
> 2) Msys/Mingw
> 3) Ubuntu + MingW
>
> I've been having varying success with these different setups, but
> nothing so far has worked all the way through. The main issues appear to
> be that the configure scripts don't always detect the necessary
> dependent libraries like zlib and libpng. There also appears to be so
> many different ways to install msys + mingw. Any suggested advice?
>
> Thanks in advance,
> Q
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public