Re: [Plplot-devel] How to use the installed PLplot libraries

2006-11-27 Thread Arjen Markus
hiroyasu yasuda wrote:

 Hello Arjen:

 - Are you using the latest release (PLplot 5.7.1) or version 5.6.1?


 I was using PLplot 5.7.0. yesterday.


 - Are you using the ./configure script to build the libraries or  
 are you
  using the CMake build system?


 I followed 'INSTALL' document below:

 3) With g95: [Fortran 95 (GCC) 4.2.0 20060512 (experimental)]
 ./configure --disable-wxwidgets --enable-f95 FC=gfortran F77=gfortran
 make FFLAGS=-Wl,-single_module FCFLAGS=-Wl,-single_module
 make install
 make check



 When I tried 'make install' and 'make check' last week, their command
 returned some 'Error'. But I tried installation using 'sudo'  
 yesterday, did
 not return Error message.  Is my PLplot libraries on OSX OK?

Hm, that sound sas if you do not have sufficient permissions to install
files in the default directory.


 And please tell me how to compile fortran source with PLplot libraries ?

You could try the following:

- Copy, say, x01f.f90 to a separate directory
- Then compile it and link it like this:

  gfortran -o example x01f.f90 -I/directory/with/modules 
-L/directory/with/libraries -lplplotf95d -lplplotf95cd -lplplotd

  (Or:

  gfortran -o examples x01f.f90 `pkg-config --cflags --libs plplot-f95
 
 but I am not sure that already works properly)

Regards,

Arjen


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] How to use the installed PLplot libraries

2006-11-27 Thread Alan W. Irwin
On 2006-11-27 22:29+0900 hiroyasu yasuda wrote:

 Hello Arjen:

 - Are you using the latest release (PLplot 5.7.1) or version 5.6.1?

 I was using PLplot 5.7.0. yesterday.


 - Are you using the ./configure script to build the libraries or
 are you
  using the CMake build system?

 I followed 'INSTALL' document below:
 3) With g95: [Fortran 95 (GCC) 4.2.0 20060512 (experimental)]
 ./configure --disable-wxwidgets --enable-f95 FC=gfortran F77=gfortran
 make FFLAGS=-Wl,-single_module FCFLAGS=-Wl,-single_module
 make install
 make check

I suggest you use PLplot 5.7.1 and follow the CMake build system instructions
at http://www.miscdebris.net/plplot_wiki.  The instructions in INSTALL are
for our deprecated autotools (./configure) build system which is no longer
maintained.

 And please tell me how to compile fortran source with PLplot libraries ?

Make sure you have pkg-config installed on your computer before you run cmake
the first time.  Then after make and make
install look at $INSTALL_PREFIX/share/plplot5.7.1/examples/f77 (or f95).
The Makefiles in those two directories show exactly how to build fortran 77
or fortran 95 executables using the pkg-config approach.

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 Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] How to use the installed PLplot libraries

2006-11-27 Thread Hiroyasu Yasuda
|*|On 2006-11-28 05:18+0900 hiroyasu yasuda wrote:
|*|
|*| You could try the following:
|*|
|*| - Copy, say, x01f.f90 to a separate directory
|*| - Then compile it and link it like this:
|*|
|*|  gfortran -o example x01f.f90 -I/directory/with/modules -L/
|*| directory/with/libraries -lplplotf95d -lplplotf95cd -lplplotd
|*|
|*|
|*| I gave above-command Include directory and Libraries directory on my
|*| system, I could succeed compiling.
|*| Since I can not find 'plplot.mod'  in /usr/local/include/, I give
|*| unziped plplot directory as Include directory temporally.
|*| How to produce 'plplot.mod' ? Where should be modules file
|*| 'plplot.mod' ?
|*|
|*|This is all taken care of in the recommended pkg-config approach that is
|*|used with our new CMake build system. Again, look at what the installed
|*|examples/f95/Makefile file does (for our new CMake build system), and
|*|copy that.

I would like to ask you a few questions: 
 Does that mean re-installing PLplot using CMake? 
 If I will re-install using CMake, are all files overwrited 
safely ? 

Regards.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel