From 4c3a1de5289631db05b86a07092f0a334608dcf6 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 30 Aug 2003 20:23:05 +0000 Subject: Add four examples #1 simple widget + OApplicationFactory + qmake usage explained #2 simple icons + usage of Resource and playing of sounds #3 simple main + Toolbar + MenuBar IconSets and QActions explained #4 main tab + Usage of OTabWidget and QSignals with parameters disconnect and connect TODO #5 PIM loading and viewing #6 PIM qcop + usage of QCOP BuildSystem integration --- (limited to 'examples/COMMON_ERRORS') diff --git a/examples/COMMON_ERRORS b/examples/COMMON_ERRORS new file mode 100644 index 0000000..d260868 --- a/dev/null +++ b/examples/COMMON_ERRORS @@ -0,0 +1,38 @@ +A List of common compile errors + +Error: +/simple.o simple.cpp +make: *** Keine Regel vorhanden, um das Target ».moc//moc_simple.cpp«, + +Answer: There is only a rule for ./moc/$PLATFORM/moc_simple.cpp your platform +leading to a double slash. Set $PLATFORM and run qmake again + +Error: +Assembler messages: +FATAL: can't create .obj/obj/simple.o: Datei oder Verzeichnis nicht gefunden +make: *** [.obj/obj/simple.o] Unterbrechung + +Answer: you forgot to run qmake after setting $PLATFORM + + +Error: +/obj/simple.o simple.cpp +/home/ich/programming/opie/head/opie/include/opie/oapplicationfactory.h: In + member function `QWidget* + OApplicationFactory::createMainWindow(const QString&, QWidget*, + const char*, unsigned int) [with Product = MainWindow]': + /home/ich/programming/opie/head/qt-cvs/include/qvaluelist.h:27: instantiated from here + /home/ich/programming/opie/head/opie/include/opie/oapplicationfactory.h:100: error: ' + class MainWindow' has no member named 'appName' + /home/ich/programming/opie/head/opie/include/opie/oapplicationfactory.h: In + member function `QStringList OApplicationFactory::applications() + const [with Product = MainWindow]': + /home/ich/programming/opie/head/qt-cvs/include/qvaluelist.h:27: instantiated from here + /home/ich/programming/opie/head/opie/include/opie/oapplicationfactory.h:108: error: ' + class MainWindow' has no member named 'appName' + make: *** [.obj/obj/simple.o] Fehler 1 + +Answer: gcc loves to spit out long compiler errors for template. the problem is that oapplication factory +wants to call a static method called appName() on your widget. You need to add static QString appName() +and return the name of the executable + -- cgit v0.9.0.2