On 2012-08-21 22:56-0700 Jerry wrote:

>
> On Aug 21, 2012, at 4:45 AM, Andrew Ross wrote:
>
>> Jerry,
>>
>> We're getting there! I've now added X11_LIBRARIES to the tkwin driver link 
>> flags.
>>
>> Cheers
>>
>> Andrew
>
> 12221 builds Tk/Tcl without errors. Which gets to the place that I have 
> always been with these demos--they don't run. Here's the synopsis--I hope 
> it's not too confusing.
>
> As I understand it, my computer has three ways to run wish: an X11 version, a 
> native ("Aqua") version called plserver which appears to be a specialized 
> version of the factory-installed wish which is the third way.
>
>
> Following the instructions in README.tkdemos:

Hmm.  Those instructions may be dated, make Linux-based assumptions,
have unmentioned dependencies etc. You might also be using versions of
Tcl or Tk that are not consistent with the ones used to build PLplot
(which would almost be guaranteed to produce bad results).  So please
rebuild from scratch using the CMake option -DBUILD_TEST=ON (if that
isn't what you use at the moment) and then try the following tests

make test_tk_01
make test_tk_02
make test_tk_03
make test_tk_04

(These are all dependencies of the much larger test target
"test_interactive" which you might want to try some day when
you get all the interactive pieces such as the above tests
working properly.)

All of the above tests work fine for me on Linux. If any of the above
tests don't run on your platform, I am not sure I can help you further
since I am not a Tcl/Tk expert, but at least those with Tcl/Tk
expertise here will know exactly what was run (see
examples/CMakeLists.txt for the details and all the dependencies that
have to be satisfied) if you do find any problems with the above
tests.

Alan




the C

>
> Only xtk01 is built--xtk02 etc. are not built.
>
> Typing ./xtk01 -f tk01 results in the X11 server launching and a window 
> displaying for about 1/10 second before disappearing. The window seems to 
> have some buttons across the top with the words "One", ... , "Four", "Exit" 
> and additional text something like "TK Control of x01c from TK" but there is 
> no plot--the rest of the window is blank. The following text appears in the 
> terminal:
>
> X Error of failed request:  BadWindow (invalid Window parameter)
>  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
>  Resource id in failed request:  0xb8c0c90
>  Serial number of failed request:  30
>  Current serial number in output stream:  33
>
>
> Starting plserver at /usr/local/plplot/bin/plserver starts a native app 
> called plserver which displays a small blank window from which I can "Run 
> Widget Demo" OK. Typing source tkdemos.tcl causes a blank window to appear 
> for about 1/10 second. The following appears in the terminal:
>
> % source tkdemos.tcl
> % X Error of failed request:  BadWindow (invalid Window parameter)
>  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
>  Resource id in failed request:  0x10b47e90
>  Serial number of failed request:  30
>  Current serial number in output stream:  33
>
>
> Running
> /usr/local/plplot/bin/plserver -h
> causes Segmentation fault: 11.
>
>
> Running $ wish launches X11 and the X11 wish program. Following the 
> instructions in the readme,
>
> % package require Pltk
> dlsym(0x7fd3b14d5e00, Pltk_Init): symbol not founddlsym(0x7fd3b14d5e00, 
> Pltk_SafeInit): symbol not founddlsym(0x7fd3b14d5e00, Pltk_Unload): symbol 
> not founddlsym(0x7fd3b14d5e00, Pltk_SafeUnload): symbol not foundcouldn't 
> find procedure Pltk_Init
> % source tkdemos.tcl
> invalid command name "plstdwin"
>
> and then nothing interesting, no window drawn.
>
>
> If instead I run the factory-installed wish and follow the instructions, I 
> get:
>
> %lappend auto_path /usr/local/plplot/share/plplot5.9.9
>  ...whole lotta paths...
> % package require Pltk
> dlsym(0x7fd171822450, Pltk_Init): symbol not founddlsym(0x7fd171822450, 
> Pltk_SafeInit): symbol not founddlsym(0x7fd171822450, Pltk_Unload): symbol 
> not founddlsym(0x7fd171822450, Pltk_SafeUnload): symbol not foundcouldn't 
> find procedure Pltk_Init
> % source tkdemos.tcl
> invalid command name "plstdwin"
>
> and again and then nothing interesting, no window drawn.
>
>
>
> With respect to the tcl demos as described in README.tcldemos--
>
> $ ./x01
> ./x01: line 13: exec: pltcl: not found
>
> After adding /usr/local/plplot/bin/ to my PATH and repeating ./x01, the 
> Plotting Options text menu is repeated several times in the terminal window. 
> Choosing e.g. Cairo PDF Driver causes this output to appear many times:
>
> (process:89116): Pango-WARNING **: pango_layout_set_markup_with_accel: Value 
> of 'size' attribute on <span> tag on line 1 could not be parsed; should be an 
> integer, or a string such as 'small', not '-2147483648'
>
> and a valid PDF is created but which is an all-black page.
>
>
> Running e.g. $ ./x01c and selecting Tcl/TK Window causes a native program 
> plserver to run. It has drop-down menus File and Help. File has an About... 
> which opens a text window describing Plplot. The normal File menu has a 
> functioning Run Widgets Demo. The window is otherwise blank, with no plot. 
> There is a second program which runs at the same time called x01c and appears 
> to be a standard native wish with some default-looking menu commands (Source, 
> Run Widget Demo) but no window of its own. When I Quit either of these 
> programs using the available menu item, they both hang and have to be 
> force-quit.
>
> Running x01c and selecting New tk driver results in this:
>
> *** PLPLOT ERROR, IMMEDIATE EXIT ***
> No tk plframe widget to connect to
> Program aborted
>
> Jerry
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
>

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to