Hi Chen,


I found the receipe to get this working, but it is not entirely trivial - which 
is a soemwhat nasty and confusing surprise. Here it is:

-        Copy the relevant files into one or more directories that you are 
going to refer to

-        Use the sequence of commands like this:

set env(PATH) "path-to-dlls;$env(PATH)"

set env(PLPLOT_DRV_DIR) path-to-drvinfo-files

set env(PLPLOT_LIB) path-to-pal-files

lappend auto_path path-to-dlls

package require Pltcl

load plplottcltk.dll Pltcl

... PLplot is ready



I tested this with the DLLs in a directory "bin" under the directory where I 
started tclsh, the driver-info-files in a directory "drivers" and the font and 
palette files in a directory "data". It is not necessary to separate them like 
that, but for testing purposes it was easier to do it this way.



I have attached the listing of the files for your convenience as well as the 
small start-up script.



Notes:

-        If you run the [package require] command it complains that it can not 
find the loadable drivers. That is why the explicit [load] is necessary. You 
need the combination for some, as yet unexplored, reason.

-        Under the build tree this procedure is not necessary - just let 
auto_path point to the right directory and do [package require].

-        With this set-up it is easier to distribute your program or package in 
a way that is more compliant to the usual way of distributing Tcl 
programs/packages.



Regards,



Arjen

From: Arjen Markus [mailto:arjen.mar...@deltares.nl]
Sent: Thursday, April 30, 2015 10:17 AM
To: Shen-Yeh Chen
Cc: plplot-general@lists.sourceforge.net
Subject: Re: [Plplot-general] Compile for tcl binding


Hi Chen,



I have tried to get it to work by copying the relevant files in a separate 
directory (so as to determine which ones are really needed), but the MinGW/MSYS 
build I thought I could use for this is presenting strange difficulties 
(annoying and intriguing, I must say, as the examples work fine under the build 
tree). I will have to use a different one. Will keep you posted.



Regards,



Arjen




From: Shen-Yeh Chen [mailto:shenyeh_c...@hotmail.com]
Sent: Monday, April 27, 2015 8:24 PM
To: Arjen Markus; Alan W. Irwin
Cc: plplot-general@lists.sourceforge.net
Subject: RE: [Plplot-general] Compile for tcl binding

Hi Arjen,

I was hooked up with something else, so I was not able to test it further for 
few weeks until now.

I put plplottcltkd.dll under the directory of my version of tclsh.exe (and also 
tk.dll), and then

load plplottcltkd.dll Pltcl

But I got this error message:
couldn't load library "plplottcltkd.dll" : this library or a dependency library 
could not be found in library path

I think I have not configured/installed it right. Any suggestion here ?

Regards
Chen

________________________________
From: arjen.mar...@deltares.nl<mailto:arjen.mar...@deltares.nl>
To: shenyeh_c...@hotmail.com<mailto:shenyeh_c...@hotmail.com>; 
ir...@beluga.phys.uvic.ca<mailto:ir...@beluga.phys.uvic.ca>
CC: 
plplot-general@lists.sourceforge.net<mailto:plplot-general@lists.sourceforge.net>
Subject: RE: [Plplot-general] Compile for tcl binding
Date: Mon, 13 Apr 2015 09:35:51 +0000
Hi Chen,

The library you should load is plplottcltkd.dll, with the entry point "Pltcl", 
so:

% load plplottcltkd.dll Pltcl

The package name is Pltcl - in the directory bindings\tcl you can find the 
pkgIndex.tcl file, this is a trifle complicated as it tries to accommodate for 
various platforms and directories.

Regards,

Arjen


From: Shen-Yeh Chen [mailto:shenyeh_c...@hotmail.com]
Sent: Sunday, April 12, 2015 7:20 PM
To: Arjen Markus; Alan W. Irwin
Cc: 
plplot-general@lists.sourceforge.net<mailto:plplot-general@lists.sourceforge.net>
Subject: RE: [Plplot-general] Compile for tcl binding

Hi Arjen,

I look at the cmake options again, and took out the "sud" tag. Now the files 
under the "\INSTALL\bin" are

