Hi,

I am using plplot (thanks for the great library) and I get it to  
install on OS X Tiger 10.4.11 intel, with fink (fink provides 5.8.0),  
and pdl recognized plplot.

I also could compile, with the dependencies given by fink.

Here is how it goes for me, without many options:

from your plplot source dir
$ cd ..
$ mkdir plbuild && cd plbuild
$ export FC = gfortran
$ cmake ../plplot-5.9.0 -DCMAKE_INSTALL_PREFIX=/opt -DENABLE_pdl=ON - 
DENABLE_f95=ON -DCMAKE_C_COMPILER=/sw/bin/gcc-4 -DCMAKE_CXX_COMPILER=/ 
sw/bin/g++-4 -DENABLE_java=OFF -DENABLE_octave=OFF -DENABLE_pygcw=OFF  
-DENABLE_gnome2=OFF -DPLD_wxwidgets=OFF -DPLD_aqt=OFF -DENABLE_tk=OFF  
-DENABLE_tcl=OFF
$ make
$ sudo make install

Sadly, the pkg-config file does not find the libraries under /sw/lib  
as it is not the prefix for plplot. You need to add -L/sw/lib to the  
Libs line of /opt/lib/pkgconfig/plplotd.pc and others as well I suppose.

More options :
If you need Aquaterm and freetype :

$ cmake ../plplot-5.9.0 -DCMAKE_INSTALL_PREFIX=/opt -DENABLE_pdl=ON - 
DENABLE_f95=ON -DCMAKE_C_COMPILER=/sw/bin/gcc-4 -DCMAKE_CXX_COMPILER=/ 
sw/bin/g++-4 -DENABLE_java=OFF -DENABLE_octave=OFF -DENABLE_pygcw=OFF  
-DENABLE_gnome2=OFF -DFREETYPE_INCLUDE_DIR=/sw/lib/freetype219/ 
include -DPL_FREETYPE_FONT_PATH=/usr/local/share/fonts/TTF - 
DENABLE_wxwidgets=OFF

I explicitly disabled many drivers to avoid possible trouble. I  
needed to point to fink compilers (gcc-4 and g++-4, and export FC =  
gfortran).
I needed to give the path to the freetype include dir, which was  
badly located on my system, but you need the "freetype" directory (of  
freetype 2!) to be included directly in "/sw/lib/freetype219/include"  
and not further.

Last but not least, if you want Aquaterm to work you need to modify  
two lines in the plplot-5.9.0/cmake/modules/aqt.cmake before issuing  
the previous commands
The result is
                 SET(aqt_COMPILE_FLAGS "-x objective-c -I/sw/include")
                 SET(aqt_LINK_FLAGS "-F/sw/Library/Frameworks - 
framework AquaTerm -framework Foundation")
instead of
                 SET(aqt_COMPILE_FLAGS "-ObjC")
                 SET(aqt_LINK_FLAGS "-framework AquaTerm -framework  
Foundation")

then it compiles :

$ make
$ sudo make install

If you recompile pdl, as /opt/lib is in the search path for plplot,  
it will use it for pdl (tested, see http://homepages.ulb.ac.be/ 
~pdebuyl/use_of_pdl_plplot.png , the upper window is aquaterm, the  
lower is x11)

I have trouble with the aqua tk driver however, which I did not  
intend to use...

Good luck

Le 17-avr.-08 à 22:55, Doug Hunt a écrit :

> Hi Craig:  I've been using PLplot successfully for quite a while  
> now. Originally, I switched to it because PGPLOT was such a bear to  
> install.
>
> Unfortunately, the newest PLplot has added many dependencies, so  
> its getting harder to install.  On the plus side, its getting many  
> new interesting features and it has an active development community  
> that is working well together.
>
> I've never installed it on a Mac, attached is my install receipe on  
> Linux.
>
> I'm also CCing some PLplot folks in case they have some easy  
> solutions for Mac.
>
> Regards,
>
>   Doug
>
> [EMAIL PROTECTED]
> Software Engineer III
> UCAR - COSMIC, Tel. (303) 497-2611
>
> On Thu, 17 Apr 2008, Craig DeForest wrote:
>
>> Hey, all,
>>
>> I've been wanting for some time to use PLPlot rather than PGPLOT, but
>> I'm currently 0 for 4 on attempts to install it properly.  To get the
>> latest version to compile on my Mac, I had to seriously tweak the  
>> make
>> files.  I got some basic functionality (e.g. throwing up an X window)
>> but never managed to advance to being able to generate plots.   Is
>> anyone here actively using PLPlot to make plots with PDL?  If so,
>> what's your system and how hard was it to install? I'm looking for
>> some tips here as I'd like to migrate, but have never been able to
>> make it work.
>>
>> I know Doug Hunt is a big fan, and Derek Lamb used it for a paper we
>> published together.  Who else is using it?
>>
>> Cheers,
>> Craig
>>
>>
>> _______________________________________________
>> Perldl mailing list
>> [EMAIL PROTECTED]
>> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl<plplot_recipe>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save  
> $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http:// 
> java.sun.com/javaone_______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to