Problem compiling Qt example from OS X terminal
-
The Following is the hello.pro
@######################################################################Automatically generated by qmake (2.01a) Sat Nov 6 15:35:50 2010
######################################################################
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .Input
SOURCES += hello.cpp@
The following is the hello.cpp
@#include <QApplication>
#include <QLabel>int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}
@ -
-
Worked perfectly! Thanks so much!
-
Volker, I've stucked with same problem when ported one of my projects to MacOSX. Qt was installed from package from qt ftp. I think that setting QMAKESPEC will help, but didn't try (always explicitly setted -spec param to qmake).
-
-
Volker, yeah, another good way :)
-
I installed Qt 4.7.0, Qt Creator 2.0.1, and Xcode Developer 3.1.3.
All of them were installed from disk images.
I didn't install any of them manually.