File: INSTALL-Win32

package info (click to toggle)
libpgplot-perl 1%3A2.35-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,336 kB
  • sloc: perl: 3,880; ansic: 453; makefile: 5
file content (131 lines) | stat: -rw-r--r-- 4,541 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131

INSTALL INSTRUCTIONS FOR Win32 Systems
=======================================

Author:  "Sisyphus" - sisyphus1 at optusnet dot com dot au 

Last update to this file: Apr 10th 2006

Caveats
=======


Here's how to build the PGPLOT perl module on Win32 ... or at least
here's one way to do it. There are no doubt other approaches that 
will work.

These instructions relate to a native Win32 environment, NOT Cygwin.
PGPLOT-2.19 should build straight out of the box on Cygwin if the pgplot C
library can be found. I don't know what sort of graphics display Cygwin
users have for running the test suite - they may also need to specify
'/PNG'.


From here on, I shall refer to the pgplot C library as "pgplot" - 
and to the perl module as "PGPLOT".

=============
PRELIMINARIES
=============

First up you need a pgplot C library against which to build PGPLOT.
I've used Jose Fonseca's (MinGW-built) pgplot library available from
http://www.kalinabears.com.au/w32perl/pgplot-5.2.2-mingw32.tar.bz2.

It's an old port, but is adequate for building PGPLOT if you can't find
a more recent port - and don't want to (or can't) build pgplot yourself.
If you do want to build pgplot yourself using MinGW, then the diff at
the following location might be useful to you:

http://jrfonseca.home.dyndns.org/projects/gnu-win32/software/ported/patches/pgplot-5.2.2-mingw32.diff.gz

Anyway, Fonseca's port of pgplot has all the files needed to build 
PGPLOT for both MinGW-built perl and MSVC++-built perl:

pgplot/bin/cpgplot.dll
pgplot/bin/pgplot.dll
pgplot/bin/grfont.dat
pgplot/include/cpgplot.h
pgplot/lib/cpgplot.a
pgplot/lib/pgplot.a

The location of the 2 dll's (cpgplot.dll and pgplot.dll) needs to be added to the
system path.

We also need to set an environment variable so the system can find grfont.dat:

set PGPLOT_FONT=\full_path\to_grfont.dat\grfont.dat

On Win32 I don't have a decent graphics display, so I use PGPLOT's capability to write
images to a png file. For that it's also necessary to add the location of libpng.dll and
zlib.dll to the system path. (These can both be readily Googled if you don't have them.)

The pgplot library needs to be found by the PGPLOT build process. To make sure that
happens copy libcpgplot.a and libpgplot.a from Fonseca's library to X:\usr\lib. And copy
cpgplot.h from Fonseca's library to X:\usr\include. (You'll need to replace X with 
whatever letter it is that denotes the drive you're building PGPLOT in - ie if your
PGPLOT build directory is in the D drive, copy to D:\usr\lib and D:\usr\include 
respectively.)

Install dmake (available from http://search.cpan.org/dist/dmake/) if you don't 
already have it and add the location of dmake.exe to your path.

Install MinGW (available from http://www.mingw.org/download.shtml) if you don't
already have it and add the MinGW\bin folder to your path.

That should take care of the preliminaries.

================
MINGW-BUILT PERL
================

Having done the preliminaries:

Install ExtUtils::F77-1.15 or later (from CPAN source).

Then build PGPLOT by simply running (as per usual):

perl Makefile.PL
dmake 
dmake test (Here you'll be prompted to specify '/PNG' so that the tests can be written to
            png files and viewed at the conclusion of the test suite.)
dmake install


===========================================================
MSVC-BUILT PERL (including ActiveState and IndigoStar perl)
===========================================================

Having done the preliminaries:

Install Extutils::FakeConfig (according to the instructions in its readme).

Install Extutils::F77-1.15 or later (from CPAN source) by running:

perl -MConfig_m Makefile.PL
dmake 
dmake test
dmake install

Then build PGPLOT by running:

perl -MConfig_m Makefile.PL
dmake 
dmake test (Here you'll be prompted to specify '/PNG' so that the tests can be written to
            png files and viewed at the conclusion of the test suite.)
dmake install

For ActiveState builds 815 and later it should NOT be necessary to install 
ExtUtils::FakeConfig as these builds should work seamlessly with dmake and the MinGW 
compiler. If you have such a build of ActiveState perl and opt to NOT install 
ExtUtils::FakeConfig, then do NOT supply the '-MConfig_m' option whenever running
'perl Makefile.PL'. Other than that, the procedure is identical.

If that involves too much work there are ppm packages (which include the png and zlib
dll's) for PGPLOT available from http://www.kalinabears.com.au/w32perl/pgplot.html
(for both perl-5.6 and perl-5.8).