Debian Codegraph @

INSTALL

raw
1 Installation procedure for Blitz++
2
3
4 1. Installation
5
6 1.1 From tarfile
7
8 Unpack blitz-VERSION.tar.gz in the directory of your choice. The file
9 blitz-VERSION.tar.gz file will unpack into a subdirectory blitz-VERSION.
10
11 Now cd into blitz-VERSION, and run the configure script. Blitz++ now
12 uses a standard configure script generated using GNU autoconf/automake.
13 For a typical system, simply running ./configure with no options is
14 sufficient. The configure script will explore your system to discover
15 the available compilers and appropriate options to use. To select a
16 different C++ compiler than the one discovered automatically, give the
17 option CXX=<compiler-name>. The standard configure option --prefix=<dir>
18 may be used to select the installation directory for Blitz++. Type
19 "./configure --help" to see a summary of all the available options.
20
21 Once you have run the configure script, do:
22 make lib
23
24 This is a minimal build of just the Blitz++ library. You can also do:
25
26 make check-testsuite Build and check the testsuite
27 make check-examples Build and check the examples
28 make check-benchmarks Build and check the benchmarks (long)
29 make install Install Blitz++
30 make info Build Blitz++ texinfo documentation
31 make ps Build Blitz++ ps documentation
32 make pdf Build Blitz++ pdf documentation
33 make html Build Blitz++ html documentation
34 make install-info Install Blitz++ texinfo documentation
35 make install-ps Install Blitz++ ps documentation
36 make install-pdf Install Blitz++ pdf documentation
37 make install-html Install Blitz++ html documentation
38
39 1.2 From cvs repository
40
41 After you have checked out the latest version of Blitz from the cvs
42 repository, you will need to create the configure script. Do:
43
44 autoreconf -fiv
45
46 This will run autoconf, aclocal and automake for you to generate the
47 configure and libtool scripts and all of the Makefile.in files. You
48 may need to update your system's installed versions of autoconf, automake
49 and libtool in order for the autoreconf process to work properly. Once
50 you have successfully generated a configure script, the installation
51 procedure for Blitz++ is identical as with a tarfile.
52
53 Note however that you might get into trouble when running the command
54 "make". If the command aborts with the following type of messages:
55
56 WARNING: `aclocal-1.6' is missing on your system. You should only need it if
57 you modified `acinclude.m4' or `configure.in'. You might want
58 to install the `Automake' and `Perl' packages. Grab them from
59 any GNU archive site.
60
61 WARNING: `automake-1.6' is missing on your system. You should only need it if
62 you modified `Makefile.am', `acinclude.m4' or `configure.in'.
63 You might want to install the `Automake' and `Perl' packages.
64 Grab them from any GNU archive site.
65
66 You should just need to update the date of the file "configure". You can do
67 that by running the following command:
68
69 touch configure
70
71 You can then proceed with make.
72
73
74 2. Setting up symbolic links
75
76 If you have root privileges, you can install some symbolic links
77 to the headers and library. Suppose you unpacked blitz in
78 /software/Blitz++; then do these commands:
79
80 # ln -s /software/Blitz++/blitz /usr/include/blitz
81 # ln -s /software/Blitz++/lib/libblitz.a
82
83 If you prefer, you can use "make install" to copy the header files,
84 library, examples and documentation into the installation directory.
85
86 3. Getting started
87
88 There are example programs in the "examples" directory.
89 The original Blitz++ documentation is found in the "manual" directory.
90 Point your browser at manual/index.html, or do "gv manual/blitz.ps".
91 However, this form of the documentation is no longer being actively
92 maintained. More up-to-date documentation is kept in the "doc" directory.
93
94 4. OTHER COMPILERS
95
96 If you want to try Blitz++ with a compiler that does not seem to work
97 with the configure autoconf script, I suggest the following approach:
98
99 1. Check the "supported platforms" list at:
100 http://oonumerics.org/blitz/platforms
101
102 and the development mailing list at:
103 http://oonumerics.org/blitz/contribute/blitz-dev/archive/index.html
104
105 to see what progress has been made on your compiler.
106
107 2. Go into the compiler subdirectory and run the bzconfig
108 script. This will exercise your compiler to see what
109 language features it supports. If it doesn't have
110 member templates and enum computations, just give up.
111
112 3. Install autoconf (from e.g., ftp://prep.ai.mit.edu/pub/gnu)
113 if you don't have it already.
114
115 4. Edit the m4/ac_cxx_flags_preset.m4 file to add an appropriate case
116 and options for your compiler. Then invoke autoconf to generate
117 the configure script. Then try configure with the CXX=<compiler>
118 option. Repeat until it works...
119
120 5. Try building the testsuite ('make check-testsuite').
121
122 6. Holy schmoly! It works! Please drop a note to
123 [email protected] and include:
124
125 - name and info about your compiler
126 - diffs for configure.in or ac_cxx_flags_preset.m4, if any
127 - the file <blitz/config.h>
128
129