QUCS 0.0.19( 開発版)を CentOS6.7(64bit)にインストール

Post date: 2016/03/22 5:54:38

QUCS 0.0.19( 開発版)を CentOS5.7(64bit)にインストールに書いたように、CentOS 6.5にGCC 4.8.2をレポジトリで入れてみた に従ってgcc 4.8を入れた。

重要: yum installしたqt-develでは、以下のようなエラー

g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include -I/usr/include/Qt -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/QtSvg -I/usr/include/QtXml -I/usr/include/QtScript -I/usr/include/Qt3Support -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS -DQT_THREAD_SUPPORT -D_REENTRANT -I../../qucs -O2 -pipe -fno-exceptions -Wno-deprecated-register -std=c++0x -MT componentdialog.o -MD -MP -MF .deps/componentdialog.Tpo -c -o componentdialog.o componentdialog.cpp

In file included from componentdialog.cpp:21:0:

../../qucs/schematic.h:318:10: error: field 窶牢ignals窶▒ has incomplete typ DigMap Signals; // collecting node names for VHDL signal declarati

^

cc1plus: warning: unrecognized command line option "-Wno-deprecated-register" [enabled by default]

上記は、export QTDIR=/usr/lib64/qt4 しても同じだった。

そこで、centos5.7の場合と同様、自分でコンパイルした /usr/local/anagix_tools/qt-4 を使用した。

qt-develをインストールしたままだと、moc-qt4というのが使われてしまい、以下のエラーとなった。

componentdialog.moc.cpp:14:2: error: #error "This file was generated using \

the moc from 4.6.2. It"

#error "This file was generated using the moc from 4.6.2. It"

^

componentdialog.moc.cpp:15:2: error: #error "cannot be used with the includ\

e files from this version of Qt."

#error "cannot be used with the include files from this version of Q

^

componentdialog.moc.cpp:16:2: error: #error "(The moc has changed too much.\

)"

#error "(The moc has changed too much.)"

^

yum remove qt-develすることで解決した。yumのqtは、Qt assistantで日本語が表示されない問題もあるので、自分で作成した/usr/local/anagix_tools/qt-4.8.5を使うのが無難そうだ。

Qucsのコンパイルは、CentOS5の場合と同様以下でできる:

./qucs :

export QTDIR=/usr/local/anagix_tools/qt-4

export PATH=/usr/local/anagix_tools/qt-4/bin:$PATH

scl enable devtoolset-2 bash

./configure --prefix=/usr/local/anagix_tools

make && make install

./qucs-core : gitレポジトリでないとadmsがコンパイルされないようなので、ダウンロードした開発版ではなく、git pullしたqucs repositoryのmaster (0.0.19開発中だと思う)を使った

準備

・yum instal gperfが’必要だった

コンパイル

./bootstrap

./configure --prefix=/usr/local/anagix_tools --enable-maintainer-mode

make && make install