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=VA_SF
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to