From: Pankaj L. <pa...@da...> - 2003-02-13 12:44:32
Attachments:
config.log
|
Hi All, I built plplotter 5.2.0 on Solaris (Active tcl version 8.4). I have disabled dynamic drivers and enable tcl/tk driver. I am attaching log of configure to this mail for refer of various options I have used for building the shared libraries. I tried the sequence given at end of this post at wish prompt. I observed two things. 1. Why do Plplotter search for tk_drv.so or tkd_drv.so, even when I have built the shared library without any dynamic driver? 2. Why am I getting the XCreatPixmap errors when I try to creat second instance of plframe ? Any idea what is going wrong? Please help me. Thanks Pankaj. % package require Itcl 3.2 % package require Itk 3.2 % package require Plplotter 5.2.0 % plframe .p .p % pack .p % .p cmd plvsta % .p cmd plwind 10 100 10 100 % .p cmd plbox b 0 0 b 0 0 % package require Pltk looking for driver file: /usr/ActiveTcl/lib/plplot5.2.0/drivers/tkd_drv.so looking for driver file: /usr/ActiveTcl/lib/plplot5.2.0/drivers/tk_drv.so looking for driver file: /usr/ActiveTcl/lib/plplot5.2.0/./libplplotd.so.5.2.0 looking for driver file: /usr/ActiveTcl/lib/plplot5.2.0/./libplplot.so.5.2.0 file "/usr/ActiveTcl/lib/plplot5.2.0/./libplplot.so.5.2.0" is already loaded for package "Plplotter" % matrix m f 2 m % m 0 = 10 % m 1 = 30 % matrix l f 2 l % l 0 = 20 % l 1 = 40 % .p cmd plline 2 m l % plframe .p1 Error in XCreatePixmap: BadWindow (invalid Window parameter). Error in XCreatePixmap: BadDrawable (invalid Pixmap or Window parameter). Error in XCreatePixmap: BadDrawable (invalid Pixmap or Window parameter). X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Resource id in failed request: 0x5000009 Serial number of failed request: 63 Current serial number in output stream: 66 /usr/ActiveTcl/lib/plplot5.2.0 > |
From: Alan W. I. <ir...@be...> - 2003-02-13 15:41:40
|
On Thu, 13 Feb 2003, Pankaj Laddha wrote: > Hi All, > > I built plplotter 5.2.0 on Solaris (Active tcl version 8.4). I have disabled > dynamic drivers and enable tcl/tk driver. I am attaching log of configure to > this mail for refer of various options I have used for building the shared > libraries. > > I tried the sequence given at end of this post at wish prompt. I observed two > things. > 1. Why do Plplotter search for tk_drv.so or tkd_drv.so, even when I have built > the shared library without any dynamic driver? > 2. Why am I getting the XCreatPixmap errors when I try to creat second instance > of plframe ? > > Any idea what is going wrong? Please help me. > > Thanks > Pankaj. This is just a guess because I only have a short time to answer this, but I think we have a built-in assumption in the package require logic to look for most stuff in the shared objects created when you specify dynamic drivers. (Any volunteers to fix this assumption for 5.2.1?) I cannot recall the rest of this thread, but did we advise you to use static drivers for some reason? Although those are the traditional solution, they were not as well-tested as dynamic drivers for 5.2.0, and in fact there is a well known bug if you use the combination of static drivers and double. So please try dynamic drivers. They certainly worked for me on one limited solaris test without tcl/tk, and I think they are necessary for our current tcl/tk package require logic. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |
From: Maurice L. <mj...@ga...> - 2003-02-18 06:42:20
|
Alan W. Irwin writes: > On Thu, 13 Feb 2003, Pankaj Laddha wrote: > > > Hi All, > > > > I built plplotter 5.2.0 on Solaris (Active tcl version 8.4). I have disabled > > dynamic drivers and enable tcl/tk driver. I am attaching log of configure to > > this mail for refer of various options I have used for building the shared > > libraries. > > > > I tried the sequence given at end of this post at wish prompt. I observed two > > things. > > 1. Why do Plplotter search for tk_drv.so or tkd_drv.so, even when I have built > > the shared library without any dynamic driver? > > 2. Why am I getting the XCreatPixmap errors when I try to creat second instance > > of plframe ? > > > > Any idea what is going wrong? Please help me. > > > > Thanks > > Pankaj. > > This is just a guess because I only have a short time to answer this, but I > think we have a built-in assumption in the package require logic to look for > most stuff in the shared objects created when you specify dynamic drivers. > (Any volunteers to fix this assumption for 5.2.1?) Sorry for the late reply. A few comments: 1. To get 'package require' to work, you must have dynamically-loadable modules. So try with dynamic drivers. 2. I have never tried PLplot with tcl/tk 8.4. I believe one of our developers (Geoff Furnish) did try some time back and had problems. So maybe try to stick with 8.3.x for now. We will look at validating PLplot with tcl/tk 8.4 asap. 3. I only got the basic package built & a few simple tests. I don't recall if I tested the X driver but if I did, it was using a RH7.3 box as client. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |
From: Pankaj L. <pa...@da...> - 2003-02-18 13:07:46
|
Thanks for your reply Maurice. Did you require to make any changes in configure file, pkgIndex file to build the Plplotter on Solaris, as I found "pkgIndex.tcl" still has "ver" variable as "5.1.0" which causing problem in loading the appropriate drivers. Also when Build the Plplotter package, I am getting three packages like "Pltcl", "Pltk", "Plplotter". Which of these packages is backward compatible with Plplotter 5.1.0? Thanks again for your time. -Pankaj. ----- Original Message ----- From: Maurice LeBrun <mj...@ga...> To: Alan W. Irwin <ir...@be...> Cc: Pankaj Laddha <pa...@da...>; PLplot development list <Plp...@li...> Sent: Tuesday, February 18, 2003 12:10 PM Subject: Re: [Plplot-devel] Problem with Solaris - tcl/tk Plplot 5.2.0 > Alan W. Irwin writes: > > On Thu, 13 Feb 2003, Pankaj Laddha wrote: > > > > > Hi All, > > > > > > I built plplotter 5.2.0 on Solaris (Active tcl version 8.4). I have disabled > > > dynamic drivers and enable tcl/tk driver. I am attaching log of configure to > > > this mail for refer of various options I have used for building the shared > > > libraries. > > > > > > I tried the sequence given at end of this post at wish prompt. I observed two > > > things. > > > 1. Why do Plplotter search for tk_drv.so or tkd_drv.so, even when I have built > > > the shared library without any dynamic driver? > > > 2. Why am I getting the XCreatPixmap errors when I try to creat second instance > > > of plframe ? > > > > > > Any idea what is going wrong? Please help me. > > > > > > Thanks > > > Pankaj. > > > > This is just a guess because I only have a short time to answer this, but I > > think we have a built-in assumption in the package require logic to look for > > most stuff in the shared objects created when you specify dynamic drivers. > > (Any volunteers to fix this assumption for 5.2.1?) > > Sorry for the late reply. A few comments: > > 1. To get 'package require' to work, you must have dynamically-loadable > modules. So try with dynamic drivers. > > 2. I have never tried PLplot with tcl/tk 8.4. I believe one of our developers > (Geoff Furnish) did try some time back and had problems. So maybe try to > stick with 8.3.x for now. We will look at validating PLplot with tcl/tk 8.4 > asap. > > 3. I only got the basic package built & a few simple tests. I don't recall if > I tested the X driver but if I did, it was using a RH7.3 box as client. > > -- > Maurice LeBrun mj...@ga... > Research Organization for Information Science and Technology of Japan (RIST) |
From: Alan W. I. <ir...@be...> - 2003-02-18 23:08:28
|
On Tue, 18 Feb 2003, Pankaj Laddha wrote: > Did you require to make any changes in configure file, pkgIndex file to build > the Plplotter on Solaris, as I found "pkgIndex.tcl" still has "ver" variable as > "5.1.0" which causing problem in loading the appropriate drivers. Thanks, Pankaj, for pointing out this bug in 5.2.0 which I confirm. Maurice, each of tcl/pkgIndex.tcl.in, tk/pkgIndex.tcl.in, and tk-x-plat/pkgIndex.tcl.in had the string "5.1.0" in it. I am sorry we all missed that for 5.2.0, but to make sure it doesn't happen again, I have CVS-committed a fix where these files are now configured with the correct VERSION to produce pkgIndex.tcl in the 3 sub-directories which are then concatanated to form pkgIndex.tcl. I subsequently found that the package require business had been clobbered by the new dynamic driver names in CVS so I have just committed a fix for that problem as well. Everything now seems to be fine if you use the recipes in tcl/README.tcldemos and tk/README.tkdemos. Maurice and Pankaj, please give these fixes a try for yourself. Pankaj, I have included you in that invitation because I would value your solaris/tcl/tk input in the next few weeks as we prepare for the release of plplot-5.2.1. Thus, if you are interested, the instructions for getting anonymous read-only access to cvs are given in http://sourceforge.net/cvs/?group_id=2915. The CVS version of plplot requires more tools than when you work with a plplot tarball, but explicit instructions about the swig version and autotools versions that are required have been given on this list recently. Beyond those additional required tools, the only difference with the tarball approach is you have to run ./bootstrap.sh -I $autotools-prefix/share/libtool/libltdl/ before configure; make; and make install. ($autotools-prefix is the prefix you use when you install the recommended autotools versions). Feel free to write me off list if you have any problem getting set up with autotools and swig. (BTW, autotools is always required for cvs users, but you don't have to worry about swig if you are not going to build the java or python interfaces to plplot.) Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |