3167
|
1 Octave has been ported to Windows NT and Windows 95 using the gnu-win32 |
|
2 tools from Cygnus Support. If you would like to volunteer to work on |
|
3 improving this port, please contact bug-octave@bevo.che.wisc.edu. |
3154
|
4 |
|
5 The directory ftp://ftp.che.wisc.edu/pub/octave/BINARIES/gnu-win32 |
|
6 contains a binary distribution of Octave for Windows NT/95 along with |
|
7 installation instructions. Unless you are interested in doing some |
|
8 hacking, you should use the binary releases. |
2587
|
9 |
|
10 Here is a list of current problems (and workarounds, where available). |
|
11 |
3154
|
12 * To compile and install Octave on a Windows NT/95 system, |
3167
|
13 you will need to get the beta 19 release of the gnu-win32 tools. |
3154
|
14 They are available from ftp://ftp.cygnus.com/pub/gnu-win32. |
2587
|
15 |
3154
|
16 * You will need to have f2c and libf2c.a or g77 installed. I would |
|
17 recommend using g77. Mumit Khan has directions for building g77 at |
|
18 http://www.xraylith.wisc.edu/~khan/software/gnu-win32/g77.html. |
|
19 Another solution is to use egcs, which includes g77. The egcs |
|
20 compiler is available from http://www.cygnus.com/egcs. |
2587
|
21 |
|
22 * You will also need a termcap library. The GNU termcap library seems |
|
23 to work. You can get it from any GNU archive site, including |
3154
|
24 ftp://ftp.gnu.org/pub/gnu/termcap-1.3.tar.gz. |
2587
|
25 |
3167
|
26 * It is possible to cross-compile Octave for Windows NT/95 systems. |
|
27 On the same hardware, it's generally much faster to use gcc as a |
|
28 cross compiler under Linux than as a native compiler under Windows. |
|
29 |
|
30 Here are some instructions for building a cross version of gcc and |
|
31 then using it to compile Octave. I've done this using a Linux |
|
32 system as the host, but it should work equally well on other systems |
|
33 that can run gcc). |
|
34 |
|
35 + install cdk on your Windows system |
|
36 |
|
37 + build a cross version of binutils: |
|
38 |
|
39 tar zxf binutils-2.9.tar.gz |
|
40 cd binutils-2.9 |
|
41 ./configure --target=i386-pc-cygwin32 --prefix=/usr/local/cross-gcc |
|
42 make |
|
43 make install |
|
44 |
|
45 (You can choose whatever value for prefix that you prefer, of |
|
46 course, just remember to also make the corresponding changes in the |
|
47 following steps as well.) |
|
48 |
|
49 + copy libraries and include files from cdk. You'll need the |
|
50 library files from the following directory trees: |
|
51 |
|
52 b19/H-i386-pc-cygwin32/lib |
|
53 b19/H-i386-pc-cygwin32/i386-cygwin32/lib |
|
54 |
|
55 Copy them to /usr/local/cross-gcc/i386-pc-cygwin32/lib. |
|
56 |
|
57 You'll also need the include files from the following directory |
|
58 trees: |
|
59 |
|
60 b19/include |
|
61 b19/H-i386-pc-cygwin32/include |
|
62 |
|
63 Copy them to /usr/local/cross-gcc/i386-pc-cygwin32/include. |
|
64 |
|
65 + build cross version of egcs: |
|
66 |
|
67 tar zxf egcs-1.0.2.tar.gz |
|
68 cd egcs-1.0.2 |
|
69 export PATH=/usr/local/cross-gcc/bin:$PATH |
|
70 ./configure --target=i386-pc-cygwin32 --prefix=/usr/local/cross-gcc |
|
71 make |
|
72 make install |
|
73 |
|
74 + cross-compile libtermcap: |
|
75 |
|
76 export PATH=/usr/local/cross-gcc/i386-pc-cygwin32/bin:$PATH |
|
77 tar zxf termcap-1.3.tar.gz |
|
78 cd termcap-1.3 |
|
79 ./configure --host=i386-pc-cygwin3 |
|
80 make |
|
81 cp termcap.h /usr/local/cross-gcc/i386-pc-cygwin32/include |
|
82 cp libtermcap.a /usr/local/cross-gcc/i386-pc-cygwin32/lib |
|
83 |
|
84 + cross-compile Octave using the compiler you just built: |
|
85 |
|
86 export PATH=/usr/local/cross-gcc/i386-pc-cygwin32/bin:$PATH |
|
87 tar zxf octave-2.0.12.tar.gz |
|
88 cd octave-2.0.10 |
|
89 ./configure --host=i386-pc-cygwin3 |
|
90 make |
|
91 |
|
92 + make a binary distribution to copy to your Windows system: |
|
93 |
|
94 make -f octMakefile binary-dist |
|
95 |
|
96 + copy the binary distribution to your Windows system and install |
|
97 using the intall-octave shell script |
|
98 |
3154
|
99 * Octave requires gnuplot for plotting, but the normal Windows version |
|
100 of gnuplot will not work because it only reads from the GUI and refuses |
|
101 to read input from stdin. Mumit Khan has written a patch that fixes |
|
102 the problem, but the gnuplot license does not allow us to distribute |
|
103 modified versions of gnuplot in binary form. The patch is available |
|
104 from http://www.xraylith.wisc.edu/~khan/software/gnu-win32. |
2587
|
105 |
3130
|
106 * If Octave takes a long time to find function files, you may have to |
|
107 modify your LOADPATH to avoid device names specified using the |
3154
|
108 `//DEV/subdir' syntax. To map the D: drive (for example) to |
3130
|
109 /D_DRIVE, do the following: |
2587
|
110 |
3130
|
111 cd / |
|
112 mkdir /D_DRIVE |
|
113 mount d: /D_DRIVE |
|
114 |
|
115 Then you can set your LOADPATH to include /D_DRIVE/subdir instead of |
|
116 //d/subdir. |
|
117 |
|
118 If you know of solutions for any of the problems mentioned above, |
|
119 please contact bug-octave@bevo.che.wisc.edu. |
2587
|
120 |
3154
|
121 More information about the gnu-win32 project is available via the WWW |
2587
|
122 at http://www.cygnus.com/gnu-win32. |
|
123 |
|
124 John W. Eaton |
|
125 jwe@bevo.che.wisc.edu |
|
126 University of Wisconsin-Madison |
|
127 Department of Chemical Engineering |
|
128 |
3167
|
129 Thu Apr 16 23:39:13 1998 |