ENVIRONMENT: ------------ Hardware Overview: Model Name: Mac mini Model Identifier: Macmini2,1 Processor Name: Intel Core 2 Duo Processor Speed: 2 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 4 MB Memory: 2 GB Bus Speed: 667 MHz Boot ROM Version: MM21.009A.B00 SMC Version (system): 1.19f2 QtCore: Version: 4.6 Last Modified: 4/23/10 3:50 PM Get Info String: Created by Qt/QMake Location: /Library/Frameworks/QtCore.framework Private: No QtGui: Last Modified: 4/23/10 3:50 PM Location: /Library/Frameworks/QtGui.framework Private: No NARRATIVE: ---------- Originally, I had tried to install Qt4-mac using macports, with which I have had great success in the past. This didn't work. After downloading the Qt SDK which includes Qt 4.6 application framework and Qt Creator 1.3 IDE, to my Mac, running OS X 10.5, I tried to compile the simple program below from the command line. Following the instructions on pages 3 & 4 of the online text: Blanchette, Summerfield. C++ GUI Programming with Qt4, 2006 I entered this program into my 'hello' directory: # include # include int main(int argc char *argv[]) { QAppllication app(argc, argv); QLabel * label = new QLabel("Hello Qt!"); label->show(); return app.exec(); } [bgscott@hello]$ lf hello.cpp [bgscott@hello]$ qmake -project QFileInfo::absolutePath: Constructed with empty filename [bgscott@hello]$ qmake hello.pro [bgscott@hello]$ lf Info.plist hello.cpp hello.pro hello.xcodeproj/ [bgscott@hello]$ make hello g++ hello.cpp -o hello hello.cpp:1:25: error: QApplication: No such file or directory hello.cpp:2:19: error: QLabel: No such file or directory hello.cpp:4: error: expected ‘,’ or ‘...’ before ‘char’ hello.cpp: In function ‘int main(int)’: hello.cpp:5: error: ‘QAppllication’ was not declared in this scope hello.cpp:5: error: expected `;' before ‘app’ hello.cpp:6: error: ‘QLabel’ was not declared in this scope hello.cpp:6: error: ‘label’ was not declared in this scope hello.cpp:6: error: expected type-specifier before ‘QLabel’ hello.cpp:6: error: expected `;' before ‘QLabel’ hello.cpp:8: error: ‘app’ was not declared in this scope make: *** [hello] Error 1 [bgscott@hello]$ It appears to me that the path to the include directory is not properly specified. When I tried to compile the program using Xcode, the following error message is generated: Building target “hello” of project “hello” with configuration “Debug” — (1 error) Checking Dependencies target specifies product type 'com.apple.product-type.application', but there's no such product type for the 'macosx' platform Build failed (1 error) When I examine the Groups & Files panel, produced from QtGui.framework > Headers, I find that QApplication points at "qapplication.h" and QLabel points at "qlabel.h" via their respective include statements. I am very confused. For most simple programs that I develop, I usually work directly from the command line, bypassing the intricacies of the IDEs, such as Xcode. The fact, however, that the IDE seems to be having problems suggests that something in the install went amiss.