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
__________________________
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
__________________________

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to