Octave for Microsoft Windows: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
GNU Octave is primarily developed on GNU/Linux and other POSIX conformal systems. The ports of GNU Octave to Windows use different approaches to get most of the original Octave and adapt it to Microsoft Windows idiosyncrasies (eg: dynamic libraries, file paths, permissions, environment variables, GUI system, etc). Bear this in mind and don't panic if you get unexpected results. There are a lot of suggestions on the mailing lists for tuning your Octave installation.
GNU Octave is primarily developed on GNU/Linux and other POSIX conformal systems. The ports of GNU Octave to Windows use different approaches to get most of the original Octave and adapt it to Microsoft Windows idiosyncrasies (eg: dynamic libraries, file paths, permissions, environment variables, GUI system, etc). Bear this in mind and don't panic if you get unexpected results. There are a lot of suggestions on the mailing lists for tuning your Octave installation.


About version numbers (March 2011):
About version numbers (Feb 2012):
*The 3.4.x are current releases.
*The 3.6.x are current releases.
*The 3.2.x are previous releases.
*The 3.4.x are previous releases.
*The 3.2.x are very old releases.


=Standalone ports=
=Standalone ports=
Line 308: Line 309:


=Octave on Cygwin=
=Octave on Cygwin=
== Octave 3.4.2 on cygwin==
== Octave 3.6.1 on cygwin==


*'''Web-Site:''' http://cygwin.com  
*'''Web-Site:''' http://cygwin.com  
*'''Maintainer:''' Marco Atzeri  
*'''Maintainer:''' Marco Atzeri  
*'''Latest release:''' 2011-10-03
*'''Latest release:''' 2012-02-27


*octave 3.4.2-3
*octave 3.6.1-1
*octave-forge packages octave-forge-20110730-1
*octave-forge packages octave-forge-2012024-1
*Please select them in Math category in the cygwin setup (using setup.exe).
*Please select them in Math category in the cygwin setup (using setup.exe).
*:On Cygwin 1.7.9-1 the communication between octave and gnuplot is broken due to a cygwin bug. Please use a cygwin snapshot or 1.7.8-1 until cygwin-1.7.10-1 is released. Cygwin 1.7.8-1 is reported to currently work, but snapshots have notable performance improvements, so they are recommended. While the communication with gnuplot does not work, a different graphic toolkit may be available: at the Octave prompt, type <code>available_graphics_toolkit</code>, and then try setting a different toolkit, for instance <code>graphics_toolkit('fltk')</code> before testing with the <code>sombrero</code> command.
*:On Cygwin 1.7.9-1 the communication between octave and gnuplot is broken due to a cygwin bug. Please use a cygwin 1.7.11-1 or later.
 
Cygwin-1.7.10-1 is now available and gnuplot works; however the performance of fltk and gnuplot (in terms of smoothness of rotation, zooming and panning) is not as good as it was with fltk under cygwin-1.7.9-1.


===Notes===
===Notes===
*To install a cygwin snapshot:
*Not needed anymore, but just in case you want to try one. HOWTO install a cygwin snapshot:
**download <code>cygwin1-20111020.dll.bz2</code> (current last) from http://cygwin.com/snapshots/
**download <code>cygwin1-20120227.dll.bz2</code> (current last) from http://cygwin.com/snapshots/
     bunzip2 cygwin1-20111020.dll.bz2
     bunzip2 cygwin1-20120227.dll.bz2
     cp cygwin1-20111020.dll cygwin1.dll
     cp cygwin1-20120227.dll cygwin1.dll
     cp /bin/cygwin1.dll /bin/cygwin1.dll_backup
     cp /bin/cygwin1.dll /bin/cygwin1.dll_backup
   
   
Line 333: Line 332:
     (or in the equivalent directory of your cygwin installation).
     (or in the equivalent directory of your cygwin installation).
*Graphics is based on X, so to plot you need to start octave within xterm (or similar).
*Graphics is based on X, so to plot you need to start octave within xterm (or similar).
*A new fltk graphics_toolkit is available, and the crash on "print" issue was solved on 3.4.2-3 using the patch proposed here: https://savannah.gnu.org/bugs/index.php?31641
*A new fltk graphics_toolkit is available, and the crash on "print" issue was solved starting from on 3.4.2-3 using the patch proposed here: https://savannah.gnu.org/bugs/index.php?31641


*If a dlls collision arise, the correct invocation of the rebase utility within dash shell is:
*If a dlls collision arise, the correct invocation of the rebase utility within dash shell is:
Line 349: Line 348:


*To build from cygwin source package, you need to install "cygport" and the relevant development libraries
*To build from cygwin source package, you need to install "cygport" and the relevant development libraries
     $ tar -xvjf octave-3.4.2-3-src.tar.bz2  
     $ tar -xvjf octave-3.6.1-1-src.tar.bz2  
     gl2ps-print.patch  
     gl2ps-print.patch  
     octave-3.4.2-3.cygport  
     octave-3.6.1-1.cygport  
     octave-3.4.2-3.cygwin.patch  
     octave-3.6.1-1.cygwin.patch  
     octave-3.4.2-3.src.patch  
     octave-3.6.1-1.src.patch  
     octave-3.4.2.tar.bz2
     octave-3.6.1.tar.bz2


     $ cygport octave-3.4.2-3.cygport almostall
     $ cygport octave-3.6.1-1.cygport almostall


:see cygport documentation for further info.
:see cygport documentation for further info.


*currently octave depends on the following packages
**libgcc1-4.5.3-2
**libgfortran3-4.5.3-2
**libstdc++6-4.5.3-2
**liblapack0-3.2.2-2
**libreadline7-6.1.2-2
**libfftw3_3-3.3-1
**libqrupdate0-1.1.1-1
**libGL1-7.10.3-1
**zlib0-1.2.5-1
**libfontconfig1-2.8.0-1
**libhdf5_6-1.8.6-1


[[Category:Windows]]
[[Category:Windows]]
22

edits