author | zecke <zecke> | 2003-08-30 20:23:05 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-30 20:23:05 (UTC) |
commit | 4c3a1de5289631db05b86a07092f0a334608dcf6 (patch) (unidiff) | |
tree | 90caf9b05312013006dad0af7f039ed1c595842d /examples/COMMON_ERRORS | |
parent | cc1e68e0b6e0677e0523382daeb12d60ba0b67c9 (diff) | |
download | opie-4c3a1de5289631db05b86a07092f0a334608dcf6.zip opie-4c3a1de5289631db05b86a07092f0a334608dcf6.tar.gz opie-4c3a1de5289631db05b86a07092f0a334608dcf6.tar.bz2 |
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
-rw-r--r-- | examples/COMMON_ERRORS | 38 |
1 files changed, 38 insertions, 0 deletions
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 @@ | |||
1 | A List of common compile errors | ||
2 | |||
3 | Error: | ||
4 | /simple.o simple.cpp | ||
5 | make: *** Keine Regel vorhanden, um das Target ».moc//moc_simple.cpp«, | ||
6 | |||
7 | Answer: There is only a rule for ./moc/$PLATFORM/moc_simple.cpp your platform | ||
8 | leading to a double slash. Set $PLATFORM and run qmake again | ||
9 | |||
10 | Error: | ||
11 | Assembler messages: | ||
12 | FATAL: can't create .obj/obj/simple.o: Datei oder Verzeichnis nicht gefunden | ||
13 | make: *** [.obj/obj/simple.o] Unterbrechung | ||
14 | |||
15 | Answer: you forgot to run qmake after setting $PLATFORM | ||
16 | |||
17 | |||
18 | Error: | ||
19 | /obj/simple.o simple.cpp | ||
20 | /home/ich/programming/opie/head/opie/include/opie/oapplicationfactory.h: In | ||
21 | member function `QWidget* | ||
22 | OApplicationFactory<Product>::createMainWindow(const QString&, QWidget*, | ||
23 | const char*, unsigned int) [with Product = MainWindow]': | ||
24 | /home/ich/programming/opie/head/qt-cvs/include/qvaluelist.h:27: instantiated from here | ||
25 | /home/ich/programming/opie/head/opie/include/opie/oapplicationfactory.h:100: error: ' | ||
26 | class MainWindow' has no member named 'appName' | ||
27 | /home/ich/programming/opie/head/opie/include/opie/oapplicationfactory.h: In | ||
28 | member function `QStringList OApplicationFactory<Product>::applications() | ||
29 | const [with Product = MainWindow]': | ||
30 | /home/ich/programming/opie/head/qt-cvs/include/qvaluelist.h:27: instantiated from here | ||
31 | /home/ich/programming/opie/head/opie/include/opie/oapplicationfactory.h:108: error: ' | ||
32 | class MainWindow' has no member named 'appName' | ||
33 | make: *** [.obj/obj/simple.o] Fehler 1 | ||
34 | |||
35 | Answer: gcc loves to spit out long compiler errors for template. the problem is that oapplication factory | ||
36 | wants to call a static method called appName() on your widget. You need to add static QString appName() | ||
37 | and return the name of the executable | ||
38 | |||