Windows Installer: Difference between revisions

334 bytes removed ,  14 October 2019
Remove redundant information. Use https.
(→‎Step 1: Prepare mxe-octave: Update and describe the configure options more verbose.)
(Remove redundant information. Use https.)
Line 5: Line 5:


==Steps to create Windows Installer==
==Steps to create Windows Installer==
===General steps===


# [http://wiki.octave.org/Windows_Installer#Installing_requirements_of_MXE_Octave Install all requirements of MXE Octave].
# [http://wiki.octave.org/Windows_Installer#Installing_requirements_of_MXE_Octave Install all requirements of MXE Octave].
# <code>hg clone http://hg.octave.org/mxe-octave/</code>
# <code>hg clone https://hg.octave.org/mxe-octave</code>
# <code>cd mxe-octave</code>
# <code>cd mxe-octave</code>
# <code>./bootstrap</code>
# <code>./bootstrap</code>
Line 76: Line 78:


* <code>--enable-devel-tools</code>: Include gdb and an MSYS shell in the binary.
* <code>--enable-devel-tools</code>: Include gdb and an MSYS shell in the binary.
** If you seriously want to work with gdb, you need <code>--disable-strip-dist-files</code> as configure option, as well.  This may result in problems, see the [[#Tweaks|Tweaks]] section.
* <code>--enable-binary-packages</code>: Cross-compile binary modules in [[Octave Forge]] packages. This saves time when installing them once the installation runs on Microsoft Windows.
* <code>--enable-binary-packages</code>: Cross-compile binary modules in [[Octave Forge]] packages. This saves time when installing them once the installation runs on Microsoft Windows.
* <code>--with-ccache</code>: The usage of [https://ccache.dev/ ccache] may speed up repetitive compilation drastically.
* <code>--with-ccache</code>: The usage of [https://ccache.dev/ ccache] may speed up repetitive compilation drastically.
Line 89: Line 92:


Your author usually uses <code>JOBS=7</code>.
Your author usually uses <code>JOBS=7</code>.
If you seriously want to work with gdb, also have --disable-strip-dist-files as configure option. However, in that case chances are that you cannot build an .exe installer anymore as it becomes too big for NSIS (that has a 2 GB installer file size limit) so instead of "make nsis-installer" you'll need to invoke
make zip-dist <options>
....and this results in all Octave dependencies being built in mxe-octave, plus (stable) Octave, plus an initial version of a binary Octave-Windows installer in the <mxe-octave build>/dist/ subdirectoy.


It can happen that you meet problems with Java. To build Octave with Java support built-in, mxe-octave needs:
It can happen that you meet problems with Java. To build Octave with Java support built-in, mxe-octave needs: