简体   繁体   English

从源代码构建八度音程包

[英]build octave package from source

I want to install octaviz package in octave software. 我想在八度软件中安装octaviz软件包。

From the documentation there is stated: 从文档中可以看出:

-You'll need octave 2.1.53 or later and VTK CVS to build octaviz. -您需要八度2.1.53或更高版本以及VTK CVS来构建八度。 To compile octaviz, run ccmake . 要编译octaviz,请运行ccmake . in the root directory of the source tree, then make and finally make install . 在源树的根目录中,然后make ,最后make install

I first ran ccmake . 我首先运行ccmake . , and it completed successfully after I installed some libs that I was missing. ,并且在我安装了一些缺少的库之后成功完成了安装。

But, the I ran "make" and it exits with the following errors: 但是,我运行了“ make”,它退出并出现以下错误:

>> make
[  1%] Built target vtkWrapOctave
[  1%] Building CXX object Common/CMakeFiles/octaviz.dir/octaviz.o
/home/user12345/octave/octaviz/Common/octaviz.cc:31:24: fatal error: octave/oct.h: No such file or directory
 #include <octave/oct.h>
                        ^
compilation terminated.
make[2]: *** [Common/CMakeFiles/octaviz.dir/octaviz.o] Error 1
make[1]: *** [Common/CMakeFiles/octaviz.dir/all] Error 2
make: *** [all] Error 2

Any idea what I am missing here? 知道我在这里缺少什么吗?

You are missing the octave/oct.h header. 您缺少octave/oct.h标头。 This usually means that you don't have Octave installed. 这通常意味着您没有安装Octave。 If you do have it installed, maybe you are missing the header files and shared libraries (if you are using Linux, did you install octave's -dev or -devel packaqes?) If you have them installed, you must have ran the configure script incorrectly. 如果已安装,则可能缺少头文件和共享库(如果使用Linux,是否安装了octave的-dev或-devel packaqes?)如果已安装,则必须正确运行了配置脚本。 Either specify the correct options or set the CXX_FLAGS. 指定正确的选项或设置CXX_FLAGS。 If you don't know about compiler flags you probably should not change them and instead figure out how to install the octave libraries correctly. 如果您不了解编译器标志,则可能不应该更改它们,而应弄清楚如何正确安装八度音程库。

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

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