annotate etc/README.MacOS @ 20614:10ec79b47808

use new string_value method to handle value extraction errors * __voronoi__.cc, chol.cc, colamd.cc, fftw.cc: Use new string_value method.
author John W. Eaton <jwe@octave.org>
date Thu, 08 Oct 2015 18:15:56 -0400
parents 446c46af4b42
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
1 1. Easy to install Binary Releases
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
2 ==================================
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
3
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
4 A MacOS bundle is available from sourceforge.
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
5
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
6 http://octave.sourceforge.net/index.html
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
7
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
8 There are also Octave packages available from both Fink and MacPorts. Each
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
9 of these package managers handle the details of compiling Octave from source.
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
10
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
11 http://www.finkproject.com
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
12 http://www.macports.org/
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
13
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
14
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
15 2. Building from Source
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
16 =======================
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
17
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
18 Stable releases, development snapshots as well as the current developers
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
19 sources are available. The sources for stable releases are available from
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
20 the links below.
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
21
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
22 ftp://ftp.gnu.org/pub/gnu/octave/
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
23 http://ftp.gnu.org/pub/gnu/octave/
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
24
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
25 Development snapshots, intended for testing, are available from the link
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
26 below.
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
27
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
28 ftp://alpha.gnu.org/gnu/octave
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
29
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
30 Links to the stable releases, snap shots, and instructions for obtaining
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 15512
diff changeset
31 the current development sources using mercurial can be found on Octave's
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
32 web-site below.
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
33
15497
c49d891eb263 Update broken or inconsistent project and wiki urls
Mike Miller <mtmiller@ieee.org>
parents: 12991
diff changeset
34 http://www.octave.org/download.html
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
35
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
36 Building on MacOS can vary significantly between versions. These
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
37 instructions document the procedure for MacOS 10.6.X.
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
38
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
39
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
40 2.1 Developer's Tools
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
41 ---------------------
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
42
12203
ebaae4fddf4b README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12201
diff changeset
43 Apple's Xcode Developer's Tools must be installed to build Octave on MacOS X.
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
44
12421
99477f7ad5f9 README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12419
diff changeset
45 A fortran compiler is also required to build Octave.
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
46
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
47 AT&T Research provides versions of gfortran which have been patched to work
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
48 with gcc tool set bundled with Xcode.
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
49
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
50 http://r.research.att.com/tools/
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
51
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
52 Alternatively, the Fink and MacPorts package managers provide more recent
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
53 versions of gcc which include gfortan. Those may be used to build the sources
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
54 as well. However, care must be taken.
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
55
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
56 * The same compiler must be used to build all all of Octave's sources. This
12421
99477f7ad5f9 README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12419
diff changeset
57 is necessary to avoid conflicts between the compiler libraries such as
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
58 libstdc++. For a successful build the first file in LDFLAGS must refer to
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
59 this library. For example, if building with gcc-4.5 obtained from MacPorts
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
60 LDFLAGS would begin as,
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
61
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
62 export LDFLAGS="/opt/local/lib/gcc45/libstdc++.6.dylib [...]"
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
63
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
64 * As of MacOS 10.6.6, the 64-bit BLAS routines that are part of Apple's vecLib
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
65 (framework accelerate) are not functioning correctly. As a work around, an
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 15512
diff changeset
66 alternative BLAS/LAPACK library, such as ATLAS, must be used. A bug report
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
67 has been filed with Apple.
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
68
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
69 http://bugreport.apple.com
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
70 Title: "64 bit ABI issue with libBLAS.dylib"
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
71 Problem ID: 7850167
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
72 Date: April 11, 2010 at 12:04 AM
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
73
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
74
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
75 2.2 Manual Package Management
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
76 -----------------------------
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
77
12203
ebaae4fddf4b README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12201
diff changeset
78 Instructions for building Octave are available on the web at the link below.
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
79
15497
c49d891eb263 Update broken or inconsistent project and wiki urls
Mike Miller <mtmiller@ieee.org>
parents: 12991
diff changeset
80 http://wiki.octave.org/Build_from_source
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
81
12421
99477f7ad5f9 README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12419
diff changeset
82 In addition, those wishing to build on MacOS X (10.6.x) should read section
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
83 2.1 above.
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
84
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
85 2.2.1 Critical Dependencies
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
86 ---------------------------
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
87
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
88 The minimal dependencies needed to build Octave's snap-shots are listed below.
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
89
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
90 * Xcode
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
91
12456
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
92 * Xcode-compatible gfortran: Available from http://r.reseach.att.com/tools
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
93
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
94 * gnu sed: Available from http://www.gnu.org/software/sed/
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
95
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
96 ./configure --prefix=/usr
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
97 make
12456
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
98 sudo make install
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
99
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
100 * gnu pcre: Available from ftp://ftp.gnu.org/
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
101 The following build instructions will produce a universal binary,
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
102 allowing both 32- and 64-bit code to link to pcre. Whenever replacing
12456
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
103 libraries which came with the OS, it is necessary to compile them as
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
104 universal binaries (even if you are only going to use one architecture)
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
105 to avoid disrupting unrelated code which might also link to the library.
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
106
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
107 export CFLAGS="-arch i686 -arch x86_64"
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
108 export LDFLAGS="-arch i686 -arch x86_64"
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
109 ./configure --prefix=/usr --disable-dependency-tracking
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
110 make
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
111 sudo make install
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
112
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
113 * flex: Available from http://flex.sourceforge.net/
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
114
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
115 ./configure --prefix=/usr
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
116 make
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
117 sudo make install
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
118
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
119 * blas/lapack
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
120
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
121 - The Apple/Intel-provided BLAS works out of the box in 32-bit as long as
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
122 the -ff2c flag is used. Alternatively, a wrapper for Apple's vecLib
12456
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
123 framework may be used, enabling 64-bit.
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
124
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
125 https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2011-January/022541.html
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
126
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
127 A fully functional Octave requires additional dependencies. Here is an example
12456
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
128 of how to compile one of them as a universal binary:
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
129
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
130 * fftw3: Available from http://www.fftw.org/download.html
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
131
12201
765b15fd3b3d README.MacOS: Additional modifications for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12200
diff changeset
132 export F77="/usr/bin/gfortran"
12419
a01af8355c46 README.MacOS: Fix FFTW CCFLAGS.
Ben Abbott <bpabbott@mac.com>
parents: 12411
diff changeset
133 export CFLAGS="-arch i686 -arch x86_64"
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
134 export FFLAGS="$CFLAGS"
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
135 export LDFLAGS="$CFLAGS"
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
136 ./configure --disable-dependency-tracking
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
137 make
12201
765b15fd3b3d README.MacOS: Additional modifications for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12200
diff changeset
138 sudo make install
765b15fd3b3d README.MacOS: Additional modifications for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12200
diff changeset
139 make clean
765b15fd3b3d README.MacOS: Additional modifications for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12200
diff changeset
140 ./configure --enable-float --disable-dependency-tracking
765b15fd3b3d README.MacOS: Additional modifications for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12200
diff changeset
141 make
765b15fd3b3d README.MacOS: Additional modifications for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12200
diff changeset
142 sudo make install
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
143
12456
1a41b8ecefbc README.MacOS: Updated Readme.MacOS section 2.2.1 with results of test compilation on vanilla machine.
Ben Abbott <bpabbott@mac.com>
parents: 12421
diff changeset
144 See the link below for additional details about optional dependencies.
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
145
15497
c49d891eb263 Update broken or inconsistent project and wiki urls
Mike Miller <mtmiller@ieee.org>
parents: 12991
diff changeset
146 http://wiki.octave.org/Build_from_source
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
147
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
148 TODO - Modify the configure script to test for 64 bit vecLib bug. When the bug
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
149 is present, apply the wrapper solution.
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
150
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
151
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
152 2.2.2 Building Octave as a 32-bit Application
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
153 --------------------------------------------
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
154
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
155 The commands below are sufficient to build a 32-bit Octave.
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
156
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
157 export FC="/usr/bin/gfortran"
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
158 export CFLAGS="-m32"
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
159 export FFLAGS="$CFLAGS -ff2c"
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
160 export CPPFLAGS="$CFLAGS -D_REENTRANT -D__LISTS__"
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
161 export LDFLAGS="$CFLAGS"
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
162 ./configure --disable-readline --disable-docs
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
163 make
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
164
12421
99477f7ad5f9 README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12419
diff changeset
165 Octave provides an integrated tests suite.
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
166
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
167 make check
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
168
12421
99477f7ad5f9 README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12419
diff changeset
169 Octave may be run without installing the application using the utility below.
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
170
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
171 ./run-octave
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
172
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
173 2.2.3 Building Octave as a 64-bit Application
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
174 --------------------------------------------
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
175
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
176 The commands below are sufficient to build a 64-bit Octave.
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
177
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
178 export FC="/usr/bin/gfortran"
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
179 export CFLAGS="-arch x86_64"
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
180 export FFLAGS="$CFLAGS"
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
181 export CPPFLAGS="$CFLAGS -D_REENTRANT -D__LISTS__"
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
182 export LDFLAGS="$CFLAGS"
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
183 ./configure --disable-readline --disable-docs
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
184 make
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
185
12421
99477f7ad5f9 README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12419
diff changeset
186 Octave provides an integrated tests suite.
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
187
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
188 make check
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
189
12421
99477f7ad5f9 README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12419
diff changeset
190 Octave may be run without installing the application using the utility below.
12200
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
191
c2d2f880dca2 README.MacOS: Modify instructions for building Octave manually.
Ben Abbott <bpabbott@mac.com>
parents: 12186
diff changeset
192 ./run-octave
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
193
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
194
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
195 2.3 Building With Dependencies Satisfied by Fink
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
196 ------------------------------------------------
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
197
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
198 To install and setup the Fink package manager see the on line documentation.
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
199
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
200 http://www.finkproject.org/
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
201
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
202 Currently, Fink does not have a package available for Octave versions above
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
203 3.0.x. These instructions will allow the developers sources to be build and
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
204 run, but will not permit Octave to be installed in the usual Fink way.
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
205
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 15512
diff changeset
206 TODO - When a Fink package is developed for Octave 3.4.x, modify these
12421
99477f7ad5f9 README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12419
diff changeset
207 instructions to model the MacPorts section.
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
208
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
209
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
210 2.3.1 Dependencies
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
211 ------------------
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
212
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
213 To build Octave's sources the list of Fink packages below need to be installed.
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
214
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
215 aquaterm
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
216 arpack
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
217 autoconf (>= 2.6.0)
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
218 automake (>= 1.11)
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
219 fftw3 (>= 3.1.1)
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
220 fftw3-shlibs (>= 3.1.1)
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
221 flex >= 2.5.30
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 15512
diff changeset
222 fltk-aqua-shlibs
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
223 glpk-dev
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
224 glpk-shlibs
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
225 gnuplot (>= 4.2.6)
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
226 graphicsmagick (<= 1.3.7)
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
227 graphicsmagick-shlibs (<= 1.3.7)
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
228 hdf5 (>= 1.6.5)
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
229 hdf5-shlibs (>= 1.6.5)
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
230 libcurl4
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
231 libcurl4-shlibs
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
232 libncurses5
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
233 libncurses5-shlibs
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 15512
diff changeset
234 libtool >= 2.2.2
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
235 ncurses
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
236 pcre
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
237 pcre-shlibs
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
238 qhull
12493
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
239 qrupdate [1]
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
240 readline5
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 15512
diff changeset
241 readline5-shlibs
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
242 sed
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
243 suitesparse (= 3.1.0-1 )
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
244
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
245 Some of Octave's dependencies are among the default packages for Fink. These
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
246 include the list below, and possibly others as well.
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
247
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
248 tetex
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
249 texinfo
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
250
12493
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
251 For fully functional printing (graphics output), the following packages must
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
252 be installed.
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
253
12493
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
254 epstool
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
255 ghostscript
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
256 pstoedit
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
257 transfig [2]
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
258
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
259 [1] Fink does not yet have a package for qrupdate. However, one is available
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
260 in the tracker at the link below.
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
261
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
262 http://sourceforge.net/tracker/index.php?func=detail&aid=2861045&group_id=17203&atid=414256
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
263
c5a2ad173d4d README.MacOS: Add Fink packages needed to support print output.
Ben Abbott <bpabbott@mac.com>
parents: 12461
diff changeset
264 [2] Optionally the "xfig" package may be installed.
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
265
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
266
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
267 2.3.2 Building With Dependencies Satisfied by Fink
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
268 --------------------------------------------------
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
269
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
270 After installing each of the dependencies, the sources are compiled by
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
271 setting the proper environment variables and then following the standard build
12702
013cd94d8d7f doc: Spelling fixes for various documentation files
John Bradshaw <john@johnbradshaw.org>
parents: 12493
diff changeset
272 sequence. The following is an example set of variables for a 32-bit build
15414
494f9bac8862 build: Rename autogen.sh script to bootstrap to conform to GNU guidelines.
Rik <rik@octave.org>
parents: 12991
diff changeset
273 using gcc-4.2. When building from the sources obtained from the Mercurial
494f9bac8862 build: Rename autogen.sh script to bootstrap to conform to GNU guidelines.
Rik <rik@octave.org>
parents: 12991
diff changeset
274 archive, ./bootstrap must be run prior to ./configure.
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
275
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
276 export FINK_PREFIX="/sw"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
277 export PREFIX="/usr/local/bin"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
278
11443
cbe3963daefd Update README.MacOS CFLAGS recommendation to -O2.
Rik <octave@nomad.inbox5.com>
parents: 11410
diff changeset
279 export OPTFLAGS="-O2 -g"
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
280 export LDFLAGS="-L$FINK_PREFIX/lib -L/usr/lib -m32"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
281 export CFLAGS="-I$FINK_PREFIX/include $OPTFLAGS -m32"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
282 export CXXFLAGS=$CFLAGS
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
283 export CPPFLAGS="$CXXFLAGS -D__LISTS__"
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
284 export ACLOCAL_FLAGS="-I$FINK_PREFIX/share/aclocal"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
285 export PKG_CONFIG_PATH="$FINK_PREFIX/lib/pkgconfig"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
286 export PATH="$FINK_PREFIX/var/lib/fink/path-prefix-10.6/:$PATH"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
287 export MACOSX_DEPLOYMENT_TARGET=10.5
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
288 export PATH="$FINK_PREFIX/lib/flex/bin:$PATH"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
289 export CPPFLAGS="-I$FINK_PREFIX/lib/flex/include $CPPFLAGS"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
290 export LDFLAGS="-L$FINK_PREFIX/lib/flex/lib $LDFLAGS"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
291 export CC="gcc-4.2"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
292 export CPP="cpp-4.2"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
293 export CXX="g++-4.2"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
294 export F77="/usr/bin/gfortran-4.2"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
295 export FLIBS="-lgfortran -lgfortranbegin"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
296 export FFLAGS="-ff2c $OPTFLAGS -m32"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
297 export CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/freetype2 \
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
298 -I$FINK_PREFIX/include/qhull \
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
299 -I/usr/include"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
300 export CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE -D_REENTRANT"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
301
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
302 ./configure --prefix=$PREFIX \
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
303 --libexecdir='${prefix}/lib' \
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
304 --with-blas="-Wl,-framework -Wl,vecLib"
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
305 make
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
306
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
307 Note: This approach to building Octave does not support "make install".
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
308
12411
88a8248f5b97 README.MacOS: Add detail.
Ben Abbott <bpabbott@mac.com>
parents: 12218
diff changeset
309 TODO - Develop a Fink package for Octave 3.4.x.
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
310
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
311
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
312 2.4 Building With Dependencies Satisfied by MacPorts
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
313 ----------------------------------------------------
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
314
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
315 To install and setup the MacPorts package manager see the online documentation
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
316
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
317 http://guide.macports.org/
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
318
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
319 Using MacPorts, two approaches are described. The first describes how to build
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
320 and locally install Octave from a formal snapshot of the developer's sources or
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
321 from the developer's sources themselves. This is intended to the casual Octave
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
322 developer, or for users who want to live on the bleeding edge.
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
323
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
324 The second describes an approach for building Octave which is intended for
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
325 active developers. In this case, MacPorts is used to satisfy Octave's
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
326 dependencies, but MacPorts does not build Octave. Further a direct install of
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
327 Octave is not possible (i.e., cannot "make install").
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
328
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
329
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
330 2.4.1 Building and Installing Octave
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
331 ------------------------------------
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
332
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
333 With MacPorts building the developer's sources is convenient. MacPorts
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
334 includes a port file for octave-devel. To build and run the most recent
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
335 development snapshots, enter the commands below.
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
336
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
337 sudo port selfupdate
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
338 sudo port install octave-devel
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
339
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
340 To build the developers sources in one's own way, or if MacPorts' version is
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
341 outdated, a custom port file can be added. This requires setting up a local
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
342 port file repository (link below).
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
343
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
344 http://guide.macports.org/#development.local-repositories
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
345
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
346 The octave-devel port file may be used as an initial starting point. The port
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
347 file is accessible from the web at the link below.
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
348
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
349 http://trac.macports.org/browser/trunk/dports/math/octave-devel/Portfile
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
350
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
351 It is also available locally at the location below. The parameter ${prefix} is
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
352 corresponds to where MacPorts is install, which by default is "/opt/local".
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
353
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
354 ${prefix}/var/macports/sources/rsync.macports.org/release/ports/math/octave-devel/Portfile
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
355
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
356 If the Portfile is missing the dependencies, epstools, epstoedit, and transfig,
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
357 those should be installed manually or added to the Portfile. To install
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
358 manually, type the command below.
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
359
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
360 sudo port install epstools epstoedit transfig
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
361
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
362 The local source tarball must be placed in the location below, where ${name}
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
363 and ${distname} are each specified in the port file.
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
364
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
365 ${prefix}/var/macports/distfiles/${name}/${disname}.tar.gz
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
366
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
367
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
368 2.4.2 Building for Active Development of Octave
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
369 -----------------------------------------------
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
370
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
371 To satisfy most of Octave's dependencies, first install the octave-devel port.
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
372
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
373 sudo port selfupdate
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
374 sudo port install octave-devel
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
375
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
376 Now uninstall the Octave port.
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
377
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
378 sudo port deactivate octave-devel
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
379
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
380 This will remove Octave and leave its dependencies in place. Some additional
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
381 dependencies may be needed.
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
382
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
383 sudo port install epstools epstoedit transfig
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
384
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
385 Octave may now be built from a local mercurial archive by typing the commands
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
386 below (these assume gcc-4.4 is installed by macports).
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
387
15414
494f9bac8862 build: Rename autogen.sh script to bootstrap to conform to GNU guidelines.
Rik <rik@octave.org>
parents: 12991
diff changeset
388 ./bootstrap
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
389 export PREFIX=/opt/local
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
390 export CC=/opt/local/bin/gcc-mp-4.4
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
391 export CXX=/opt/local/bin/g++-mp-4.4
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
392 export CXXCPP="/opt/local/bin/g++-mp-4.4 -E"
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
393 export F77=/opt/local/bin/gfortran-mp-4.4
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
394 export FC=/opt/local/bin/gfortran-mp-4.4
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
395 export CXXFLAGS="-pipe -O2 -m64"
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
396 export FFLAGS="$CXXFLAGS -D_THREAD_SAFE -pthread"
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
397 export CFLAGS="$FFLAGS -lstdc++"
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
398 export LDFLAGS=-L$PREFIX/lib
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
399 export CPPFLAGS=-I$PREFIX/include
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
400 export BLAS_LIBS="-lcblas -lf77blas -latlas"
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
401 export LAPACK_LIBS=-llapack
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
402 ./configure --prefix="/opt/local" --without-framework-carbon --with-x
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
403 make
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
404
12421
99477f7ad5f9 README.MacOS: Spelling corrections.
Ben Abbott <bpabbott@mac.com>
parents: 12419
diff changeset
405 Octave's integrated tests may be run.
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
406
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
407 make check
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
408
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 15512
diff changeset
409 "make install" should not be run as it will bypass the macports package
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
410 management. To run Octave, type the command below from the root of the
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
411 mercurial archive.
12172
2ba904181687 README.MacOS: Modify organization, and update for MacPorts.
Ben Abbott <bpabbott@mac.com>
parents: 11582
diff changeset
412
12991
64378396e7a6 README.MacOS: Update and add detail for building the developers sources using
Ben Abbott <bpabbott@mac.com>
parents: 12733
diff changeset
413 ./run-octave
11386
fba7b5538b18 README.MacOS: New file with build instructions for Mac OS systems.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
414
fba7b5538b18 README.MacOS: New file with build instructions for Mac OS systems.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
415
11410
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
416 John W. Eaton
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
417 jwe@octave.org
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
418
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
419 Ben Abbott
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
420 bpabbott@mac.com
2df163be223e Update build instructions in README.MacOS
Ben Abbott <bpabbott@mac.com>
parents: 11386
diff changeset
421
12461
cc14943e6254 README.MacOS: Format to keep lines less than 80 characters.
Rik <octave@nomad.inbox5.com>
parents: 12456
diff changeset
422 Last updated: Sat Feb 19 14:15:04 PST 2011