Octave windows binaries including classdef

224 Views Asked by At

Are there any octave default branch binaries for windows available somewhere?

If not, is there a simple way of getting a version including classdef for Linux? simple, because usually I do not use Linux.

2

There are 2 best solutions below

0
On BEST ANSWER

I don't think there are windows builds from default (aka development) available but you may ask on the help mailinglist. (Some users there build windows binaries with MXE from development sources)

If you want to build on GNU/Linux I would suggest Debian or Ubuntu in a VM. It is as easy as installing the dependencies, clone with hg, bootstrap, configure, make... You'll find instructions on the wiki http://wiki.octave.org/Octave_for_Debian_systems#Compiling_from_source

But always keep in mind that these are development sources which generally aren't suitable for productive use and may break sometime.

5
On

Here's how I ended up doing it (approximately and skipp'in all the failed attempts).

  • Install VirtualBox
  • Create new machine, mount ubuntu image, chose dynamic HDD size (or at least 10 GB)
  • Install Ubuntu. If strange mixed color screen appears on first boot:
    • [right] CTRL+F1
    • [right] CTRL+F7
  • Open Terminal (CTRL+ALT+T)

    • If sceen resolution cannot be made larger 640*480:
      sudo apt-get install virtualbox-guest-dkms
      sudo reboot
  • sudo apt-get install mercurial

  • hg clone http://www.octave.org/hg/octave -r default
  • sudo apt-get install gfortran debhelper automake dh-autoreconf texinfo texlive-latex-base texlive-generic-recommended epstool transfig pstoedit libreadline-dev libncurses5-dev gperf libhdf5-serial-dev libblas-dev liblapack-dev libfftw3-dev texi2html less libpcre3-dev flex libglpk-dev libsuitesparse-dev gawk ghostscript libcurl4-gnutls-dev libqhull-dev desktop-file-utils libfltk1.3-dev libgl2ps-dev libgraphicsmagick++1-dev libftgl-dev libfontconfig1-dev libqrupdate-dev libarpack2-dev dh-exec libqt4-dev libqscintilla2-dev default-jdk dpkg-dev gnuplot-x11 libbison-dev libxft-dev llvm-3.3 (takes a while)
  • ./bootstrap
  • mkdir builddir
  • cd builddir
  • ../configure --enable-jit --prefix=/opt/octave3.8 JAVA_HOME=/usr/lib/jvm/default-java LLVM_CONFIG=/usr/bin/llvm-config-3.2 CFLAGS="-O2 -march=native" CXXFLAGS="-O2 -march=native" (no TargetData.h found...)
  • make (takes half an hour or more)
  • make check (takes a while, gave a failed assertion)
  • make install
  • ./run-octave