2017-06-06 137 views
0

這裏編譯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> 

有沒有人想出這個問題,有一些辦法或解決方案?謝謝

+0

我認爲這意味着調用make而不僅僅是使-j4,對吧? – aarelovich

+0

./configure很好?發現的一切? – Andy

+0

我沒有看到任何問題。我已經按照建議嘗試過,現在還在繼續。所以我不知道,也許這是固定的?我會盡快彙報... – aarelovich

回答

2

QtWidgets/QAction是特定於Qt5,它似乎是當你執行yum-builddep -y octave它得到了Qt4的依賴。使用選項--with-qt=4配置八度。另一個選項是安裝qt5庫和它的devel文件,配置--with-qt=5,並進行。

+0

你能告訴我該怎麼做嗎?或者,我在哪裏使用該選項?在./configure步驟? – aarelovich

+0

'./configure --prefix =/usr/local/octave/versions/4.2.1 --with-qt = 4' –

+0

Thanks!我會試試 – aarelovich