And, here's the second half:
So, I don't want to use Makefiles, but I figured I would try it while waiting for an answer. Here's the result. No bueno. (Note I created a new folder and source file)
Just before this Make attempt, I entered: qmake qt1.pro
Code:
~/Xcode/qt1 toddburch $ qmake -spec macx-g++ qt1.pro
~/Xcode/qt1 toddburch $ make
g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.5/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I. -I. -F/Library/Frameworks -o moc_qapplication.o moc_qapplication.cpp
moc_qapplication.cpp: In member function ‘virtual int QApplication::qt_metacall(QMetaObject::Call, int, void**)’:
moc_qapplication.cpp:110: error: invalid use of undefined type ‘struct QApplicationPrivate’
/Library/Frameworks/QtCore.framework/Headers/qobject.h:295: error: forward declaration of ‘struct QApplicationPrivate’
moc_qapplication.cpp:120: error: invalid use of undefined type ‘struct QIcon’
/Library/Frameworks/QtGui.framework/Versions/4/Headers/qapplication.h:72: error: forward declaration of ‘struct QIcon’
make: *** [moc_qapplication.o] Error 1
~/Xcode/qt1 toddburch $ ls -l
Here's my source.
Code:
#include <QApplication>
#include <QLabel>
..
int main (int argc, char * argv[]) {
.. .. QApplication app(argc, argv) ;
.. .. QLabel * label = new QLabel("Hello Todd") ;
.. .. label->show() ;
.. .. return app.exec() ;
}
User error? Install error? Qt error?