On 2015-02-27 14:21-0500 Jim Dishaw wrote:

> I have identified an issue while testing on a relatively clean
machine. If the user is using XQuartz (which is likely) and has some
of X11 installed via MacPorts (possible because xorg-libX11 might be a
dependency) then plplot won't configure correctly and the build fails.

> I have sorted through most of it, but there is an X11 dependency
(due to tkX) in the Python binding but the path to X11 is not in the
compile string. I'm not enough of an cmake guru to fix the problem,
but my guess is that a find_package(X11) might be needed if tkX is
enabled.  Is that the correct solution?

We have a big and complex build system so I highly recommend using the
find command to help figure out these situations if you are not
using that already.  For example, I used

find . -type f |grep -v .git |xargs grep -i tkx |less

to find all case-insensitive instances of tkx in our source tree, and
similarly for X11.  That immediately revealed that

find_package(X11)

is already invoked in cmake/modules/plplot.cmake so the issue you
reported above appears to be due to not propagating those find_package
results properly to the python build which, of course, would be a
showstopper if X11 is installed in a non-standard location (as in your
case).

Investigation of that propagation chain shows that when X11_FOUND
is true, then

list(APPEND TK_INCLUDE_PATH ${X11_INCLUDE_DIR})

is executed in cmake/modules/tcl-related.cmake so the propagation
issue boils down to not using TK_INCLUDE_PATH in
bindings/python/CMakeLists.txt.  I have now pushed a one-line fix for
that issue (commit 8e34637).  Please let me know if you are able to
get further (or perhaps even have complete success) with that fix.

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
__________________________

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to