From: <Han...@sh...> - 2008-01-16 10:15:24
|
Hi Werner, I indeed did all removing all stuff and have a fresh build. I digged some deeper (indeed in the gd.c) and noticed the "ifdef" = contruction for GD2_VERS >=3D2 So looking to my system, I have gd.1.8.0 and in the gd.h file is no = definition of glAlphaMax. Going to a RH4 system and looking at the gd.h file (of a here 2.0 = version), I see the definition of gdAlpahMax. So, why is gd.c using gdAlphaMax for a gd version < 2 ? Is there a way around ? Regards, Hans Rijneke. Shell International Exploration and Production B.V. The Hague, The Netherlands - Trade Register no. 27002688 Address: Kessler Park 1, 2280 GS Rijswijk, The Netherlands (: +31 070 447 2737 *: <mailto:han...@sh...> 6: <http://www.shell.com/eandp-en> Disclaimer of Liability:=20 This message, any attachment and response string are confidential and = may be legally privileged. It is intended only for the use of the = parties to whom it is addressed. If you are not the addressee indicated = in this message please notify the sender immediately by reply email = and destroy this message. All information and attachments remain the property of Shell -----Original Message----- From: plp...@li... [mailto:plp...@li...]On Behalf Of Werner Smekal Sent: woensdag 16 januari 2008 10:47 To: plp...@li... Subject: Re: [Plplot-general] Installation problem on Linux RH3 Hi, just to make sure, you always start with a clean build directory, i.e.=20 you remove the whole build directory and create a new one, or delete all = files and directories in it (if you change cmake settings)? The gd driver problem seems to stem from the newly added alpha channel=20 stuff (gdAlphaMax), it seems that this variable is not declared because=20 of some #ifdef issues (I don't have the code right in front of me). Try=20 to find gdAlphaMax in drivers/gd.c and see why its not declared - if=20 this is a real bug it should be fixed soon. Regards, Werner Han...@sh... wrote: > Hi Alan, >=20 > Tried to do it, but still get into problems. >=20 > 1) Removed the -DPL_DOUBLE=3DNO >=20 > /scratch/kshri0/cmake-2.4.7/bin/cmake -E cmake_progress_report=20 > /scratch/kshri0/newplplot/download_directory/plplot/build/CMakeFiles = 54 >=20 > [ 54%] Built target get-drv-info > make -f drivers/CMakeFiles/gcw_CHECK.dir/build.make=20 > drivers/CMakeFiles/gcw_CHECK.dir/build > make[2]: Entering directory=20 > `/scratch/kshri0/newplplot/download_directory/plplot/build' > /scratch/kshri0/cmake-2.4.7/bin/cmake -E cmake_progress_report=20 > /scratch/kshri0/newplplot/download_directory/plplot/build/CMakeFiles >=20 > [ 54%] Generating gcw.rc > cd /scratch/kshri0/newplplot/download_directory/plplot/build/drivers = &&=20 > ./get-drv-info gcw >=20 > = /scratch/kshri0/newplplot/download_directory/plplot/build/drivers/gcw.rc >=20 > Could not open driver module=20 > /scratch/kshri0/newplplot/download_directory/plplot/build/drivers/gcw > libltdl error: file not found > make[2]: *** [drivers/gcw.rc] Error 1 > make[2]: Leaving directory=20 > `/scratch/kshri0/newplplot/download_directory/plplot/build' > make[1]: *** [drivers/CMakeFiles/gcw_CHECK.dir/all] Error 2 > make[1]: Leaving directory=20 > `/scratch/kshri0/newplplot/download_directory/plplot/build' > make: *** [all] Error 2 >=20 > 2) Added option -DPLD_gcw=3DOFF (In fact I am only interested in the=20 > "xwin" and "jpeg" drivers) : >=20 > /usr/bin/gcc -O2=20 > -I/scratch/kshri0/newplplot/download_directory/plplot/trunk/include=20 > -I/scratch/kshri0/newplplot/download_directory/plplot/build=20 > -I/scratch/kshri0/newplplot/download_directory/plplot/build/include =20 > -DHAVE_CONFIG_H -o src/CMakeFiles/plplotd.dir/plvect.o -c=20 > /scratch/kshri0/newplplot/download_directory/plplot/trunk/src/plvect.c >=20 > /scratch/kshri0/cmake-2.4.7/bin/cmake -E cmake_progress_report=20 > /scratch/kshri0/newplplot/download_directory/plplot/build/CMakeFiles = 32 >=20 > [ 45%] Building C object=20 > = src/CMakeFiles/plplotd.dir/scratch/kshri0/newplplot/download_directory/pl= plot/trunk/drivers/gd.o >=20 > /usr/bin/gcc -O2=20 > -I/scratch/kshri0/newplplot/download_directory/plplot/trunk/include=20 > -I/scratch/kshri0/newplplot/download_directory/plplot/build=20 > -I/scratch/kshri0/newplplot/download_directory/plplot/build/include =20 > -DHAVE_CONFIG_H -I/usr/include -o=20 > = src/CMakeFiles/plplotd.dir/scratch/kshri0/newplplot/download_directory/pl= plot/trunk/drivers/gd.o =20 > -c = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c >=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:=20 > In function `plD_state_png': > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:95= 9:=20 > `gdAlphaMax' undeclared (first use in this function) >=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:95= 9:=20 > (Each undeclared identifier is reported only once >=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:95= 9:=20 > for each function it appears in.) > make[2]: ***=20 > = [src/CMakeFiles/plplotd.dir/scratch/kshri0/newplplot/download_directory/p= lplot/trunk/drivers/gd.o]=20 > Error 1 > make[2]: Leaving directory=20 > `/scratch/kshri0/newplplot/download_directory/plplot/build' > make[1]: *** [src/CMakeFiles/plplotd.dir/all] Error 2 > make[1]: Leaving directory=20 > `/scratch/kshri0/newplplot/download_directory/plplot/build' > make: *** [all] Error 2 >=20 > The "gd" driver I need, so cannot remove that one. >=20 > 3) Just to make sure, removed -DBUILD_SHARED_LIBS=3DNO : >=20 > [ 53%] Building C object drivers/CMakeFiles/gd.dir/gd.o > /usr/bin/gcc -O2 -Dgd_EXPORTS -fPIC=20 > -I/scratch/kshri0/newplplot/download_directory/plplot/trunk/include=20 > -I/scratch/kshri0/newplplot/download_directory/plplot/build=20 > -I/scratch/kshri0/newplplot/download_directory/plplot/build/include =20 > -DHAVE_CONFIG_H -I/usr/include -o drivers/CMakeFiles/gd.dir/gd.o -c = > /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c >=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:=20 > In function `plD_state_png': > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:95= 9:=20 > `gdAlphaMax' undeclared (first use in this function) >=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:95= 9:=20 > (Each undeclared identifier is reported only once >=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:95= 9:=20 > for each function it appears in.) > make[2]: *** [drivers/CMakeFiles/gd.dir/gd.o] Error 1 > make[2]: Leaving directory=20 > `/scratch/kshri0/newplplot/download_directory/plplot/build' > make[1]: *** [drivers/CMakeFiles/gd.dir/all] Error 2 > make[1]: Leaving directory=20 > `/scratch/kshri0/newplplot/download_directory/plplot/build' > make: *** [all] Error 2 >=20 > So now my cmake command looks like : >=20 > export CC=3D"gcc -O2" > export CXX=3D"g++ -O2" > export FC=3D"g77 -O2" > cmake -DCMAKE_INSTALL_PREFIX=3D/scratch/Plplot = -DCMAKE_VERBOSE_MAKEFILE=3DON \ > -DPLD_gcw=3DOFF ../trunk >& cmake.out >=20 > So very simple. I hope you can give me any more suggestions how to=20 > proceed. I can live with Double precision and shared libraries, so = need=20 > to solve that now. >=20 > Regards and thanks for any help, > Hans Rijneke. >=20 > Shell International Exploration and Production B.V. > The Hague, The Netherlands - Trade Register no. 27002688 > Address: Kessler Park 1, 2280 GS Rijswijk, The Netherlands >=20 > (: +31 070 447 2737 > *: <mailto:han...@sh...> > 6: <http://www.shell.com/eandp-en> >=20 > Disclaimer of Liability: > This message, any attachment and response string are confidential and=20 > may be legally privileged. It is intended only for the use of the=20 > parties to whom it is addressed. If you are not the addressee=20 > indicated in this message please notify the sender immediately by=20 > reply email and destroy this message. >=20 > All information and attachments remain the property of Shell >=20 >=20 > -----Original Message----- > From: plp...@li... > [mailto:plp...@li...]On Behalf Of Alan > W. Irwin > Sent: dinsdag 15 januari 2008 18:32 > To: plplot_general > Subject: Re: [Plplot-general] Installation problem on Linux RH3 >=20 >=20 > On 2008-01-15 15:57+0100 Han...@sh... wrote: >=20 >> Hi Alan, >> >> Finally succeeded getting through our firewalls to download your new >> version. The "make" now complains about the next : >> >> 135 /scratch/kshri0/cmake-2.4.7/bin/cmake -E cmake_progress_report >> /scratch/kshri0/newplplot/download_directory/plplot/build/CMakeFiles = 31 >> 136 [ 40%] Building C object src/CMakeFiles/plplot.dir/plvect.o >> 137 /usr/bin/gcc -O2 >> -I/scratch/kshri0/newplplot/download_directory/plplot/trunk/include >> -I/scratch/kshri0/newplplot/download_directory/plplot/b uild >> -I/scratch/kshri0/newplplot/download_directory/plplot/build/include >> -DHAVE_CONFIG_H -o src/CMakeFiles/plplot.dir/plvect.o -c /scratc >> h/kshri0/newplplot/download_directory/plplot/trunk/src/plvect.c >> 138 /scratch/kshri0/cmake-2.4.7/bin/cmake -E cmake_progress_report >> /scratch/kshri0/newplplot/download_directory/plplot/build/CMakeFiles = 32 >> 139 [ 41%] Building C object >>=20 > = src/CMakeFiles/plplot.dir/scratch/kshri0/newplplot/download_directory/plp= lot/trunk/drivers/gd.o=20 >=20 >> 140 /usr/bin/gcc -O2 >> -I/scratch/kshri0/newplplot/download_directory/plplot/trunk/include >> -I/scratch/kshri0/newplplot/download_directory/plplot/b uild >> -I/scratch/kshri0/newplplot/download_directory/plplot/build/include >> -DHAVE_CONFIG_H -I/usr/include -o src/CMakeFiles/plplot.dir/scrat >> ch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.o = -c >> = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c >> 141 >>=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c: = In >> function `plD_state_png': >> 142 >>=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:95= 9: >> `gdAlphaMax' undeclared (first use in this function) >> 143 >>=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:95= 9: >> (Each undeclared identifier is reported only once >> 144 >>=20 > = /scratch/kshri0/newplplot/download_directory/plplot/trunk/drivers/gd.c:95= 9: >> for each function it appears in.) >> 145 make[2]: *** >>=20 > = [src/CMakeFiles/plplot.dir/scratch/kshri0/newplplot/download_directory/pl= plot/trunk/drivers/gd.o]=20 >=20 >> Error 1 >> 146 make[2]: Leaving directory >> `/scratch/kshri0/newplplot/download_directory/plplot/build' >> 147 make[1]: *** [src/CMakeFiles/plplot.dir/all] Error 2 >> 148 make[1]: Leaving directory >> `/scratch/kshri0/newplplot/download_directory/plplot/build' >> 149 make: *** [all] Error 2 >> >> Some option I need to specify ? >=20 > I just now tried to configure and build PLplot with the = -DPL_DOUBLE=3DNO > option. My (Debian testing) platform has essentially all required > development packages installed so my builds tend to encompass all = parts of > PLplot. >=20 > Anyhow, with this full build I didn't get nearly as far as you until I = ran > into problems with -DPL_DOUBLE=3DNO. Bit rot has definitely set in = for this > option, and it is probably going to take a while to straighten this = out. > For now, try a build without this option (which gives you double = precision > floating-point plot computations by default) just to make sure there = are > no other problems for your platform. >=20 > Alan > __________________________ > Alan W. Irwin >=20 > Astronomical research affiliation with Department of Physics and = Astronomy, > University of Victoria (astrowww.phys.uvic.ca). >=20 > Programming affiliations with the FreeEOS equation-of-state = implementation > for stellar interiors (freeeos.sf.net); PLplot scientific plotting = software > package (plplot.org); the libLASi project (unifont.org/lasi); the = Loads of > Linux Links project (loll.sf.net); and the Linux Brochure Project > (lbproject.sf.net). > __________________________ >=20 > Linux-powered Science > __________________________ >=20 > = -------------------------------------------------------------------------= > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general >=20 >=20 > = ------------------------------------------------------------------------ >=20 > = -------------------------------------------------------------------------= > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >=20 >=20 > = ------------------------------------------------------------------------ >=20 > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general --=20 Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: sm...@ia... web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 -------------------------------------------------------------------------= This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general |