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