Re: [Plplot-devel] [Perldl] PLPlot -- how to install?

2008-04-18 Thread Maurice LeBrun
On Friday, April 18, 2008 at 02:02:22 (-0700) Jerry writes:
 > As a Mac user since 1984 I sympathize with Craig's frustration with  
 > installing PLplot. Neither of the two normal installation methods is  
 > supported: a single drag-and-drop or a package installer. Reading the  
 > PLplot installation wiki is probably enough to drive away most Mac  
 > users who are considering using PLplot. The good news with OS X is we  
 > gain access to an enormous body of software; the bad news is that it  
 > is hard to install.
 > 
 > But here's more good news: PLplot is supported on MacPorts,  
 > www.macports.org. (It is also on Fink, http://www.finkproject.org/,  
 > but the version is a little out of date. People seem to prefer  
 > MacPorts over Fink anyway.) I haven't tried the MacPorts installation  
 > method but I think it should go well. If you don't like messing with  
 > the command line, get PortAuthority ($) or Porticus (free). I think  
 > you should try it and let us know how it goes. (The MacPorts  
 > maintainer is not one of the PLplot developers.)

As a plplot developer since 1990, I sympathize with your problems.  My
involvement started as a personal project to free myself of commercial
graphics packages on high performance computing platforms running some variant
of Unix.  The interest in it grew much faster than the few people supporting
it could commit to (basically myself and Geoffrey Furnish at the time).

Our initial calls for help supporting the package on multiple platforms in the
1994-1995 timeframe went essentially unanswered.

Fortunately, between the license adopted (LGPL) and the intervention of some
dedicated developers (Alan & Rafael), a true core team eventually emerged.
The core team has now expanded considerably.  It now belongs to everyone, and
is actively maintained.  That makes it a success in my book, compared to all
the open source projects that eventually wither and die.  So, cheers on our
success.

The rest is up to us all.

-- 
Maurice LeBrun

-
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


Re: [Plplot-devel] [Perldl] PLPlot -- how to install?

2008-04-18 Thread Jerry
As a Mac user since 1984 I sympathize with Craig's frustration with  
installing PLplot. Neither of the two normal installation methods is  
supported: a single drag-and-drop or a package installer. Reading the  
PLplot installation wiki is probably enough to drive away most Mac  
users who are considering using PLplot. The good news with OS X is we  
gain access to an enormous body of software; the bad news is that it  
is hard to install.

But here's more good news: PLplot is supported on MacPorts,  
www.macports.org. (It is also on Fink, http://www.finkproject.org/,  
but the version is a little out of date. People seem to prefer  
MacPorts over Fink anyway.) I haven't tried the MacPorts installation  
method but I think it should go well. If you don't like messing with  
the command line, get PortAuthority ($) or Porticus (free). I think  
you should try it and let us know how it goes. (The MacPorts  
maintainer is not one of the PLplot developers.)

Jerry


On Apr 17, 2008, at 1:55 PM, Doug Hunt wrote:
> 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
> -- 
> ---
> 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


Re: [Plplot-devel] [Perldl] PLPlot -- how to install?

2008-04-18 Thread Pierre de Buyl
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
> -- 
> ---
> 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 c