On Jan 5, 2008, at 6:36 PM, Jerry wrote:

> I am taking another run at getting the OS X graphics display,
> AquaTerm, to work with the Ada bindings. AquaTerm is almost certainly
> the most popular output device for PLplot on the Mac.
>
> My previous attempt failed because of some problem related to the
> Objective C compiler. I suppose that the Objective C compiler is
> needed because the AquaTerm driver uses some Cocoa (written in
> Objective C) frameworks.
>
> I have a working version of AquaTerm installed on my computer.
>
> In my previous attempt, I thought that perhaps the PLplot build
> system was not seeing the compiler because my PATH variable has the
> path to the Ada compiler at the front, as directed by the Mac Ada
> folks, and might be blocking the other compilers. (I really don't
> know what I'm talking about here, mostly.) My PATH variable is:
> /opt/local/bin:/opt/local/sbin:/usr/local/ada-4.3/bin:/bin:/sbin:/usr/
> bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/Applications

I was able to compile PLplot with both Ada and Aquaterm. I have (or  
at least I believe I have) installed Ada from www.macada.org using  
the GnatPPC-4.3.dmg installer. I say I believe since I did this a  
while ago and while I seem to have ada on my computer and I also have  
this installer I've forgotten whether I actually used this installer  
to install ada. Anyway.

The approach is to use the ada gcc *only* for compiling the ada  
bindings. All my ada stuff is in /usr/local/ada-4.3, so I set:

CMAKE_Ada_compiler= /usr/local/ada-4.3/bin/gcc
GNAT_EXECUTABLE_BUILDER = /usr/local/ada-4.3/bin/gnatmake
GNAT_LIB = /usr/local/ada-4.3/lib/gcc/powerpc-apple-darwin8/4.3.0/ 
adalib/libgnat.dylib

(CMAKE_C_COMPILER is /usr/bin/gcc)

This will compile for me (OS-X 10.4, gcc 4.0.1), but the linking is  
messed up in that the paths to the necessary ada libraries are not  
correct:

examples/ada : otool -L x01a
x01a:
         libplplotadad.0.0.0.dylib (compatibility version 0.0.0,  
current version 0.0.0)
         /Users/hbabcock/Documents/OpenSource/PLplot/plplot-CBS-1/src/ 
libplplotd.9.dylib (compatibility version 0.0.0, current version 0.0.0)
         /usr/lib/libltdl.3.dylib (compatibility version 5.0.0,  
current version 5.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,  
current version 88.1.10)
         /Users/hbabcock/Documents/OpenSource/PLplot/plplot-CBS-1/lib/ 
csa/libcsirocsa.0.dylib (compatibility version 0.0.0, current version  
0.0.0)
         /Users/hbabcock/Documents/OpenSource/PLplot/plplot-CBS-1/lib/ 
nn/libcsironn.0.dylib (compatibility version 0.0.0, current version  
0.0.0)
         /usr/local/lib/libqhull.5.dylib (compatibility version  
6.0.0, current version 6.0.0)
         libgnat-4.3.dylib (compatibility version 0.0.0, current  
version 0.0.0)
         /usr/local/lib/libgcc_s.1.dylib (compatibility version  
1.0.0, current version 1.0.0)

Note that libplplotadad.0.0.0.dylib and libgnat-4.3.dylib do not have  
any path information in front of them, unlike all the other  
libraries. You can run the examples if you provide symlinks to these  
libraries in the examples folder and I checked that you can in fact  
use the aquaterm device with the ada examples.

Obviously it would better to have the correct path information with  
the libraries.

-Hazen


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to