https://wiki.octave.org/wiki/api.php?action=feedcontributions&user=87.240.222.34&feedformat=atomOctave - User contributions [en]2024-03-29T15:05:38ZUser contributionsMediaWiki 1.39.2https://wiki.octave.org/wiki/index.php?title=MXE&diff=5247MXE2014-12-29T13:21:23Z<p>87.240.222.34: /* Examples of compiling Octave for different platforms */</p>
<hr />
<div>Based on the [http://mxe.cc/ MXE] project there is an [http://hg.octave.org/mxe-octave MXE-Octave] fork available to allow cross compiling Octave to various target systems.<br />
<br />
=== Examples of compiling Octave for different platforms ===<br />
<br />
* '''Compiling for Windows'''<br />
# There is some further information for using mxe-octave to build an Windows installer here: [[Windows_Installer]].<br />
<br />
<br />
* '''Compiling for your Linux system'''<br />
# Download [http://hg.octave.org/mxe-octave MXE-Octave] as a compressed file.<br />
# Unpack it in ~ or somewhere suitable.<br />
# cd into the directory (called ~/mxe-octave-123456789 or similiar).<br />
# Type: autoconf<br />
# Type: ./configure --enable-64 --enable-native-build --enable-pic-flag host_alias=gnu-linux --enable-openblas --enable-jit<br />
# Type: make<br />
# vi src/openblas.mk and set USE_THREAD=1<br />
# Type: make openblas<br />
# cd usr/lib<br />
# mv libblas.so libblas.so.reference<br />
# ln -s libopenblas.so libblas.so<br />
# Octave will exist in ~/mxe-octave-123456789/usr/bin<br />
# Add to your .bashrc file: alias octave=~/mxe-octave-123456789/usr/bin/octave<br />
<br />
It's that easy...<br />
<br />
<br />
* '''Compiling for a different Linux system'''<br />
# ...<br />
<br />
=== Packaging for distribution ===<br />
<br />
<br />
<br />
<br />
[[Category:Building]]</div>87.240.222.34