qtは
$ brew install qt
でインストール。環境はOSX 10.9 Mavericks, XCode 5.0.2
Qt 4.8.5をインストール。
(昔パッケージインストーラでインストールしたQtは削除しておいた。
/Developer/Appilcations/と/Library/Frameworksに色々と入っていたのを手動で削除。)
main.cpp
#include <QApplication> #include <QTextEdit> int main(int argv, char **args) { QApplication app(argv, args); QTextEdit textEdit; textEdit.show(); return app.exec(); }
$ qmake -project #-> project_name.proが作成 $ qmake #-> Makefileが作成 $ make #-> project_name.appが作成 $ open project_name.app