From: Bruno P. <bru...@cl...> - 2005-11-04 09:51:15
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <div class="moz-signature"><font color="#000000">short:<br> It works!<br> <br> long:<br> Hi all,<br> <br> First, thanks to all who send me advices and encouragements: Alan, Arjen and Kare...<br> <br> Actually, I've forgot the SECOND RULE: "don't forgot the FIRST RULE : check your PATH!!" :-(<br> (Kare-from-Norway was right!)<br> That was not a big issue! When I had configure/make/make install plplot5.5.3 and perl/make/make install PDL2.4.2<br> with the definition of the PATH<br> <br> </font><font color="#000000"><tt>PATH: /usr/X11R6/bin<br> PATH: /usr/X11R6/lib<br> PATH: /usr/local/plplot/lib/plplot5.5.3/driversd<br> PATH: /usr/local/lib<br> PATH: /usr/local/lib/pkgconfig<br> PATH: /usr/local/plplot/bin<br> PATH: /usr/local/plplot/include/plplot<br> PATH: /usr/local/plplot/lib<br> PATH: /usr/local/bin<br> PATH: /usr/bin<br> PATH: /usr/include<br> PATH: /lib<br> PATH: /bin</tt></font><font color="#000000"><br> <br> Along my many tests, sometimes i change the path but when i exit from cygwin, my definitions were losts.<br> It finally works when I've remembered to define PATH directly in /etc/profile.<br> <br> perl succeeds in loading the dll and i can execute the c- and perl-examples lying in plplot/share/plplot5.5.3/examples !<br> Below this message, I give the precise details of my installation.<br> <br> Now, my next goal is to succeed in writing png files...once again, if someone has suggestions...<br> <br> I've installed the gd-2.0.33 library, so plplot installs the gd driver and enables<br> png files. Here is the the Configure results of plplot:<br> <br> </font><font color="#000000"><tt>command: ./configure --prefix=/usr/local/plplot --disable-python --disable-java --disable-octave --disable-tcl --disable-itcl --disable-cxx --disable-f77 --enable-ltdl-convenience<br> host: i686-pc-cygwin<br> have_x: no<br> prefix: /usr/local/plplot<br> CC: gcc <br> LIB_TAG: d<br> devices: png jpeg gif hp7470 hp7580 lj_hpgl mem null pbm plmeta ps psc pstex wingcc xfig<br> <br> Available device drivers:<br> static: <br> dynamic: gd.la hpgl.la mem.la null.la pbm.la plmeta.la ps.la pstex.la wingcc.la xfig.la<br> <br> </tt></font><font color="#000000">but, if i try to write a png file with perl, as in the example in the README of PDL::PLplot<br> </font><font color="#000000"><tt>my $pl = PDL::Graphics::PLplot->new (DEV => 'png', FILE => "test1.png");<br> <br> </tt></font><font color="#000000">The output is<br> </font><font color="#000000"><tt><br> Requested device png not available<br> <br> Plotting Options:<br> < 1> wingcc Win32 (GCC)<br> < 2> plmeta PLplot Native Meta-File<br> < 3> ps PostScript File (monochrome)<br> < 4> psc PostScript File (color)<br> < 5> xfig Fig file<br> < 6> hp7470 HP 7470 Plotter File (HPGL Cartridge, Small Plotter)<br> < 7> hp7580 HP 7580 Plotter File (Large Plotter)<br> < 8> lj_hpgl HP Laserjet III, HPGL emulation mode<br> < 9> pbm PDB (PPM) Driver<br> <10> pstex Combined Postscript/LaTeX files<br> <11> null Null device<br> <12> mem User-supplied memory device<br> <br> Enter device number or keyword: </tt></font><font color="#000000"><br> <br> </font><font color="#000000">The drivers of plplot are: <br> ls </font><font color="#000000"><tt>/usr/local/plplot/lib/plplot5.5.3/driversd/*<br> <br> </tt></font><font color="#000000"><tt>-rwxr-xr-x 1 Maître Aucun 78061 Nov 3 18:00 gd.dll<br> -rwxr-xr-x 1 Maître Aucun 1035 Nov 3 18:00 gd.la<br> -rw-r--r-- 1 Maître Aucun 0 Nov 3 18:00 gd.rc<br> -rwxr-xr-x 1 Maître Aucun 43425 Nov 3 18:01 hpgl.dll<br> -rwxr-xr-x 1 Maître Aucun 891 Nov 3 18:01 hpgl.la<br> -rw-r--r-- 1 Maître Aucun 200 Nov 3 18:00 hpgl.rc<br> -rwxr-xr-x 1 Maître Aucun 39025 Nov 3 18:01 mem.dll<br> -rwxr-xr-x 1 Maître Aucun 886 Nov 3 18:01 mem.la<br> -rw-r--r-- 1 Maître Aucun 45 Nov 3 18:00 mem.rc<br> -rwxr-xr-x 1 Maître Aucun 37377 Nov 3 18:01 null.dll<br> -rwxr-xr-x 1 Maître Aucun 891 Nov 3 18:01 null.la<br> -rw-r--r-- 1 Maître Aucun 32 Nov 3 18:00 null.rc<br> -rwxr-xr-x 1 Maître Aucun 41122 Nov 3 18:02 pbm.dll<br> -rwxr-xr-x 1 Maître Aucun 886 Nov 3 18:02 pbm.la<br> -rw-r--r-- 1 Maître Aucun 33 Nov 3 18:00 pbm.rc<br> -rwxr-xr-x 1 Maître Aucun 49495 Nov 3 18:02 plmeta.dll<br> -rwxr-xr-x 1 Maître Aucun 901 Nov 3 18:02 plmeta.la<br> -rw-r--r-- 1 Maître Aucun 46 Nov 3 18:00 plmeta.rc<br> -rwxr-xr-x 1 Maître Aucun 77552 Nov 3 18:02 ps.dll<br> -rwxr-xr-x 1 Maître Aucun 881 Nov 3 18:02 ps.la<br> -rw-r--r-- 1 Maître Aucun 83 Nov 3 18:00 ps.rc<br> -rwxr-xr-x 1 Maître Aucun 91842 Nov 3 18:03 pstex.dll<br> -rwxr-xr-x 1 Maître Aucun 896 Nov 3 18:03 pstex.la<br> -rw-r--r-- 1 Maître Aucun 54 Nov 3 18:00 pstex.rc<br> -rwxr-xr-x 1 Maître Aucun 435539 Nov 3 18:03 wingcc.dll<br> -rwxr-xr-x 1 Maître Aucun 909 Nov 3 18:03 wingcc.la<br> -rw-r--r-- 1 Maître Aucun 36 Nov 3 18:00 wingcc.rc<br> -rwxr-xr-x 1 Maître Aucun 49447 Nov 3 18:04 xfig.dll<br> -rwxr-xr-x 1 Maître Aucun 891 Nov 3 18:04 xfig.la<br> -rw-r--r-- 1 Maître Aucun 28 Nov 3 18:00 xfig.rc<br> </tt></font><font color="#000000"><br> I'm not sure about what to do and I don't even know if the gd driver is the good solution for png files...<br> I'm still working on it : ) !<br> <br> thanks again!!<br> regards,<br> <br> bruno<br> <br> ====================================<br> INSTALLATION OF PDL:Graphics::PLplot<br> ====================================<br> <br> windows 5.1 build 2600 service pack2<br> <br> cygwin dll 1.5.18 / shared id cygwin 1S4<br> <br> perl v5.8.7 build for cygwin<br> <br> 1- modify PATH in /etc/profile<br> <br> 2- plplot5.5.3 : ./configure (i've juste disable all languages except pdl (see above output of configure)<br> make<br> make install<br> <br> 3- !!!!!! Rename(copy) /usr/local/lib/plplot/lib *.dll.a in *.dll !!!!!!!!!!!!!<br> <br> 4 - (optionnal) install ExtUtils::F77 and Inline0.44 perl modules (easy, just used for compiling PDL::Slatec)<br> <br> 5- PDL 2.4.2<br> modify perldl.conf : </font><font color="#000000"><tt>WITH_3D = 0,# </tt></font><font color="#000000"><br> uncomment the lines<br> </font><font color="#000000"><tt> WITH_PLPLOT => 1, # Build PLPLOT interface<br> WHERE_PLPLOT_LIBS => '/usr/local/plplot/lib', # PLplot lib dir<br> WHERE_PLPLOT_INCLUDE => '/usr/local/plplot/include', # PLplot include dir</tt></font><font color="#000000"><br> </font> <font color="#000000"> perl Makefile.PL<br> make the first time, it failed : juste remane(copy) (</font><font color="#000000">in the PDL installation directory) </font><font color="#000000">/blib/script/pdl.exe in /blib/script/pdl<br> make (it works)<br> make install<br> <br> That's it!<br> </font><br> Bruno Picard a écrit : <blockquote cite="mid...@cl..." type="cite"> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> (sorry if its the second and same mail you've received...)<br> <br> Hi arjen (and you all plplot-general if this mail succeeds in reaching you...)!<br> <br> well, I can now be more precised on the issus I encountered for porting PDL::Graphics::PLplot<br> on cygwin.<br> <br> Here is my environment:<br> <br> windaube XP [french joke, like winstinks XP ; ) ] 5.1 build 2600 service pack2<br> <br> cygwin dll 1.5.18 / shared id cygwin 1S4<br> <br> perl v5.8.7 build for cygwin<br> <br> PDL 2.4.2<br> <br> plplot5.5.3<br> <br> So, there are strange things during the install of PDL:<br> - at perl Makefile.PL<br> it can't find libplplot.dll : actually, libplplot.dll.a exists so, it finally works if<br> - I "cp libplplot.dll.a libplplot.dll <br> or - I modify Makefile.PL in /Graphics/PLplot : my $libname = "libplplotd.dll.a" instead of<br> my $libname = "libplplotd.dll".config("so") <br> - finally, it (seems to) work but, at the end of "make":<br> it can't find /blib/script/pdl : actually, "pdl.exe" exists, so I "cp PDL.exe PDL" ... and it works (?)<br> <br> - make install : all (seems to be) is ok<br> <br> - perldl inline command works:<br> perldl> $x = sequence 3,4<br> perldl> set $x, 2,1,99<br> perldl> p $x<br> [<br> [ 0 1 2]<br> [ 3 4 99]<br> [ 6 7 8]<br> [ 9 10 11]<br> ]<br> (from <a class="moz-txt-link-freetext" href="http://www.us025.ird.fr/article.php3?id_article=17">http://www.us025.ird.fr/article.php3?id_article=17</a>)<br> <br> Now, the problem is:<br> perl -v "use PDL::Graphics::PLplot;"<br> can't load '/usr/lib/perl5/site_perl/5.8/cygwin/auto/PDL/Graphics/PLplot/PLplot.dll' for module PDL/Graphics/PLplot:<br> no such file or directory in Dynaloader.pm line 230<br> <br> (line 230 of Dynaloader:; my $libref = dl_load_file( [...] ) )<br> <br> But /usr/lib/perl5/site_perl/5.8/cygwin/auto/PDL/Graphics/PLplot/PLplot.dll exists (libPLplot.dll.a too) and is non void!!!<br> <br> I didn't find any similar situation neither on the web nor in forums and i can't remember the number of (re)installation of <br> the whole config (including cygwin) : (<br> <br> any suggestions will be welcomed as the first day of spring after a long and cold winter : p,<br> <br> regards,<br> <br> bruno<br> <br> <br> </blockquote> <br> -- <br> <div align="center"><u>____________________________________________________</u> <br> <font face="Verdana" size="2">Dr. Bruno Picard<br> Dép. Traitement de la Mesure et Segment Sol <br> (Data Analysis and Ground Processing Unit) <br> CLS<br> Dir. Océanographie Spatiale<br> 8-10 rue Hermès, 31520 Ramonville Saint Agne, France<br> <br> Tél: (+33)5.61.39.37.37, Fax: (+33)5.61.39.37.82<br> Mél: <a href="mailto:bru...@cl...">bru...@cl...</a><br> Toile : <a href="http://julie-et-bruno.9online.fr/nono/cadrenono.html" eudora="autourl">http://julie-et-bruno.9online.fr/nono/cadrenono.html</a><br> </font><u>____________________________________________________</u><br> <img src="cid:par...@cl..."><br> </div> </div> </body> </html> |