Hi Arjen and Alan,
Looking into both your replies, I think I did not properly set up a lot of path
parameters for tcl LIB and INCLUDE. I am wondering what are the path
environment variables that I have to setup ? Any instruction/documentation for
reference ?
Regards
Chen
From: arjen.mar...@deltares.nl
To: ir...@beluga.phys.uvic.ca; shenyeh_c...@hotmail.com
CC: plplot-general@lists.sourceforge.net
Subject: RE: [Plplot-general] Compile for tcl binding
Date: Thu, 9 Apr 2015 06:36:42 +0000
Hi Shen-Yeh,
To clarify what Alan said, capturing the output from CMake is done via:
cmake …options… >&cmake.out
The last bit of the command captures the output to both “standard output” and
“standard error” and both may be important in diagnosing the
issue(s).
Note that the Tcl bindings for PLplot indeed become available as a loadable
DLL, so it should be possible to distribute it as any Tcl extension
(perhaps with a bit of extra work, as the installation procedure copies a
number of files in a directory that is not the same as the DLL’s.(*))
Regards,
Arjen
(*) I have been thinking about that bit – it makes distributing PLplot as a
Tcl package a bit more complicated than it might need to be. It is on my TODO
list.)
> -----Original Message-----
> From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca]
> Sent: Thursday, April 09, 2015 8:21 AM
> To: Shen-Yeh Chen
> Cc: plplot-general@lists.sourceforge.net
> Subject: Re: [Plplot-general] Compile for tcl binding
>
> On 2015-04-08 10:44-0700 Shen-Yeh Chen wrote:
>
> > Greetings,
> >
> > I am totally new to plplot (and cmake too). And I am struggling to get
> > it compiled into the Tcl core/shell. (I am using Windows 7. VS 2005
> > Win64. )
> >
> > I was able to build all the c and c++ under the /examples directory by
> > issuing the following cmake command
> >
> > 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
> >
> > I have also tried adding "-DENABLE_tcl=ON". However when I check the cmake
> cache, the "ENABLE_tcl" would always be set to OFF.
> >
> > What should I do to get plplot binding in Tcl ? And, is it possible to
> > compile plplot
> into DLL so that I can load it into Tcl like "load tk86t.dll tk" ?
> >
> > Any help will be greatly appreciated.
>
> Hi Shen-Yeh:
>
> PLplot-5.10.0 is quite old now and effectively unsupported because we are
> about
> (probably within the next 4 days) to release PLplot-5.11.0 based on the git
> master
> branch tip version. So please use that latest version for your further
> experiments
> with PLplot. Note for that version (for reasons given in README.release) we no
> longer honor the LIB_TAG variable so setting that as you do above will simply
> generate a warning about that value being ignored. Also, "almost"
> PLplot-5.11.0 has
> many fixes in it including dealing with a number of "blank-in-pathname"
> issues. So if
> a blank in one of your pathnames (say the location of your Tcl/Tk
> installation) is the
> source of your troubles with PLplot-5.10.0, then "almost"
> PLplot-5.11.0 might solve that.
>
> Normally, our build system (at least for the latest git version) uses
> commands in a
> tclsh environment and wish environment to figure out a consistent Tcl/Tk
> configuration. So adjust your PATH environment variable so that the tclsh
> and wish
> commands are accessible, but I presume you are doing that already. Also, if
> your
> Tcl/Tk installation is in a non-standard location, then you will probably
> need to set
> the CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH environment
> variables appropriately to help cmake find that installation.
>
> In any case, if something is still wrong with how cmake configures your nmake
> build,
> please capture the output from the cmake command that you use for the "almost"
> PLplot-5.11.0 version, and send the compressed version of that result as an
> attachment to your post to this list to help us diagnose what is wrong.
>
> 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
> __________________________
>
> ------------------------------------------------------------------------------
> 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=V
> A_SF
> _______________________________________________
> Plplot-general mailing list
> 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.
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/plplot-general