轉 QT Linux下安裝手冊

2021-08-29 14:55:44 字數 1062 閱讀 4821

tar zxvf qt-x11-opensource-src-4.4.0.tar.gz

3、把這個目錄移到/usr/local目錄下,或者不移,放在/home目錄也無所謂,下面的安裝過程是把這個目錄移到/usr/local目錄下,改名為qt,如果您沒有移動,在設定的時候注意目錄。

4、修改(可以使用vi編輯器 或者gedit)自己目錄下的.bash_profile 或者 .profile或者是/etc/profile這個檔案,加入下面的**:

qtdir=/usr/local/qt

path=$qtdir/bin:$path

manpath=$qtdir/man:$manpath

ld_library_path=$qtdir/lib:$ld_library_path

export qtdir path manpath ld_library_path

5、登出一下使用者或者 source .bash_profile 一下,使配置檔案生效。

6、進入qt 的目錄,開始編譯

./configure

輸入yes同意gpl/qpl協議。

在網路上還看到這個命令 ./configure -thread,為了支援多執行緒,大家還是敲一下這些命令好了。(不知道./configure -thread 和 ./configure 命令有沒有重複)

7、開始make 這步要一兩個小時

make

8、開始install  (網上的一些手冊沒有這步,會出現 error while loading shared libraries: libqtdesignercomponents.so4 錯誤,我make install一下之後,就ok了。)這步也要挺久的,大概幾十分鐘吧。

make install

9、進入qt的目錄,進入bin目錄,然後執行 ./designer,大家可以看到圖形介面了吧。

QT Linux下安裝手冊

by jackie on june 13,2008 4 04 pm 3 comments previous next edit 具體的安裝辦法 1 去這裡 tar zxvf qt x11 opensource src 4.4.0.tar.gz 3 把這個目錄移到 usr local目錄下,或者不移,...

QT Linux下安裝QT開發環境

這次演示安裝5.9.0版本,因為是長期支援的版本,所以進入到archive qt 5.9 5.9.0 給安裝包分配執行許可權 命令 chmod x qt opensource linux x64 5.9.0.run 執行安裝程式,進入到安裝介面 命令 qt opensource linux x64 ...

《轉》中文手冊

夢維 發布者 seven s 2011 10 16 分類 夢印象 asihttprequest庫簡介 配置和安裝 asihttprequest 建立和執行request asihttprequest 傳送資料 asihttprequest 進度追蹤 asihttprequest 身份驗證 asiht...