|
From: Mojca M. <moj...@gm...> - 2009-01-10 09:45:19
|
On Sun, Jan 4, 2009 at 3:34 PM, m sutton wrote:
> Hi all,
>
> I have recently created a script to build Gnuuplot on Windows under the MinGW/Msys environment with PNG, Freetype and GD. I have also used this for Solaris and Linux environments. This is based on a CVS snapshot from about 9 months ago.
>
>
> Here are the versions of the libraries I used (freetype-2.3.5, gd-2.0.33, libpng-1.2.18, zlib-1.2.3). The build script assumes that these libraries are in .tar.gz files located in the top of the Gnuplot tree. The script will build static libraries just for Gnuplot to use. I often work on older Linux boxes that I can't change and don't have the newer versions of these libraries.
>
> The one thing I had to to was modify the gd.h file to never build a DLL. So I created a copy of gd.h named gd.h.win32 to prevent the DLL.
>
> I put the script in the top level of the Gnuplot tree and run it from there. I simply called it build.sh.
>
> Hope it helps someone,
>
> Mike Sutton
Hello,
I might contact you off-line, but the binary I compiled with a
slightly modified script that you posted still resulted in plethora of
dependencies on Mac OS X. In particular it would be nice to remove all
those dependencies that begin with /sw/:
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.3)
/sw/lib/libpng12.0.dylib (compatibility version 30.0.0,
current version 30.0.0)
/usr/X11R6/lib/libXpm.4.dylib (compatibility version 4.11.0,
current version 4.11.0)
/usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0,
current version 6.2.0)
/usr/X11R6/lib/libfontconfig.1.dylib (compatibility version
1.0.0, current version 1.0.0)
/usr/X11R6/lib/libfreetype.6.dylib (compatibility version
6.3.0, current version 6.3.0)
Libraries that were not addressed (and could be removed later):
/sw/lib/libreadline.5.dylib (compatibility version 5.0.0,
current version 5.0.0)
/sw/lib/libhistory.5.dylib (compatibility version 5.0.0,
current version 5.0.0)
/sw/lib/ncurses/libncurses.5.dylib (compatibility version
5.0.0, current version 5.0.0)
/sw/lib/libiconv.2.dylib (compatibility version 7.0.0, current
version 7.0.0)
/sw/lib/libpdf.6.dylib (compatibility version 7.0.0, current
version 7.2.0)
/sw/Library/Frameworks/AquaTerm.framework/Versions/A/AquaTerm
(compatibility version 1.0.0, current version 1.0.0)
These dependencies are OK:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
(compatibility version 300.0.0, current version 567.40.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0,
current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,
current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.3.11)
In any case: thanks a lot for showing me where to start. I need to
figure out how to solve the remaining dependencies, but it's a good
start.
> case "$os" in
> MINGW32*) make -C src -f ../config/makefile.mgw2 || exit 1
>
> *) make || exit 1
> esac
This portion of code fails here (I need to figure out why), so I have
removed the "case" temporary and only put "make" on that place.
Thanks again,
Mojca
|