Octave for Microsoft Windows: Difference between revisions

Jump to navigation Jump to search
Make it easier for a user to identify the three recommended ways of obtaining an up to date Octave release.
m (Added link to MinGW creation.)
(Make it easier for a user to identify the three recommended ways of obtaining an up to date Octave release.)
Line 1: Line 1:
:''For unofficial builds of the current 3.8.x release, see [http://mxeoctave.osuv.de here]''.
GNU Octave is primarily developed on GNU/Linux and other [https://en.wikipedia.org/wiki/POSIX POSIX] conform systems. The ports of GNU Octave to Microsoft Windows use different approaches to get most of the original Octave and adapt it to Microsoft Windows idiosyncrasies (e.g. 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 standalone ports for Windows are independently compiled using either the [http://mingw.org MinGW] or Microsoft Visual Studio development environments.


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.
= Installers for Microsoft Windows =


About version numbers:
#MXE Builds (unofficial, but recommended):
*The 3.8.x are current releases.
#* [http://mxeoctave.osuv.de GNU Octave 3.8.2]
#[https://cygwin.com Cygwin] package (requires Cygwin to be installed first):
#* [https://cygwin.com/packages/x86/octave GNU Octave 3.8.2 Cygwin package]
#[http://mingw.org MinGW] + Visual studio (official):
#* [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/ GNU Octave 3.6.4 and Octave Forge Packages]
 
<br>
<span style="color:#555; background-color:#e3f7fc; margin:10px; padding:10px; margin:10px; border-radius:10px; border:1px solid #8ed9f6;">'''NOTICE:''' GNU Octave 3.8.2 is the current stable release. Detailed instructions for individual releases can be found below.</span>
<br>
<br>
About older version numbers:
*The 3.6.x are previous releases.
*The 3.6.x are previous releases.
*The 3.4.x are very old releases.
*The 3.4.x are very old releases.
*The 3.2.x are very, very old releases.
*The 3.2.x are very, very old releases.
<br>


GNU Octave standalone ports for Windows are independently compiled using either the MinGW or Microsoft Visual Studio development environments. The latest versions can be downloaded from the Octave Forge Project at SourceForge.net and are often, but not always, up to date with the latest version of the GNU Octave source code.
__TOC__
 
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/ Octave Forge - GNU Octave Program and Packages Download page]


Detailed instructions for individual releases can be found below.
=Detailed instructions=


=Octave 3.8 MXE Builds=
==MXE Builds==


Untouched [http://hg.octave.org/mxe-octave/ MXE] builds for the current 3.8.x release can be found  
Untouched [http://hg.octave.org/mxe-octave/ MXE] builds for the current 3.8.x release can be found  
Line 31: Line 40:
The plot command also doesn't work well in case of Windows 8 system.
The plot command also doesn't work well in case of Windows 8 system.


=Building from source=
See [[Windows_Installer]] for building instructions.
Instructions are available from the Octave-Forge repository, see [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/]
 


=MinGW ports=
==MinGW ports==


For build instructions see [[Octave_for_MinGW]].
For build instructions see [[Octave_for_MinGW]] or the Octave-Forge repository [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/].


==Octave-3.6.4-mingw + octaveforge pkgs==
===Octave-3.6.4-mingw + octaveforge pkgs===


===Files for manual installation===
====Files for manual installation====


#Octave-3.6.4-mingw binaries tree
#Octave-3.6.4-mingw binaries tree
Line 152: Line 161:
#*'''Latest update:''' 2013-03-31
#*'''Latest update:''' 2013-03-31


===Manual installation instructions===
====Manual installation instructions====
#Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.6.4_gcc4.6.2\). This directory is referred hereafter as <your_install_dir>.
#Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.6.4_gcc4.6.2\). This directory is referred hereafter as <your_install_dir>.
#Extract the complete directories tree from Octave3.6.4_gcc4.6.2_20130329.7z to the installation directory  keeping the original directory structure as in the archive (you can use 7-zip tool from http://www.7-zip.org/).  Note that the archive contains Octave3.6.4_gcc4.6.2 folder, so you want to extract to the *parent* of <your_install_dir>.
#Extract the complete directories tree from Octave3.6.4_gcc4.6.2_20130329.7z to the installation directory  keeping the original directory structure as in the archive (you can use 7-zip tool from http://www.7-zip.org/).  Note that the archive contains Octave3.6.4_gcc4.6.2 folder, so you want to extract to the *parent* of <your_install_dir>.
Line 178: Line 187:
#:*# libblas.dll.altas-3.8.4_corei5 - ATLAS based libblass, tuned for older core i5 cpu (compiled by Tatsuro Matsuka)
#:*# libblas.dll.altas-3.8.4_corei5 - ATLAS based libblass, tuned for older core i5 cpu (compiled by Tatsuro Matsuka)


===Manual installation instructions for the Octave-forge packages===
====Manual installation instructions for the Octave-forge packages====
#Extract the complete directories tree from Octave3.6.4_gcc4.6.2_pkgs_20130331.7z to the installation directory (<your_install_dir>) keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/).
#Extract the complete directories tree from Octave3.6.4_gcc4.6.2_pkgs_20130331.7z to the installation directory (<your_install_dir>) keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/).
#In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following five rebuild commands from the octave console:
#In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following five rebuild commands from the octave console:
Line 199: Line 208:
  pkg uninstall <pkg_name>
  pkg uninstall <pkg_name>


===Optional installation of Notepad++ as an editor (recommended)===
====Optional installation of Notepad++ as an editor (recommended)====
#Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system.
#Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system.
#Edit <your_install_dir>\share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor:
#Edit <your_install_dir>\share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor:
Line 209: Line 218:
: Note: You may adjust the above line for the location of notepad++.exe as installed on your system.
: Note: You may adjust the above line for the location of notepad++.exe as installed on your system.


===Troubleshooting===
====Troubleshooting====
Upon launching, some warnings may be displayed. These warnings can be ignored.
Upon launching, some warnings may be displayed. These warnings can be ignored.
*Following warnings are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge.  
*Following warnings are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge.  
Line 217: Line 226:
  warning: function C:\Octave\3.6.4_gcc-4.6.2\share\octave\packages\statistics-1.2.0\fstat.m shadows a core library function
  warning: function C:\Octave\3.6.4_gcc-4.6.2\share\octave\packages\statistics-1.2.0\fstat.m shadows a core library function


==Octave-3.6.2-mingw + octaveforge pkgs==
===Octave-3.6.2-mingw + octaveforge pkgs===


===Files for manual installation===
====Files for manual installation====


#Octave-3.6.2-mingw binaries tree
#Octave-3.6.2-mingw binaries tree
Line 227: Line 236:
#: It can be downloaded from [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.2%20for%20Windows%20MinGW%20installer/ Octave Forge]
#: It can be downloaded from [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.2%20for%20Windows%20MinGW%20installer/ Octave Forge]


==Octave-3.6.1-mingw + octaveforge pkgs==
===Octave-3.6.1-mingw + octaveforge pkgs===


===Files for manual installation===
====Files for manual installation====


#Octave-3.6.1-mingw binaries tree
#Octave-3.6.1-mingw binaries tree
Line 337: Line 346:
#*'''Latest update:''' 2012-03-03
#*'''Latest update:''' 2012-03-03


===Manual installation instructions===
====Manual installation instructions====
#Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.6.1_gcc4.6.2\). This directory is referred hereafter as <your_install_dir>.
#Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.6.1_gcc4.6.2\). This directory is referred hereafter as <your_install_dir>.
#Extract the complete directories tree from Octave3.6.1_gcc4.6.2_20120303.7z to the installation directory  keeping the original directory structure as in the archive (you can use 7-zip tool from http://www.7-zip.org/).  Note that the archive contains Octave3.6.1_gcc4.6.2 folder, so you want to extract to the *parent* of <your_install_dir>.
#Extract the complete directories tree from Octave3.6.1_gcc4.6.2_20120303.7z to the installation directory  keeping the original directory structure as in the archive (you can use 7-zip tool from http://www.7-zip.org/).  Note that the archive contains Octave3.6.1_gcc4.6.2 folder, so you want to extract to the *parent* of <your_install_dir>.
Line 363: Line 372:
#:*# libblas.dll.altas-3.8.4_corei5 - ATLAS based libblass, tuned for older core i5 cpu (compiled by Tatsuro Matsuka)
#:*# libblas.dll.altas-3.8.4_corei5 - ATLAS based libblass, tuned for older core i5 cpu (compiled by Tatsuro Matsuka)


===Manual installation instructions for the Octave-forge packages===
====Manual installation instructions for the Octave-forge packages====
#Extract the complete directories tree from Octave3.6.1_gcc4.6.2_pkgs_20120303.7z to the installation directory (<your_install_dir>) keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/).
#Extract the complete directories tree from Octave3.6.1_gcc4.6.2_pkgs_20120303.7z to the installation directory (<your_install_dir>) keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/).
#In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following 3 rebuild commands from the octave console:
#In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following 3 rebuild commands from the octave console:
Line 383: Line 392:
: d. To completely uninstall a package
: d. To completely uninstall a package
  pkg uninstall <pkg_name>
  pkg uninstall <pkg_name>
===Optional installation of Notepad++ as an editor (recommended)===
====Optional installation of Notepad++ as an editor (recommended)====
#Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system.
#Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system.
#Edit <your_install_dir>\share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor:
#Edit <your_install_dir>\share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor:
Line 391: Line 400:
: Note: You may adjust the above line for the location of notepad++.exe as installed on your system.
: Note: You may adjust the above line for the location of notepad++.exe as installed on your system.


===Troubleshooting===
====Troubleshooting====
Upon launching, some warnings may be displayed. These warnings can be ignored.
Upon launching, some warnings may be displayed. These warnings can be ignored.
*Following warnings are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge.  
*Following warnings are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge.  
Line 399: Line 408:
  warning: function C:\Octave\3.6.1_gcc-4.6.2\share\octave\packages\statistics-1.1.0\fstat.m shadows a core library function
  warning: function C:\Octave\3.6.1_gcc-4.6.2\share\octave\packages\statistics-1.1.0\fstat.m shadows a core library function


==Octave-3.6.0-mingw + octaveforge pkgs==
===Octave-3.6.0-mingw + octaveforge pkgs===


===Files for manual installation===
====Files for manual installation====


#Octave-3.6.0-mingw binaries tree
#Octave-3.6.0-mingw binaries tree
Line 506: Line 515:
#*'''Latest update:''' 2012-01-28
#*'''Latest update:''' 2012-01-28


===Manual installation instructions===
====Manual installation instructions====
#Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.6.0_gcc4.6.2\). This directory is referred hereafter as <your_install_dir>.
#Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.6.0_gcc4.6.2\). This directory is referred hereafter as <your_install_dir>.
#Extract the complete directories tree from Octave3.6.0_gcc4.6.2_20120129.7z to the installation directory  keeping the original directory structure as in the archive (you can use 7-zip tool from http://www.7-zip.org/).
#Extract the complete directories tree from Octave3.6.0_gcc4.6.2_20120129.7z to the installation directory  keeping the original directory structure as in the archive (you can use 7-zip tool from http://www.7-zip.org/).
Line 514: Line 523:
#: a. Launch and use octave by double-clicking the copied octave3.6.0_gcc4.6.2.lnk
#: a. Launch and use octave by double-clicking the copied octave3.6.0_gcc4.6.2.lnk
#: b. Access and browse the documentation files by double-clicking the copied octave3.6.0_gcc4.6.2_docs.lnk
#: b. Access and browse the documentation files by double-clicking the copied octave3.6.0_gcc4.6.2_docs.lnk
===Manual installation instructions for the Octave-forge packages===
====Manual installation instructions for the Octave-forge packages====
#Extract the complete directories tree from Octave3.6.0_gcc4.6.2_pkgs_20120128.7z to the installation directory (<your_install_dir>) keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/).
#Extract the complete directories tree from Octave3.6.0_gcc4.6.2_pkgs_20120128.7z to the installation directory (<your_install_dir>) keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/).
#In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following 3 rebuild commands from the octave console:
#In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following 3 rebuild commands from the octave console:
Line 532: Line 541:
: d. To completely uninstall a package
: d. To completely uninstall a package
  pkg uninstall <pkg_name>
  pkg uninstall <pkg_name>
===Optional installation of Notepad++ as an editor (recommended)===
====Optional installation of Notepad++ as an editor (recommended)====
#Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system.
#Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system.
#Edit <your_install_dir>\share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor:
#Edit <your_install_dir>\share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor:
Line 540: Line 549:
: Note: You may adjust the above line for the location of notepad++.exe as installed on your system.
: Note: You may adjust the above line for the location of notepad++.exe as installed on your system.


===Troubleshooting===
====Troubleshooting====
Upon launching, some warnings may be displayed. These warnings can be ignored.
Upon launching, some warnings may be displayed. These warnings can be ignored.
*Following warnings are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge.  
*Following warnings are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge.  
Line 548: Line 557:
  warning: function C:\Octave\3.6.0_gcc-4.6.2\share\octave\packages\statistics-1.1.0\fstat.m shadows a core library function
  warning: function C:\Octave\3.6.0_gcc-4.6.2\share\octave\packages\statistics-1.1.0\fstat.m shadows a core library function


==Octave-3.4.3-mingw + octaveforge pkgs==
===Octave-3.4.3-mingw + octaveforge pkgs===


#Octave-3.4.3-mingw (without pkgs)
#Octave-3.4.3-mingw (without pkgs)
Line 561: Line 570:
*Octave Binaries are built using Tatsuro Matsuka OctaveLibs.zip and gplibs.zip (http://www.tatsuromatsuoka.com/octave/Eng/Win/)
*Octave Binaries are built using Tatsuro Matsuka OctaveLibs.zip and gplibs.zip (http://www.tatsuromatsuoka.com/octave/Eng/Win/)


===Troubleshooting===
====Troubleshooting====
Upon launching, some warnings may be displayed. The following warnings can be ignored:
Upon launching, some warnings may be displayed. The following warnings can be ignored:
*Following warning is about interpretation of logical operators (on scalars) in octave which is slightly different than matlab's interpretation.  
*Following warning is about interpretation of logical operators (on scalars) in octave which is slightly different than matlab's interpretation.  
Line 575: Line 584:
  warning: function C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library function
  warning: function C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library function


==Octave-3.4.2-mingw + octaveforge pkgs==
===Octave-3.4.2-mingw + octaveforge pkgs===
#Octave-3.4.2-mingw (without pkgs)
#Octave-3.4.2-mingw (without pkgs)
#:Octave3.4.2_gcc4.5.2_20110914.7z - MD5:4AA0DD4C97F73B2E9E0F7370CD8AD719 - http://www.multiupload.com/TCUHKNNH9S  
#:Octave3.4.2_gcc4.5.2_20110914.7z - MD5:4AA0DD4C97F73B2E9E0F7370CD8AD719 - http://www.multiupload.com/TCUHKNNH9S  
Line 586: Line 595:
*Octave manual (<code>octave-3.4.2.pdf.zip, octave-3.4.2.html.zip</code>) can be downloaded from http://www.tatsuromatsuoka.com/octave/Eng/Win/
*Octave manual (<code>octave-3.4.2.pdf.zip, octave-3.4.2.html.zip</code>) can be downloaded from http://www.tatsuromatsuoka.com/octave/Eng/Win/


===Installation===
====Installation====


The installation instructions are the same as for the 3.4.3 version, above.
The installation instructions are the same as for the 3.4.3 version, above.


===Notes===
====Notes====
For details, please see http://old.nabble.com/Octave-3.4.2-mingw-%2B-octaveforge-pkgs-to32394771.html
For details, please see http://old.nabble.com/Octave-3.4.2-mingw-%2B-octaveforge-pkgs-to32394771.html


Line 604: Line 613:




==Octave 3.2.4 for Windows MinGW32==
===Octave 3.2.4 for Windows MinGW32===


*'''Download:''' [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.2.4%20for%20Windows%20MinGW32%20Installer/Octave-3.2.4_i686-pc-mingw32_gcc-4.4.0_setup.exe/download Octave-3.2.4_i686-pc-mingw32_gcc-4.4.0_setup.exe]
*'''Download:''' [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.2.4%20for%20Windows%20MinGW32%20Installer/Octave-3.2.4_i686-pc-mingw32_gcc-4.4.0_setup.exe/download Octave-3.2.4_i686-pc-mingw32_gcc-4.4.0_setup.exe]
Line 610: Line 619:
*'''Latest release:''' 2010-03-25
*'''Latest release:''' 2010-03-25


===Includes===
====Includes====


*GNU Octave, version 3.2.4 (i686-pc-mingw32)
*GNU Octave, version 3.2.4 (i686-pc-mingw32)
Line 684: Line 693:
**zenity-0.5.7
**zenity-0.5.7


===Notes===
====Notes====
*Although there are some remaining known issues, some bugs reported to the octave-3.2.3 have been corrected. In addition, useful octave-forge packages are added (Java, Jhandles, ....). Please see [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.2.4%20for%20Windows%20MinGW32%20Installer/RELEASE_NOTES-3.2.4.txt/download RELEASE_NOTES.txt] for details:   
*Although there are some remaining known issues, some bugs reported to the octave-3.2.3 have been corrected. In addition, useful octave-forge packages are added (Java, Jhandles, ....). Please see [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.2.4%20for%20Windows%20MinGW32%20Installer/RELEASE_NOTES-3.2.4.txt/download RELEASE_NOTES.txt] for details:   
*Default Octave install folder changed to e.g. <code>C:\Octave\3.2.4_gcc-4.4.0\</code>.  
*Default Octave install folder changed to e.g. <code>C:\Octave\3.2.4_gcc-4.4.0\</code>.  
Line 700: Line 709:
*From gnuplot-4.4.0, the default terminal of gnuplot for windows is the wxt terminal. Some users may set the GNUTERM environmental variable for the windows terminal being default. The gnuplot for windows allows to set GNUTERM to 'win' (abbreviated form) but octave does not recognize the abbreviated form for terminal name. If one would like set GNUTERM to windows terminal, one should specify it as 'windows' (full form) but not 'win' (abbreviated form). In detail see the following thread: http://old.nabble.com/flicking-problem-again-Octave-3.2.4-mingw32-td28038688.html
*From gnuplot-4.4.0, the default terminal of gnuplot for windows is the wxt terminal. Some users may set the GNUTERM environmental variable for the windows terminal being default. The gnuplot for windows allows to set GNUTERM to 'win' (abbreviated form) but octave does not recognize the abbreviated form for terminal name. If one would like set GNUTERM to windows terminal, one should specify it as 'windows' (full form) but not 'win' (abbreviated form). In detail see the following thread: http://old.nabble.com/flicking-problem-again-Octave-3.2.4-mingw32-td28038688.html


=Octave on Cygwin=
==Octave on Cygwin==
== Octave 3.8.2 on cygwin==
=== Octave 3.8.2 on cygwin===


*'''Web-Site:''' http://cygwin.com  
*'''Web-Site:''' http://cygwin.com  
Line 727: Line 736:
:  Otherwise the only graphics will be ASCII art ;-)
:  Otherwise the only graphics will be ASCII art ;-)


===Notes===
====Notes====


*When building from development source (default branch)  
*When building from development source (default branch)  
Line 744: Line 753:
:see cygport documentation for further info.
:see cygport documentation for further info.


=Octave with Visual Studio=
==Octave with Visual Studio==


Octave binaries compiled with Microsoft Visual Studio are available for download from [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.4%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge site]. These binaries come in the form of an easy-to-use installer (created with [http://nsis.sourceforge.net/ NSIS]) and are provided in 2 flavors: pre-compiled version for Visual Studio 2008 and for Visual Studio 2010.
Octave binaries compiled with Microsoft Visual Studio are available for download from [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.4%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge site]. These binaries come in the form of an easy-to-use installer (created with [http://nsis.sourceforge.net/ NSIS]) and are provided in 2 flavors: pre-compiled version for Visual Studio 2008 and for Visual Studio 2010.
Line 753: Line 762:
Note that if you already installed other software on your system, there is a possibility that these runtime libraries are already present. Search for a files named msvcr90.dll (Visual Studio 2008) or msvcr100.dll (Visual Studio 2010) in the %WINDIR% directory (usually C:\WINDOWS).
Note that if you already installed other software on your system, there is a possibility that these runtime libraries are already present. Search for a files named msvcr90.dll (Visual Studio 2008) or msvcr100.dll (Visual Studio 2010) in the %WINDIR% directory (usually C:\WINDOWS).


==Installation==
===Installation===


The pre-compiled versions for Visual Studio come in the form of a self-installing executable. Simply download the executable, run it and follow the installer instructions. To avoid possible problems with white spaces in the octave paths, it is '''strongly recommended''' to install octave in a directory that do not contain any white spaces.
The pre-compiled versions for Visual Studio come in the form of a self-installing executable. Simply download the executable, run it and follow the installer instructions. To avoid possible problems with white spaces in the octave paths, it is '''strongly recommended''' to install octave in a directory that do not contain any white spaces.
Line 759: Line 768:
Octave-Forge packages are not installed by default. To install packages, expand the section "Octave Forge" in the component selection page of the installer and select the packages you wish to install. Note that installed packages are not loaded by default. To use the packages, you still need to load them into octave.
Octave-Forge packages are not installed by default. To install packages, expand the section "Octave Forge" in the component selection page of the installer and select the packages you wish to install. Note that installed packages are not loaded by default. To use the packages, you still need to load them into octave.


==Printing (installing Ghostscript)==
===Printing (installing Ghostscript)===


In order to use the {{Codeline|print}} command ghostscript must be installed.
In order to use the {{Codeline|print}} command ghostscript must be installed.
Line 824: Line 833:
or Octave's {{Codeline|<nowiki>~/.octaverc</nowiki>}} file.
or Octave's {{Codeline|<nowiki>~/.octaverc</nowiki>}} file.


==Using the Visual C++ compiler with Octave==
===Using the Visual C++ compiler with Octave===


As of version 3.6.1, the Microsoft Visual C++ compiler is not automatically detected. If you need to use it from octave (for instance to compile a MEX, OCT file, and building packages), then you must configure your system by updating the appropriate environment variables: '''%PATH%''', '''%INCLUDE%''' and '''%LIB%'''. One way to achieve this easily is to call the vcvarsall.bat script (from the Visual C++ installation directory) prior executing octave. You can for instance automate this by creating a batch script with the following content (adapt paths to your actual installation):
As of version 3.6.1, the Microsoft Visual C++ compiler is not automatically detected. If you need to use it from octave (for instance to compile a MEX, OCT file, and building packages), then you must configure your system by updating the appropriate environment variables: '''%PATH%''', '''%INCLUDE%''' and '''%LIB%'''. One way to achieve this easily is to call the vcvarsall.bat script (from the Visual C++ installation directory) prior executing octave. You can for instance automate this by creating a batch script with the following content (adapt paths to your actual installation):
Line 831: Line 840:
  "C:\Octave-3.6.1\bin\octave.exe"
  "C:\Octave-3.6.1\bin\octave.exe"


==Octave 3.6.4==
===Octave 3.6.4===


===Download===
====Download====
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.4%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge]
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.4%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge]


===Content===
====Content====
* Octave 3.6.4
* Octave 3.6.4
* OpenBLAS-0.2.2 (dynamic architectures, up to 4 threads)
* OpenBLAS-0.2.2 (dynamic architectures, up to 4 threads)
Line 845: Line 854:
* 82 packages from Octave-Forge (Must be installed through the Octave installer, see README: 3. Content)
* 82 packages from Octave-Forge (Must be installed through the Octave installer, see README: 3. Content)


==Octave 3.6.2==
===Octave 3.6.2===


===Download===
====Download====
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.2%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge]
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.2%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge]


===Content===
====Content====
* Octave 3.6.2
* Octave 3.6.2
* OpenBLAS-0.1.1 (dynamic architectures, up to 4 threads)
* OpenBLAS-0.1.1 (dynamic architectures, up to 4 threads)
Line 860: Line 869:
* 72 packages from Octave-Forge (see README: 3. Content)
* 72 packages from Octave-Forge (see README: 3. Content)


==Octave 3.6.1==
===Octave 3.6.1===


===Download===
====Download====
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.1%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge]
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.1%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge]


===Content===
====Content====
* Octave 3.6.1
* Octave 3.6.1
* ATLAS 3.8.4 single-threaded (SSE/SSE2/SSE3) and multi-threaded (SSE3, 2 threads)
* ATLAS 3.8.4 single-threaded (SSE/SSE2/SSE3) and multi-threaded (SSE3, 2 threads)
Line 874: Line 883:
* 72 packages from Octave-Forge
* 72 packages from Octave-Forge


==MXE==
How to build [[Windows_Installer]] using linux.


==Alternative==
===Alternative===
In addition to the instructions provided in the Octave manual and Octave-Forge repository, a basic toolkit for building Octave in windows using the MSVC compiler has been produced by Michael Goffioul. It consists of a set of scripts that can be used to compile Octave and its dependencies.  
In addition to the instructions provided in the Octave manual and Octave-Forge repository, a basic toolkit for building Octave in windows using the MSVC compiler has been produced by Michael Goffioul. It consists of a set of scripts that can be used to compile Octave and its dependencies.  


Line 884: Line 890:


Note that this is not a enterprise-level SDK, so don't try to start an enterprise with it.
Note that this is not a enterprise-level SDK, so don't try to start an enterprise with it.


[[Category:Installation]]
[[Category:Installation]]
[[Category:Building]]
[[Category:Building]]
[[Category:Microsoft Windows]]
[[Category:Microsoft Windows]]

Navigation menu