csirocsa.dll
plplotcxxd.dll
plplotd.dll
plplottcltkd.dll
plplottcltk_Maind.dll
pltcl.exe
pltek.exe
qsastime.dll
tclmatrixd.dll

Which one should I use to load into my own tcl shell ?

Thank again for the help.

Regards
Chen
________________________________
From: shenyeh_c...@hotmail.com<mailto:shenyeh_c...@hotmail.com>
To: arjen.mar...@deltares.nl<mailto:arjen.mar...@deltares.nl>; 
ir...@beluga.phys.uvic.ca<mailto:ir...@beluga.phys.uvic.ca>
Date: Sun, 12 Apr 2015 10:07:28 -0700
CC: 
plplot-general@lists.sourceforge.net<mailto:plplot-general@lists.sourceforge.net>
Subject: Re: [Plplot-general] Compile for tcl binding
Hi Arjen,

Yes the installation seems to be successful too. The only place I can find the 
dll is under the "\INSTALL\bin" directory of my plplot directory (where I have 
defined the installation prefix). And I can see these files

csirocsa.dll
plplotcxxsudd.dll
plplotsudd.dll
plplottcltksudd.dll
plplottcltk_Mainsudd.dll
pltcl.exe
pltek.exe
qsastime.dll
tclmatrixsudd.dll

Which file should I use to load into my own Tcl shell ?

Regards
Chen
________________________________
From: arjen.mar...@deltares.nl<mailto:arjen.mar...@deltares.nl>
To: shenyeh_c...@hotmail.com<mailto:shenyeh_c...@hotmail.com>; 
ir...@beluga.phys.uvic.ca<mailto:ir...@beluga.phys.uvic.ca>
CC: 
plplot-general@lists.sourceforge.net<mailto:plplot-general@lists.sourceforge.net>
Subject: RE: [Plplot-general] Compile for tcl binding
Date: Sun, 12 Apr 2015 09:01:10 +0000
Hi Chen,

Congratulations! Now we are getting somewhere. The easiest next step is to get 
PLplot installed:

nmake install

That should place the relevant files under c:\program files [(x86)]\plplot (I 
never know which of the two). Then set the auto_path variable to include that 
directory:

lappend auto_path "c:/program files/plplot/..."

I can't check it exactly at the moment, so this is merely a sketch ;)

Regards,

Arjen


From: Shen-Yeh Chen [mailto:shenyeh_c...@hotmail.com]
Sent: Saturday, April 11, 2015 7:58 PM
To: Alan W. Irwin
Cc: Arjen Markus; 
plplot-general@lists.sourceforge.net<mailto:plplot-general@lists.sourceforge.net>
Subject: RE: [Plplot-general] Compile for tcl binding

OK......I think I have done something right now, so at least I am seeing 
ENABLD_tcl set to on.

For some specific reason I do have to use my own built version of Tcl, so this 
is what I have done

1. I copy tchsh86t.exe to tchsh.exe, and copy tcl86t.lib to tcl86.lib
2. the following commands are used to call cmake and nmake. And I have attached 
their output here too.

set 
PATH=%PATH%;c:/DISK0001/Optimizer01/Worksp/SOURCE/Tcltk/Tcltk_8_6_0/tcl/win/Install_AMD64/bin
set 
CMAKE_INCLUDE_PATH=c:/DISK0001/Optimizer01/Worksp/SOURCE/Tcltk/Tcltk_8_6_0/tcl/win/Install_AMD64/include
set 
CMAKE_LIBRARY_PATH=c:/DISK0001/Optimizer01/Worksp/SOURCE/Tcltk/Tcltk_8_6_0/tcl/win/Install_AMD64/lib

cmake "C:/DISK0001/Optimizer01/Worksp/SOURCE/plplot/plplot-5.10.0/SOURCE" -G 
"NMake Makefiles" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON 
-DCMAKE_INSTALL_PREFIX="C:\DISK0001\Optimizer01\Worksp\SOURCE\plplot\plplot-5.10.0\INSTALL"
 -DCMAKE_CONFIGURATION_TYPES="Release" -DBUILD_SHARED_LIBS=OFF 
