From: Orion P. <or...@co...> - 2014-02-14 23:46:31
|
On 02/14/2014 12:45 AM, Alan W. Irwin wrote: > On 2014-02-13 18:11-0700 Orion Poplawski wrote: > >> On 02/13/2014 03:22 PM, Orion Poplawski wrote: >>> On 02/13/2014 02:53 PM, Orion Poplawski wrote: >>>> So, looks like 5.10.0 executes "wish" during cmake to determine version info. >>>> This fails on the Fedora builders because there is no DISPLAY. So, what >>>> to do? >>>> >>>> -- Looking for wish - found >>>> -- TK_WISH = /bin/wish >>>> Application initialization failed: no display name and no $DISPLAY >>>> environment >>>> variable >>>> Error in startup script: no display name and no $DISPLAY environment variable >>>> while executing >>>> "load /usr/lib64/libtk8.5.so Tk" >>>> ("package ifneeded Tk 8.5.15" script) >>>> invoked from within >>>> "package require Tk" >>>> invoked from within >>>> "puts -nonewline [package require Tk]" >>>> (file "/builddir/build/BUILD/plplot-5.10.0/fedora/CheckTK_VERSION.tcl" >>>> line 1) >>>> -- Looking for Tk version with wish - not found >>>> -- WARNING: setting ENABLE_tk to OFF >>>> -- WARNING: Because Tk is disabled must disable Itk as well >>>> >>>> >>> >>> Workaround seems to be: >>> >>> -DPLPLOT_TK_VERSION=8.5.15 >>> -DPLPLOT_ITCL_VERSION=3.4 >>> -DPLPLOT_ITK_VERSION=3.4 >>> >>> though still working on iWidgets but I have to go now. >>> >> >> iwidgets appears to need: >> >> -DIWIDGETS_VERSIONS_LIST:STRING="4.0.2;3.4;3.4" > > Yes. You are on the right track for hand-specifying all versions, and > I assume that works for your rather specialized case where you are > attempting to build PLplot on a computer with no valid display. > > If you do not specify the versions by hand, the cmake command follows > the normal CMake find rules (as affected by the set of environment > variables you give it) to find Tcl, Tk, Itcl, Itk, and Iwidgets, and > it is necessary/desirable to do sanity checks for version consistency. > Those sanity checks test whether wish and tclsh give the same "package > require" version results for Tcl and also there is a similar "package > require" check for a consistent Tk version. > > Of course, such simple "package require" command results should not > need a display so I am wondering if there is a way to obtain such > results under wish when there is no display? Could you check with > Fedora experts if that is possible? > > If so, then you would not have to specify versions by hand like you > do above. > > Alan So, as you confirmed later, that is indeed what I have to do. I've worked up some hacks to determine version in the Fedora spec file so hopefully I'm good to go. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane or...@nw... Boulder, CO 80301 http://www.nwra.com |