作者descent (得到第一篇劣文)
看板MacDev
標題qt 簡介
時間Mon May 24 21:27:54 2010
qt 是我用來寫 GUI 的 framework,
本來只用在 X, ms windows 上, 後來加入 mac 一族,
也就跟著開始用 qt for mac 的版本。
在 10.4.X 下使用有點小問題, gcc 需要使用 4.2.X,
否則會有 internal error 的怪問題。
但是 10.4.X 只能使用 xcode 2.5 的版本,
gcc/g++ 4.2.1 請到以下 url 下載:
http://r.research.att.com/tools/#gcc42
qt 的版本
qt-everywhere-opensource-src-4.6.2.tar.gz
untar 之後
./configure -no-qt3support
./make
就開始編譯了。
make install 後, 會裝到 /usr/local/Trolltech/qt-version
但在 10.4.X 有些小問題, 遇到的話看一下
http://descent-incoming.blogspot.com/2008/12/compile-qt-source-code.html
http://descent-incoming.blogspot.com/search/label/qt%20terminal
這是我從
http://sourceforge.net/project/platformdownload.php?group_id=227230
port 到 mac 上的 terminal 程式。
還不太能用, 展示部份較多。
可以在 linux/X, mac 10.4.X, windows/cygwin 上執行。
展現 QT 的跨平台能力。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.230.234.8
1F:推 dryman:好強! 05/24 23:37
2F:→ uranusjr:我用 10.6, qmake -project 之後可以產生 XCode Project, 05/24 23:45
3F:→ uranusjr:連標色和自動完成都有, TrollTech 真的很用心 05/24 23:45
4F:→ EShensh:會用 QT 「塞」界面的真的很厲害 (拜) 05/25 01:34
5F:→ EShensh:我只會用視覺的拉介面 T_T 05/25 01:35
6F:推 aecho:開發app如果是用在商用的,需要付費給Qt嗎? 05/25 08:40
應該是需要的, 因為我都寫一些沒用的 opensource 程式, 這部份比較不清楚。
想試試看這個 terminal 可以到
http://code.google.com/p/qt-prog/source/checkout
看看。
或是直接
svn checkout
http://qt-prog.googlecode.com/svn/trunk/ qt-prog-read-only
裡頭這個目錄
qtermwidget
/usr/local/Trolltech/Qt-4.6.2/bin/qmake qtermwidget.pro
make
consoleq 開頭的檔案就是執行檔了。
這只能當展示用, 有很多基本功能還不能用。
我改版的速度很緩慢, 所以不算很實用。
我的終極目標是想要用來上 PTT, 還有一段漫長的路。
在 10.4.X ppc/intel, 10.6.X intel 都有測試過。
※ 編輯: descent 來自: 220.132.92.38 (05/25 14:22)
7F:推 alishas:Qt 的 GPL 和 LGPL 版,都可以免費用於商業用途。 05/26 08:01
8F:→ alishas:如果不想公佈原始碼,可以用LGPL版配合dynamic linking 05/26 08:02