简体   繁体   English

八度Windows二进制文件,包括classdef

[英]Octave windows binaries including classdef

Are there any octave default branch binaries for windows available somewhere? 是否有Windows的八度默认分支二进制文件可用?

If not, is there a simple way of getting a version including classdef for Linux? 如果没有,是否有简单的方法来获取包括Linux版的classdef的版本? simple , because usually I do not use Linux. 简单 ,因为通常我不使用Linux。

I don't think there are windows builds from default (aka development) available but you may ask on the help mailinglist. 我认为没有默认(也称为开发)的Windows构建可用,但您可以在帮助邮件列表上询问。 (Some users there build windows binaries with MXE from development sources) (那里的一些用户使用来自开发源的MXE构建Windows二进制文件)

If you want to build on GNU/Linux I would suggest Debian or Ubuntu in a VM. 如果要在GNU / Linux上构建,我建议在VM中使用Debian或Ubuntu。 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 就像安装依赖项,用hg克隆,引导程序,配置,制作...一样容易。您可以在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. 但请始终记住,这些是开发源,通常不适合用于生产用途,并且可能会中断一段时间。

Here's how I ended up doing it (approximately and skipp'in all the failed attempts). 这就是我最终做的方法(大约在所有失败的尝试中都跳过)。

  • Install VirtualBox 安装VirtualBox
  • Create new machine, mount ubuntu image, chose dynamic HDD size (or at least 10 GB) 创建新机器,挂载ubuntu映像,选择动态HDD大小(或至少10 GB)
  • Install Ubuntu . 安装Ubuntu If strange mixed color screen appears on first boot: 如果首次启动时出现奇怪的混合色屏幕:
    • [right] CTRL + F1 [右] CTRL + F1
    • [right] CTRL + F7 [右] CTRL + F7
  • Open Terminal ( CTRL + ALT + T ) 打开终端( CTRL + ALT + T

    • If sceen resolution cannot be made larger 640*480: 如果不能将较大的分辨率设置为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) 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 (需要一段时间)
  • ./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...) ../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" (未找到TargetData.h ...)
  • make (takes half an hour or more) make (需要半小时或更长时间)
  • make check (takes a while, gave a failed assertion) make check (花一会儿,断言失败)
  • make install
  • ./run-octave

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM