From graphics-request at octave dot org Wed Oct 20 23:56:54 2004 Subject: Re: gd-octave 1.8.4 From: Hemant Kumar To: Rafael Laboissiere Cc: Muthu , graphics@octave.org Date: Wed, 20 Oct 2004 23:47:50 -0500 Hello... Thanks for the suggestions....we will incorporate them in our next release. -- I used to be indecisive... but now i am not so "sure" Quoting Rafael Laboissiere : > * Muthu [2004-10-17 01:47]: > > > Hello Folks! > > Im happy to announce gd-octave. > > GD library a generalpurpose 2-D graphics > > library has been successfully ported to > > Octave. > > > > Please go through the web page at > > http://cybernetics.freewebspace.com/gd-otave/ > > For downloading and details. > > > > You need: > > A standard GNU/Linux distro [Debian,FC2,RH9,Mandrake] > > GD Library itself [Old version 1.8.4] > > Octave package > > http://www.boutell.com/gd/http/gd-1.8.4.tar.gz > > libjpeg,libzip,libpng12 > > > > To BUILD the package: > > tar -xzvf ./gd-octave-0.0.3.tgz > > cd gd-octave-0.0.3 > > cd src > > make > > Unfortunately, compilation fails with GD 2.0.28. The reason is because your > src/rules.flex does not cope with the new syntax in /usr/include/gd.h. I > hacked src/Makefile (using Perl and sed, sorry, no Python knowledge here) as > in the patch is attached below. > > Furthermore, you hardcoded too much things for generating the gd.oct file. > Instead of using: > > gcc --shared -o gd.oct gdwrap.cpp -I/usr/include/octave-2.1.50 -I > /usr/include/octave-2.1.50/octave -lgd > > it is far better and failure-proof to use: > > mkoctfile -o gd.oct gdwrap.cpp -lgd > > Finally, you should consider using Autoconf/Automake for configuring your > package. For an alternate (and probably more robust) approach for > generating the wrapper code, you might take a look at Matwrap > (http://lnc.usc.edu/~holt/matwrap/). We have been using it in the PLplot > project (http://plplot.sf.net) and it works very well. > > At any rate, thanks for your effort and keep going! > > -- > Rafael > ------------------------------------------------- This mail sent through IMP(http://www.nitt.edu)