From: Jerry <lan...@qw...> - 2008-01-05 23:36:18
|
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 at least partly responsible for getting the Mac Ada guys to make a version of the compilers available which has most of the compilers in it, not just Ada. Here is the result of typing gcc -v: -bash-2.05b$ gcc -v Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /Users/drew/Developer/Compiler/gcc-head/configure -- disable-checking --disable-nls --enable-static --prefix=/usr/local/ ada-4.3 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8 -- build=powerpc-apple-darwin8 --enable-languages=c,ada,c+ +,fortran,objc,obj-c++ Thread model: posix gcc version 4.3.0 20070904 (experimental) [trunk revision 128067] (GCC) The last part, --enable-languages, seems to indicate that there is an Objective C compiler available. So--when I try to build PLplot with the AquaTerm option enabled (- DPLD_aqt=ON), failure results. Cmake first reports this: -- Check for working C compiler: /usr/local/ada-4.3/bin/gcc -- works -- Check for working CXX compiler: /usr/local/ada-4.3/bin/c++ -- works -- Check for working Ada builder: /usr/local/ada-4.3/bin/gnatmake -- works (I believe that it also reports that the AquaTerm frameworks were found.) but the process later fails with this: [ 36%] Building C object drivers/CMakeFiles/aqt.dir/aqt.o /usr/local/ada-4.3/bin/gcc -Daqt_EXPORTS -fPIC -I/Users/jb/ Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/plplot/include -I/usr/local/plplot_build_dir -I/usr/local/plplot_build_dir/include -DHAVE_CONFIG_H -ObjC -o drivers/CMakeFiles/aqt.dir/aqt.o -c /Users/ jb/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/plplot/ drivers/aqt.c cc1: error: invalid option argument '-ObjC' make[2]: *** [drivers/CMakeFiles/aqt.dir/aqt.o] Error 1 make[1]: *** [drivers/CMakeFiles/aqt.dir/all] Error 2 make: *** [all] Error 2 Jerry |