summaryrefslogtreecommitdiff
path: root/examples/COMMON_ERRORS
blob: d26086854962d479b18e418f2b8d978a6eb15b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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<Product>::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<Product>::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