错误的Centos 7
这里编译Octave是的,我为了做尝试CentOS中7安装倍频4.2.1步骤列表(回购版本是3.8.2现在真的老了)错误的Centos 7
1) yum update
2) yum-builddep -y octave
3) yum -y install qt-devel mercurial gcc-c++ lapack-devel libtool
4) yum -y install epstool transfig pstoedit qscintilla-devel
(NOTE: First problem was right here as there is NO pstoedit in Centos 7, as far as I know)
5) sudo yum install bzip2-devel atlas-devel libsndfile-devel portaudio-devel GraphicsMagick-c++-devel
6) ln -s /usr/lib64/atlas/libtatlas.so /usr/lib64/libatlas.so (One of the tutorials recommended doing this to fix a place where a library was being searched for or something like that. It seemed harmless enough)
7) wget ftp://ftp.gnu.org/gnu/octave/octave-4.2.1.tar.gz
8) tar-xvf octave-4.2.1.tar.lz
9) cd octave-4.2.1
10) export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
11) ./configure --prefix=/usr/local/octave/versions/4.2.1
12) make -j4
它失败与此错误:
In file included from libgui/src/settings-dialog.cc:31:0:
libgui/src/ui-settings-dialog.h:13:29: fatal error: QtWidgets/QAction: No such file or directory
#include <QtWidgets/QAction>
有没有人想出这个问题,有一些办法或解决方案?谢谢
QtWidgets/QAction
是特定于Qt5,它似乎是当你执行yum-builddep -y octave
它得到了Qt4的依赖。使用选项--with-qt=4
配置八度。另一个选项是安装qt5
库和它的devel文件,配置--with-qt=5
,并进行。
你能告诉我该怎么做吗?或者,我在哪里使用该选项?在./configure步骤? – aarelovich
'./configure --prefix =/usr/local/octave/versions/4.2.1 --with-qt = 4' –
Thanks!我会试试 – aarelovich
我认为这意味着调用make而不仅仅是使-j4,对吧? – aarelovich
./configure很好?发现的一切? – Andy
我没有看到任何问题。我已经按照建议尝试过,现在还在继续。所以我不知道,也许这是固定的?我会尽快汇报... – aarelovich