|
From: Alan W. I. <ai...@us...> - 2003-12-24 18:28:57
|
On 2003-12-24 07:00-0500 Koen van der Drift wrote:
> Hi,
>
> Thanks to some recent messages on this list, I was able to compile
> plplot (5.2.1) on Mac OS X 10.3.2. However, according to the table
> that's shown after the configure step, it doesn't compile for other
> languages than C++. I know that python and tcltk are standard on OS X.
> I checked the docs, but couldn't find how to configure the compilation
> (besides using --enable-python). What's the trick for doing this?
>
First make sure you have the development packages (those which include
the headers) installed for python and tcl/tk/itcl/itk. Then
set environment variables before you execute ./configure to help that
script find the headers and libraries.
Python:
PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
export PYTHON_INC_DIR=/usr/include/python${PY_VERSION}/
The first command is just a trick to get the python version that is normally
part of the include directory name, but if you know your python version in
advance it won't be necessary. The export command is the important one.
Adjust that line (including the correct version number for your default
python) to wherever your python headers are located.
Tcl/Tk:
We have yet to find a decent autotools macro to help configure Tcl/Tk. The
ones that come with our versions of Tcl/Tk seem way out of date (probably
because autotools have been such a moving target over the last year or so).
Thus, a lot more environment variables are currently required to help
./configure find tcl/tk stuff. You may have to play a bit with the
following environment variables (see sysloc.in for how they are used) until
you get the right combination:
TCLINCDIR
TCLLIBDIR
TKINCDIR
TKLIBDIR
Once your configure output shows that both tcl and tk have been found you can
also control finding the include and library directories for itcl and itk
using
ITCLINCDIR
ITCLLIBDIR
ITKLIBDIR
(I have forgotten why we don't use ITKINCDIR, but apparently it is not
needed.) Also note you can do a lot in Tcl/Tk using PLplot without itcl and
itk so it is no disaster if those parts of the tcl/tk interface to PLplot
are turned off.
Let us know how it goes.
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 PLplot scientific plotting software
package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the
Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
|