-DSTATIC_RUNTIME=ON -DENABLE_tcl=ON -DTCL_LIBRARY_VERSION=86t > 
log_cmake04_tcl.out 2>&1

nmake > log_nmake04_tcl.out

Now the problem is......where do I find the .dll of plplot, that I can load 
into tcl ?

Thanks again for the help.

Regards
Chen
> Date: Fri, 10 Apr 2015 12:55:32 -0700
> From: ir...@beluga.phys.uvic.ca<mailto:ir...@beluga.phys.uvic.ca>
> To: shenyeh_c...@hotmail.com<mailto:shenyeh_c...@hotmail.com>
> CC: arjen.mar...@deltares.nl<mailto:arjen.mar...@deltares.nl>; 
> plplot-general@lists.sourceforge.net<mailto:plplot-general@lists.sourceforge.net>
> Subject: RE: [Plplot-general] Compile for tcl binding
>
> Hi Shen-Yeh:
>
> Thanks for that captured output from the cmake command. Notice in
> there it says:
>
> Could NOT find Tclsh (missing: TCL_TCLSH)
>
> which means indeed our build system is not finding any of your current
> Tcl installation at all.
>
> On 2015-04-10 08:24-0700 Shen-Yeh Chen wrote:
>
> > Here is the path of the executable
> >
> > C:/DISK0001/Optimizer01/Worksp/SOURCE/Tcltk/Tcltk_8_6_0/tcl/win/Install_AMD64/bin/tclsh86t.exe
> >
> > The /lib directory has the following files (along with other directories)
> > tcl86t.lib
> > tclConfig.sh
> > tclooConfig.sh
> > tclstub86.lib
>
> Arjen gave you advice about how to modify our build system so it will
> find your non-standard names for Tcl components. That might work, but
> if you run into trouble with that approach, I suggest you adjust your tcl
> installation to be more standard instead.
>
> For example, Arjen mentioned using a binary installation of Tcl instead of
> your own build. That should work fine, but if you want to use your
> own build for some reason you could take a look at the binary version
> to see what the disk layout is, and then make sure the layout for your
> own build is similar.
>
> For example, it is virtually a Tcl Windows standard that tclsh.exe must be
> defined as a copy of the versioned file that is installed so you
> should do that copy (of tclsh86t.exe in your case)
> in the
>
> C:/DISK0001/Optimizer01/Worksp/SOURCE/Tcltk/Tcltk_8_6_0/tcl/win/Install_AMD64/bin
>
> directory, make that directory part of the list of directories on your
> PATH, and then after that the tclsh command should "just work"
> regardless of what directory you are in. Under bash.exe you could do
> that using
>
> export \
> PATH=/c/DISK0001/Optimizer01/Worksp/SOURCE/Tcltk/Tcltk_8_6_0/tcl/win/Install_AMD64/bin:$PATH
>
> but Arjen will have to advise you how to do that under DOS command line.
>
> Similarly, you have to set the CMAKE_INCLUDE_PATH and
> CMAKE_LIBRARY_PATH environment variables I mentioned before so
> that our CMake-based build system can find your non-standard disk
> locations. Under bash.exe you would do that using
>
> export \
> CMAKE_INCLUDE_PATH=/c/DISK0001/Optimizer01/Worksp/SOURCE/Tcltk/Tcltk_8_6_0/tcl/win/Install_AMD64/include:$CMAKE_INCLUDE_PATH
>
> (subject to adjustment as to wherever the tcl.h file is located on
> your system), and
>
> export \
> CMAKE_INCLUDE_PATH=/c/DISK0001/Optimizer01/Worksp/SOURCE/Tcltk/Tcltk_8_6_0/tcl/win/Install_AMD64/lib:$CMAKE_LIBRARY_PATH
>
> In both cases you might have to do some file copies to work around the
> non-standard t suffix that seems to be in some of your Tcl-related
> file names. For example, you might have to create
> tcl86.lib as a copy of tcl86t.lib.
>
> I think I have come to the end of my limited Tcl/Windows expertise so
> I will let Arjen guide you further. Good luck in getting this
> all to work.
>
> Alan
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state
> implementation for stellar interiors (freeeos.sf.net); the Time
> Ephemerides project (timeephem.sf.net); PLplot scientific plotting
> software package (plplot.sf.net); the libLASi project
> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
> and the Linux Brochure Project (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________
DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.

------------------------------------------------------------------------------ 
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own 
process in accordance with the BPMN 2 standard Learn Process modeling best 
practices with Bonita BPM through live exercises 
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ 
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________ Plplot-general mailing list 
Plplot-general@lists.sourceforge.net<mailto:Plplot-general@lists.sourceforge.net>
 https://lists.sourceforge.net/lists/listinfo/plplot-general
DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.
DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.
DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.
 Volume in drive D is DATA
 Volume Serial Number is 14F1-F413

 Directory of d:\plplot-svn\tcl

01-May-15  09:32    <DIR>          .
01-May-15  09:32    <DIR>          ..
01-May-15  09:32                 0 aa
30-Apr-15  17:42    <DIR>          bin
01-May-15  09:30    <DIR>          data
01-May-15  09:23    <DIR>          drivers
01-May-15  09:27               246 readme.bak
01-May-15  09:28               285 readme.txt
01-May-15  09:31               175 startplplot.tcl
               4 File(s)            706 bytes

 Directory of d:\plplot-svn\tcl\bin

30-Apr-15  17:42    <DIR>          .
30-Apr-15  17:42    <DIR>          ..
30-Apr-15  17:35            78,336 csirocsa.dll
30-Apr-15  17:35            38,400 mem.dll
30-Apr-15  17:35            50,688 ntk.dll
30-Apr-15  17:35            36,352 null.dll
30-Apr-15  17:34             2,614 pkgIndex.tcl
30-Apr-15  17:35           713,728 plplot.dll
30-Apr-15  17:35               731 plplot.tcl
30-Apr-15  17:35           117,760 plplotcxx.dll
30-Apr-15  17:35           288,256 plplottcltk.dll
30-Apr-15  17:35            43,008 plplottcltk_Main.dll
30-Apr-15  17:35            76,800 ps.dll
30-Apr-15  17:35            69,632 qsastime.dll
30-Apr-15  17:35            55,296 svg.dll
30-Apr-15  17:35            54,784 tclmatrix.dll
30-Apr-15  17:35            54,784 wingcc.dll
30-Apr-15  17:35            45,568 xfig.dll
              16 File(s)      1,726,737 bytes

 Directory of d:\plplot-svn\tcl\data

01-May-15  09:30    <DIR>          .
01-May-15  09:30    <DIR>          ..
20-Feb-15  09:38               131 cmap0_alternate.pal
20-Feb-15  09:38               195 cmap0_black_on_white.pal
20-Feb-15  09:38               131 cmap0_default.pal
20-Feb-15  09:38               195 cmap0_white_bg.pal
20-Feb-15  09:38                51 cmap1_blue_red.pal
20-Feb-15  09:38               220 cmap1_blue_yellow.pal
20-Feb-15  09:38                80 cmap1_default.pal
20-Feb-15  09:38                69 cmap1_gray.pal
20-Feb-15  09:38                51 cmap1_highfreq.pal
20-Feb-15  09:38               105 cmap1_lowfreq.pal
20-Feb-15  09:38               426 cmap1_radar.pal
20-Feb-15  09:38             6,414 plstnd5.fnt
20-Feb-15  09:38            58,818 plxtnd5.fnt
              13 File(s)         66,886 bytes

 Directory of d:\plplot-svn\tcl\drivers

01-May-15  09:23    <DIR>          .
01-May-15  09:23    <DIR>          ..
30-Apr-15  17:34                47 mem.driver_info
30-Apr-15  17:34                32 ntk.driver_info
30-Apr-15  17:34                34 null.driver_info
30-Apr-15  17:34                86 ps.driver_info
30-Apr-15  17:34                53 svg.driver_info
30-Apr-15  17:34                38 wingcc.driver_info
30-Apr-15  17:34                30 xfig.driver_info
               7 File(s)            320 bytes

     Total Files Listed:
              40 File(s)      1,794,649 bytes
              11 Dir(s)  1,015,793,119,232 bytes free

Attachment: startplplot.tcl
Description: startplplot.tcl

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to