From: Marius Amado-A. <ama...@gm...> - 2008-04-28 11:39:18
|
Hello. I want to plot from Ada to AquaTerm (or to PS/PDF directly). Is there a five or less steps setup process for this? Already installed and running on my iBook G4 / Mac OS X 10.4 are: - GNAT GPL 2007 - AquaTerm application - AquaTerm "Developer Extras" with their "adapters" (but Ada missing) Downloaded: - plplot-5.9.0 Actually I'd be happy with just calling AquaTerm, but I understand that the only Ada binding is through PLplot (?) Thanks a lot. |
From: Alan W. I. <ir...@be...> - 2008-04-28 14:59:56
|
On 2008-04-28 12:39+0100 Marius Amado-Alves wrote: > Hello. > > I want to plot from Ada to AquaTerm (or to PS/PDF directly). If you want PS directly, then you might want to use the psc PLplot device driver (no extra external prerequisites, but the hinted Type 1 fonts that this device driver uses have rather limited glyph selection), psttfc device driver (liblasi, pango and cairo prerequisites using TrueType fonts with normally extensive glyphs available, but liblasi does not allow hinting to be done), or pscairo (pango and cairo prerequisites using TrueType fonts with hinting). If you want PDF directly, then use pdfcairo (same prerequisites and font selection as pscairo). > > Is there a five or less steps setup process for this? Follow the directions in http://www.miscdebris.net/plplot_wiki/ to build PLplot. For the initial configuration stage using the cmake command, and look carefully at the output for any warnings about missing dependencies that affect (a) the aquaterm device driver, (b) the psttf device driver, or (c) the cairo device driver. Install the needed development versions of those external libraries and interate using the cmake command (starting with an empty build directory each time) until all warnings about devices you care about are gone. Then proceed with the "make", (optional) "ctest", and "make install" steps. 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 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 __________________________ |
From: Marius Amado-A. <ama...@gm...> - 2008-04-28 16:03:23
|
Ok, trying this much more than five steps process. Installed cmake. Now the example commands don't work by the letter (e.g. file plplot_cmake does not exist). So the assumptions begin. Assumption 1. the cmake command plplot_dir/build_dir>sudo cmake -DCMAKE_INSTALL_PREFIX=/plplot -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_ada=ON .. This gives some errors and warnings, including "WARNING: gnat library not found. Disabling ada bindings" I got GNAT. How do I make it known to cmake? Thanks. |
From: Alan W. I. <ir...@be...> - 2008-04-28 17:44:20
|
On 2008-04-28 17:02+0100 Marius Amado-Alves wrote: > Ok, trying this much more than five steps process. > > Installed cmake. > > Now the example commands don't work by the letter (e.g. file > plplot_cmake does not exist). So the assumptions begin. > > Assumption 1. the cmake command > > plplot_dir/build_dir>sudo cmake -DCMAKE_INSTALL_PREFIX=/plplot > -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_ada=ON .. > > This gives some errors and warnings, including > > "WARNING: gnat library not found. Disabling ada bindings" > > I got GNAT. How do I make it known to cmake? On my Debian testing system the full pathname of the gnat library is /usr/lib64/libgnat.so. What is the exact full pathname of the gnat library on your platform? Use the CMAKE_LIBRARY_PATH environment variable (as documented in our Wiki) to inform cmake where the gnat library is located on your system (assuming it is not in a standard location that CMake already knows about). 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 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 __________________________ |
From: Marius Amado-A. <ama...@gm...> - 2008-04-29 11:40:37
|
Cmake reports: ... CMAKE_C_COMPILER CMAKE_C_FLAGS: /usr/bin/gcc CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS: /usr/bin/c++ ... Assumption 3. these things called FLAGS are not FLAGS but PATHS to the compilers used by cmake (My compilers are in /usr/local/ada-4.3/bin/) |
From: Marius Amado-A. <ama...@gm...> - 2008-04-29 11:44:30
|
No luck. Giving up on plplus now. Thanks. |
From: Marius Amado-A. <ama...@gm...> - 2008-04-29 13:55:51
|
> ... What is the exact full pathname of the gnat library on your platform? (Alan) Good question :-) I installed GNAT 4.3 from MacAda. It is working fine. The binaries (gcc, gnatmake, etc.) are all in "usr/local/ada-4.3/bin" Assumption 2. everything GNAT is under "/usr/local/ada-4.3/" Assumption 2a. the "gnat library" is there too Now there is only 837465 paths to try... |
From: Jerry <lan...@qw...> - 2008-04-29 21:33:20
|
On Apr 29, 2008, at 6:54 AM, Marius Amado-Alves wrote: >> ... What is the exact full pathname of the gnat library on your >> platform? (Alan) > > Good question :-) > > I installed GNAT 4.3 from MacAda. > > It is working fine. The binaries (gcc, gnatmake, etc.) are all in > "usr/local/ada-4.3/bin" > > Assumption 2. everything GNAT is under "/usr/local/ada-4.3/" > > Assumption 2a. the "gnat library" is there too > > Now there is only 837465 paths to try... > I'm sorry that you haven't been able to get PLplot installed. I have two further comments, one for you if you want to keep listening in on this thread if it continues, and one for the list: I'm no expert on installation issues but I've managed to write a bash script that gets the job done (with an exception-- see below) on Macs. I'd be glad to share it with you or post it to the list so that it can get a bit of vetting. In the script, the value that I use for CMAKE_LIBRARY_PATH is this: CMAKE_LIBRARY_PATH=/usr/local/ada-4.3/lib/gcc/powerpc-apple- darwin8/4.3.0/adalib:\ /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libblas.dylib:\ /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/liblapack.dylib export CMAKE_LIBRARY_PATH There's really no way to know this without asking around--this is kind of obscure stuff. The first path is to the GNAT library. The other two paths are to Apple's pre-installed numerical libraries, BLAS and LAPACK, which are necessary if you want to use the new vector-matrix capabilities of Ada 2005--otherwise, you can leave them off. FWIW, yesterday I tried to install PLplot from MacPorts and it failed with an obscure MacPorts-related error. I've joined the MacPorts list to see what's going on. I think you mentioned that the MacPorts installer never finished--FWIW, some of these installations can take hours. Finally (for the list), I have never succeeded in getting Ada to use Aquaterm to output PLplot stuff--the build always fails when I enable both Ada and Aquaterm. This is an issue that I have set aside to deal with other things. Some time back, Hazen Babcock suggested adding these lines to my bash installation file but I have not tried them: export CMAKE_Ada_compiler=/usr/local/ada-4.3/bin/gcc export GNAT_EXECUTABLE_BUILDER=/usr/local/ada-4.3/bin/gnatmake export GNAT_LIB=/usr/local/ada-4.3/lib/gcc/powerpc-apple- darwin8/4.3.0/adalib/libgnat.dylib export CMAKE_C_COMPILER=/usr/bin/gcc Jerry |