On 2006-11-06 23:23-0500 [EMAIL PROTECTED] wrote:

>
> On Nov 6, 2006, at 12:42 PM, Alan W. Irwin wrote:
>
>> On 2006-11-05 21:20-0800 Alan W. Irwin wrote:
>>
>>> Tomorrow, I will
>>> use the same "Apple" method to transform the data for the
>>> remaining *.pc
>>> files that we configure.  It shouldn't make much difference to the
>>> result of
>>> the current install-tree builds on Mac OS X, but it will make
>>> those builds
>>> substantially cleaner and allow framework libraries to be used in
>>> future for
>>> other libraries that PLplot depends on just like they currently
>>> are used for
>>> the Tcl and Tk libraries.
>>
>> Done.  Hazen, please check that all continues to be well for Mac OS X.
>
> Everything continues to work well for OS-X.
>
> I need some pointers to get the Tk driver to work on OS-X however. At
> present there are at least two problems:
>
> (1) plFindName and by extension, plFindCommand always fail on OS-X
> because it is not a OS of type __unix (src/plctrl.c), even though the
> command that is looking for, /usr/local/bin/plserver exists and OS-X
> is BSD unix (I think).

Have a look at include/plplot.h.  It has a whole series of defined's that
it checks.  If any of those are true it #define's  __unix.  I suspect you just
have to add the appropriate check for Mac OS X to that list.

Also, if you have any additional trouble after that, please post the results
of the -debug option.  Here are my results:

[EMAIL PROTECTED]> cd /tmp/examples/c
[EMAIL PROTECTED]> ./x01c -dev tk -debug
[EMAIL PROTECTED]> ./x01c -dev tk -debug
PLplot library version: 5.6.1
plLoadDriver: Device not loaded!
plLoadDriver: tag=tk, drvidx=9
plGetDrvDir: Trying to read env var PLPLOT_DRV_DIR
plGetDrvDir: Will use drivers dir: 
/home/software/plplot_cvs/installcmake/lib/plplot5.6.1/driversd
plLoadDriver: Trying to load tk on 
/home/software/plplot_cvs/installcmake/lib/plplot5.6.1/driversd/tk
tcl_cmd: Evaluating command: rename exec {}
tcl_cmd: Evaluating command: set client_name [winfo name .]
tcl_cmd: Evaluating command: global auto_path; puts "auto_path: $auto_path"
auto_path: /tmp/examples/c /home/software/tcl 
/home/software/plplot_cvs/installcmake/share/plplot5.6.1/tcl /usr/lib/tcl8.3 
/usr/lib ./lib /usr/lib/tk8.3
tcl_cmd: Evaluating command: plclient_init
init_server: /home/software/plplot_cvs/HEAD/plplot_cmake/drivers/tk.c -- PID: 
20282, PGID: 20282, PPID: 30359
argument list:
    plserver -child -e plserver_init -file /dev/null -name x01c -client_name tk 
(null) 
plFindName: Trying to find ./plserver
plFindName: ./plserver found but is not executable
plFindName: Trying to find /home/software/plplot_cvs/installcmake/bin/plserver
plFindName: /home/software/plplot_cvs/installcmake/bin/plserver may be the 
one...
plFindName: /home/software/plplot_cvs/installcmake/bin/plserver is a regular 
file
launch_server: Starting up /home/software/plplot_cvs/installcmake/bin/plserver
tcl_cmd: Evaluating command: set server $server_name
tcl_cmd: Evaluating command: rename open {}
tcl_cmd: Evaluating command: rename rename {}
server_cmd: Sending command: $plw_create_proc $plwindow [list $client]
server_cmd: Sending command: $plwidget cmd plsetopt -debug
server_cmd: Sending command: $plwidget cmd plsetopt -ncol0 16
server_cmd: Sending command: $plwidget cmd plsetopt -ncol1 128
server_cmd: Sending command: $plw_start_proc $plwindow
Attempting to allocate r/o colors in cmap0.
i=1, r=1, pixel=63488
i=2, r=1, pixel=65504
i=3, r=1, pixel=2016
i=4, r=1, pixel=32762
i=5, r=1, pixel=65048
i=6, r=1, pixel=63221
i=7, r=1, pixel=48631
i=8, r=1, pixel=41285
i=9, r=1, pixel=31
i=10, r=1, pixel=35163
i=11, r=1, pixel=2047
i=12, r=1, pixel=18201
i=13, r=1, pixel=63519
i=14, r=1, pixel=62478
i=15, r=1, pixel=65535
Allocated 16 colors in cmap0.
CreatePixmap: creating pixmap: width = 640, height = 446, depth = 16
plLibOpenPdfstr: Found file 
/home/software/plplot_cvs/installcmake/share/plplot5.6.1/plxtnd5.fnt
server_cmd: Sending command: $plwidget openlink fifo $fifoname
plLibOpenPdfstr: Found file 
/home/software/plplot_cvs/installcmake/share/plplot5.6.1/plxtnd5.fnt
LookupTkKeyEvent: KeyEH: stream: 0, Keyname Return, hex d, ASCII: 
tcl_cmd: Evaluating command: plclient_link_end

Hope the plplot.h suggestion helps you to completely solve the problem.

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to