1,847
edits
(→GraphicsMagick: move -L... to LDFLAGS) |
(Mark as outdated.) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Warning|This page is outdated (October 2019). For a more active approach on building GNU Octave using a separate toolchain, see [[MXE]].}} | |||
Building of octave together with a separate toolchain (custom built gcc/binutils/...). | Building of octave together with a separate toolchain (custom built gcc/binutils/...). | ||
Line 118: | Line 120: | ||
== qrupdate == | == qrupdate == | ||
download the | download the latest version (1.1.2 as of this writing) to $downloads | ||
https://sourceforge.net/projects/qrupdate/files/latest/download?source=typ_redirect | https://sourceforge.net/projects/qrupdate/files/latest/download?source=typ_redirect | ||
Line 174: | Line 176: | ||
}} | }} | ||
patch -p0 < $downloads/qrupdate-1.1. | patch -p0 < $downloads/qrupdate-1.1.2_Makeconf.patch | ||
make solib | make solib | ||
Line 370: | Line 372: | ||
== Octave itself == | == Octave itself == | ||
The following - facultative - command avoids warnings like {{codeline|libtool: warning: '/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64/libgomp.la' seems to be moved}} | |||
sudo find /usr/local/gcc-6.2.0_binutils-2.27_isl -name "*.la" -exec sed -i 's:/lib64/../lib64:/lib64:g' {} \; -print | |||
which will replace all unnecessary {{codeline|/lib64/../lib64}} by {{codeline|/lib64}}. | |||
cd $downloads | cd $downloads | ||
wget ftp:// | wget ftp://ftp.gnu.org/gnu/octave/octave-4.2.0.tar.lz | ||
Start from a clean state | Start from a clean state | ||
Line 383: | Line 391: | ||
cd $buildroot | cd $buildroot | ||
tar --no-same-owner -xvf $downloads/octave-4.2.0 | tar --no-same-owner -xvf $downloads/octave-4.2.0.tar.lz | ||
cd octave-4.2.0 | cd octave-4.2.0 | ||
mkdir build-; cd $_ | mkdir build-; cd $_ | ||
../configure --with-blas="/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64/libopenblas.so" CPPFLAGS="-I/usr/local/gcc-6.2.0_binutils-2.27_isl/include" CFLAGS="-O2 -march=native | ../configure --with-blas="/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64/libopenblas.so" CPPFLAGS="-I/usr/local/gcc-6.2.0_binutils-2.27_isl/include" CFLAGS="-O2 -march=native" CXXFLAGS="-O2 -march=native" FFLAGS="-O2 -march=native" LDFLAGS="-L/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64 -Wl,-rpath,/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64" PKG_CONFIG_PATH=/usr/local/gcc-6.2.0_binutils-2.27_isl/lib64/pkgconfig JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/ --prefix=/usr/local/gcc-6.2.0_binutils-2.27_isl | ||
make -j 6 | make -j 6 | ||
Line 395: | Line 403: | ||
xvfb-run -s "-screen 0 640x480x24" make check LD_PRELOAD=/usr/lib64/libGL.so | xvfb-run -s "-screen 0 640x480x24" make check LD_PRELOAD=/usr/lib64/libGL.so | ||
as root ({{codeline|su}}, not {{codeline|sudo}}, because we want PATH to contain {{Path|/usr/local/gcc-6.2.0_binutils-2.27_isl/bin}}) | |||
make install | |||
{{codeline|exit}} root session, then {{codeline|exit}} current bash, to return to a clean state | |||
Done. | |||
[[Category: | [[Category:Outdated pages]] |