gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1568 Posts in 518 Topics by 754 Members - Latest Member: irekzawadzki December 03, 2021, 08:35:04 AM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  Building and Using Additional Software & Libraries  |  Building PGPLOT 5.2 Graphics Library on OS X
gfx
gfxgfx
 

Author Topic: Building PGPLOT 5.2 Graphics Library on OS X  (Read 6786 times)

forumadmin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 321
Building PGPLOT 5.2 Graphics Library on OS X
« on: May 27, 2010, 02:19:21 PM »
This post provides instructions on building PGPLOT with Absoft Pro Fortran 11.0 and later for 32 or 64 bit OS X.

The PGPLOT Graphics Subroutine Library is a Fortran- or C-callable, device-independent graphics package for making simple scientific graphs. It is intended for making graphical images of publication quality with minimum effort on the part of the user. For most applications, the program can be device-independent, and the output can be directed to the appropriate device at run time.

DOWNLOADING THE REQUIRED PACKAGES

Full documentation and the primary source package required to build PGPLOT can be obtained here http://www.astro.caltech.edu/~tjp/pgplot/

An additional package with Absoft specific additions can be obtained here http://www.absoft.com/electronicdelivery/library/absoft11_pgplot52_additions.tar.gz

The Absoft additions for PGPLOT on OS X consist of two configuration files, two source files and a sample drivers.list file:

         sys_macosx/absoft11_gcc32.conf
         sys_macosx/absoft11_gcc64.conf
         sys_macosx/gidriv.f
         sys_macosx/grgcom.f
         sys_macosx/absoft11_sample_drivers.list

CREATING THE PGPLOT SOURCE TREE

 Extract the primary PGPLOT source with the following command:

     tar -xzvf pgplot5.2.tar.gz

This will create a directory named pgplot in the current working directory. Next, extract the Absoft specific additions into this directory with the following commands:

     cd pgplot
     tar -xzvf ../absoft11_pgplot52_additions.tar.gz

MAKNG A TARGET BUILD DIRECTORY

The PGPLOT documentation strongly suggests that you do not build PGPLOT inside the pgplot source directory.  The remaining instructions below assume that a directory named pgplot_build has been created at the same level as the PGPLOT source directory.

SELECTING DEVICE DRIVERS

You may create your own drivers.list file as described in the file install-unix.txt or you may use the
sample provided with the Absoft additions.  The sample configuration file provides the following devices:

 Interactive device:

    /XWINDOW   (X window window@node:display.screen/xw)

 Non-interactive file formats:

    /GIF       (Graphics Interchange Format file, landscape orientation)
    /VGIF      (Graphics Interchange Format file, portrait orientation)
    /NULL      (Null device, no output)
    /PS        (PostScript file, landscape orientation)
    /VPS       (PostScript file, portrait orientation)
    /CPS       (Colour PostScript file, landscape orientation)
    /VCPS      (Colour PostScript file, portrait orientation)

To use the Absoft sample,  copy it from sys_macosx/absoft11_sample_drivers.list to the pgplot_build directory and then rename it to drivers.list.

GENERATING A  MAKEFILE AND BUILDING THE LIBRARY AND EXAMPLES

With the pgplot_build directory as the current working directory, enter this command to  generate makefiles for building 32 bit PGPLOT:

    ../pgplot/makemake ../pgplot macosx absoft11_gcc32

or this command to generate makefiles for building 64 bit PGPLOT:

    ../pgplot/makemake ../pgplot macosx absoft11_gcc64

After generating the makefile, simple enter 'make' to build the PGPLOT library and the example programs.  If you want to build the C interface to the PGPLOT library, enter 'make cpg' after the first make has completed.

FURTHER INFORMATION

Further information on building PGPLOT can be found in the file install-unix.txt in the PGPLOT source tree.
« Last Edit: November 15, 2019, 07:12:56 PM by forumadmin »

Absoft User Forum  |  Support  |  Building and Using Additional Software & Libraries  |  Building PGPLOT 5.2 Graphics Library on OS X
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!