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

I added the check, so I think that we are now okay here.

> 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

iMac /usr/local/share/plplot5.6.1/examples/c : ./x01c -dev tk -debug
PLplot library version: 5.6.1
plLoadDriver: Device not loaded!
plLoadDriver: tag=tk, drvidx=8
plGetDrvDir: Trying to read env var PLPLOT_DRV_DIR
plGetDrvDir: Will use drivers dir: /usr/local/lib/plplot5.6.1/driversd
plLoadDriver: Trying to load tk on /usr/local/lib/plplot5.6.1/ 
driversd/tk
Bus error


It seems to get a little further if I run it like this:

iMac /usr/local/share/plplot5.6.1/examples/c : ./x01c -debug
PLplot library version: 5.6.1

Plotting Options:
< 1> xwin       X-Window (Xlib)
< 2> tk         Tcl/TK Window
< 3> plmeta     PLplot Native Meta-File
< 4> ps         PostScript File (monochrome)
< 5> psc        PostScript File (color)
< 6> xfig       Fig file
< 7> hp7470     HP 7470 Plotter File (HPGL Cartridge, Small Plotter)
< 8> hp7580     HP 7580 Plotter File (Large Plotter)
< 9> lj_hpgl    HP Laserjet III, HPGL emulation mode
<10> pbm        PDB (PPM) Driver
<11> png        PNG file
<12> jpeg       JPEG file
<13> null       Null device
<14> tkwin      New tk driver
<15> mem        User-supplied memory device
<16> gif        GIF file
<17> aqt        AquaTerm (Mac OS X)

Enter device number or keyword: 2
plLoadDriver: Device not loaded!
plLoadDriver: tag=tk, drvidx=8
plGetDrvDir: Trying to read env var PLPLOT_DRV_DIR
plGetDrvDir: Will use drivers dir: /usr/local/lib/plplot5.6.1/driversd
plLoadDriver: Trying to load tk on /usr/local/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: /usr/local/share/plplot5.6.1/examples/c /Users/hbabcock/ 
tcl /usr/local/share/plplot5.6.1/tcl /System/Library/Frameworks/ 
Tcl.framework/Versions/8.4/Resources/Scripts /System/Library/ 
Frameworks/Tcl.framework/Versions/8.4/Resources ./lib ~/Library/Tcl / 
Library/Tcl /Network/Library/Tcl /System/Library/Tcl ~/Library/ 
Frameworks /Library/Frameworks /Network/Library/Frameworks /System/ 
Library/Frameworks /System/Library/Tcl/tcllib1.6 /System/Library/Tcl/ 
tklib0.2 /System/Library/Frameworks/Tk.framework/Versions/8.4/ 
Resources/Scripts
tcl_cmd: Evaluating command: plclient_init
init_server: /Users/hbabcock/Documents/OpenSource/PLplot/plplot-cvs/ 
drivers/tk.c -- PID: 6421, PGID: 6421, PPID: 270
argument list:
    plserver -child -e plserver_init -file /dev/null -name x01c - 
client_name tk (null)
plFindName: Trying to find /usr/local/bin/plserver
plFindName: /usr/local/bin/plserver may be the one...
plFindName: /usr/local/bin/plserver is a regular file
launch_server: Starting up /usr/local/bin/plserver

It hangs here until I close the (blank) window it created, where upon  
it just exits.

-Hazen


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