rajath@Rajathkumar:~$ cd Downloads
rajath@Rajathkumar:~/Downloads$ cd qucs-0.0.16
rajath@Rajathkumar:~/Downloads/qucs-0.0.16$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for ar... ar
checking for lrelease-qt3... no
checking for lrelease... /usr/bin/lrelease
checking for lupdate-qt3... no
checking for lupdate... /usr/bin/lupdate
checking for moc-qt3... no
checking for moc... /usr/bin/moc
checking for uic-qt3... no
checking for uic... /usr/bin/uic
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for Qt headers... configure: error: not found
答案1
apt-cache search libqt | grep headers
回報
libqt3-compat-headers - Qt 1.x and 2.x compatibility includes
libqt3-headers - Qt3 header files
libqtgstreamer-dev - Development headers for QtGStreamer
這是如何搜尋您沒有的依賴項的基本範例。另請參閱http://ubuntuforums.org/showthread.php?t=124483發布 #8 以獲得更徹底的解釋。
看來您想要抓住第二個並安裝它。如果你不知道怎麼做:sudo apt-get install libqt3-headers
就好了。
答案2
至少對我來說,結果是
sudo apt-get install build-essential libqt4-dev libqt4-qt3support automake libtool gperf flex bison git cmake
從https://github.com/Qucs/qucs/wiki/Build-Linux
並繼續
./configure
make
sudo make install
答案3
當您成功執行和時,componentdialog.moc.cpp
或檔案many ~~~.moc.cpp
似乎會自動建立。/use/bin/moc-qt4
./configure
make
您在來源檔案中看不到它們。所以你需要已經安裝了一些 qt4 二進位套件。我在 puppy-linux 上,所以已經qt_all-4.7.3.sfs
安裝了,但是用它我無法編譯 SUCS,所以卸載了它們。但我/usr/bin/moc-qt4
從之前的 qt 安裝中得到了一些資訊。
您已經使用以下命令在「某處」解壓縮了 QUCS 的來源檔案:
tar -xvzf qucs-0.0.18.131128.tar.gz
(0.0.18.131128)是我的包包的版本號碼。我們將「某處」稱為 SRC-DIR。
編譯奎克斯你需要安裝:
libqt3-compat-headers_3.deb
libqt3-headers_3.deb
libqt4-dev_4.deb
去文件觀察者網站並在搜尋框中輸入這些檔案名,然後一一按搜尋按鈕找到它們並下載並安裝它們。
安裝完它們後:
libqt4-dev_4.deb
會在/usr/include/qt4
.libqt3-compat-headers_3.deb
並將libqt3-headers_3.deb
在/usr/include/qt3
.
您需要做一個符號連結到/usr/include/qt4
名稱為“Qt”的/usr/include/~Q
t as奎克斯 configure
文件似乎正在尋找目錄/usr/include/Qt
而不是/usr/include/qt4
或qy3
使用下一個命令:
ln -s /usr/include/qt4 /usr/include/Qt (Enter) to make the sim-link /usr/include/~Qt.
我們快要完成任務了,但(~QT) 目錄./configure
似乎有點混亂。 許多頭文件不在正確的位置。因為它需要很多文件,所以您可以使用以下命令將所有文件複製到其中: cp /usr/include/qt4/Qt/*.h /usr/include/qt4/usr/include/qt4
.h
/usr/include/qt4/Qt/*.h
/usr/include/qt4/*.h
並使用以下命令建立指向/usr/include/qt4/QtGui
in的連結:/usr/include
ln -s /usr/include/qt4/QtGui /usr/include/QtGui
您還需要將下面列出的檔案複製到/usr/include/qt4
目錄 from/usr/include/qt4/Qt3Support
和/usr/include/qt4/QtCore
目錄中。
- Q3Dict(來自
/Qt3Support
),cp /usr/include/qt4/Qt3Support/Q3Dict /usr/include/qt4
- Q3GridLayout(來自
/Qt3Support
),cp /usr/include/qt4/Qt3Support/Q3GridLayout /usr/include/qt4
- Q3PtrList(來自
/Qt3Support
),cp /usr/include/qt4/Qt3Support/Q3PtrList /usr/include/qt4
- Q3ScrollView(來自
/Qt3Support
),cp /usr/include/qt4/Qt3Support/Q3ScrollView /usr/include/qt4
- Q3TextSream(來自
/Qt3Support
),cp /usr/include/qt4/Qt3Support/Q3TextStream /usr/include/qt4
- Q3VBoxLayout(來自
/Qt3Support
),cp /usr/include/qt4/Qt3Support/Q3VBoxLayout /usr/include/qt4
- QProcess(來自
/QtCore
),cp /usr/include/qt4/QtCore/QProcess /usr/include/qt4
QSettings(來自
/QtCore
),cp /usr/include/qt4/QtCore/QSettings /usr/include/qt4
這些文件是(~Qt)
.h
中許多文件的連結。/usr/include/qt4
如果你使用 mc 你可以輕鬆做到這些嗎?
您還需要將/usr/include/qt3/private
目錄及其內容複製到/usr/include/qt4
as /usr/include/qt4/private
。
使用命令:
mkdir /usr/include/qt4/private
cp /usr/include/qt3/private/* /usr/include/qt4/private
現在,您可以在 SRC-DIR 執行操作./configure
。我希望它能夠成功完成冗長的配置。
如果你現在這樣做,make
這將讓你幾乎一路編譯奎克斯但它可能會停在:
/usr/bin/ld: cannot find -lQtCore
/usr/bin/ld: cannot find -lQtGui
/usr/bin/ld: cannot find -lQtXml
/usr/bin/ld: cannot find -lQt3Support
/usr/bin/ld: cannot find -lQtSvg
collect2: ld returned 1 exit status
make[3]: *** [qucs] Error 1
make[3]: Leaving directory `/root/SRC/qucs-0.0.18.131128/qucs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/SRC/qucs-0.0.18.131128/qucs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/SRC/qucs-0.0.18.131128'
make: *** [all] Error 2
如果您沒有安裝任何libqt4
軟體包。我遇到這種情況是因為我沒有安裝libqt4
軟體包。我會找到要安裝的包,如果成功編譯 Sucs,我會發布我所做的事情。