I got the libpuzzle source here: http://www.pureftpd.org/project/libpuzzle/download .
I read that I need MinGW to compile any C program in Windows, so I got a lot of options for C, C ++ and mins. Using mins, I followed: http://wiki.openttd.org/Compiling_on_MinGW
I downloaded .tar.gz and unpacked it, ran the command. / configure and got:
libgd2 development files are not found
It makes sense in readme:
In order to load images, the library relies on the GD2 library. You need to install gdlib2 and its development headers before compiling libpuzzle. The GD2 library is available as a pre-built package for most operating systems. Debian and Ubuntu users should install the "libgd2-dev" or the "libgd2-xpm-dev" package. Gentoo users should install "media-libs/gd". OpenBSD, NetBSD and DragonflyBSD users should install the "gd" package. MacPorts users should install the "gd2" package. X11 support is not required for the Puzzle library. Once GD2 has been installed, configure the Puzzle library as usual:
Currently my problem is looking for the libgd2-dev file or similar file to compile. I found this: http://mldonkey.sourceforge.net/Windows and downloaded http://www.boutell.com/gd/http/gd-2.0.33.tar.gz and it installed perfectly. Running gdlib-config displays a typical person. However, libpuzzle still says that I need βlibgd2 development filesβ, so I assume that the gd that I downloaded was βlibgdβ, but just βgdβ or a file in which I didn't have development files . Where can I find what I need?
Here is the output of mingw:
Brian@2500K ~/libpuzzle-0.11 $ gdlib-config Print information on GD library version, configuration, and use. Usage: gdlib-config [options] Options: --libdir # directory where GD library is installed --includedir # directory where GD library headers are installed --version # complete GD library version string --majorversion # GD library major version number --minorversion # GD library minor version number --revision # GD library revision version number --ldflags # options required for linking against GD library --libs # libs required for linking against GD library --cflags # options required for compiling GD library apps --includes # same as --cflags --features # lists optional features compiled into gd, separated # by spaces. Currently (as of 2.0.26) the optional # features are GD_PNG, GD_JPEG, GD_XPM, and # GD_FREETYPE. When these features are reported by # --features, it is safe to include calls to the # related functions in your code. --all # print a summary of all GD library configure options Brian@2500K ~/libpuzzle-0.11 $ gdlib-config --includedir /usr/local/include Brian@2500K ~/libpuzzle-0.11 $ ./configure checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking whether ln -s works... no, using cp -p checking whether make sets $(MAKE)... (cached) yes checking for gdlib-config... /usr/local/bin/gdlib-config checking for gdImageCreateFromGd2 in -lgd... no configure: error: libgd2 development files not found
Edit: Began generosity. I'm either looking for a libpuzzle compilation for me to work on WAMP (skipping complicated middle stuff). Or help me get every requirement I need so I can compile it. My ultimate goal is that libpuzzle runs on wamp
Edit 2: just an update, it looks like libgd2 has problems with mingw. Even if I had to finally run libgd2, I still need phpize for mingw, which also does not work for mingw. It seems impossible to use libpuzzle for windows