[Public] Hilfe für QT dringend gesucht

Jochen Bauer tks at jochenbauer.net
Mo Jul 1 12:28:18 CEST 2013


Danke Thomas,

mit Deinen Include-Änderungen hat es funktioniert. Mir ist nur nicht 
klar, woher der Fehler kam. Denn unter Windows hat das prima geklappt. 
Und die entsprechenden Includes (ui_mainwindow.h, Qapplication), die wir 
jetzt in eine andere Header verschoben, bzw. qapplication sogar entfernt 
haben, wird im qtcreator automatisch so angelegt.

Fürs Protokoll die ursprüngliche Fehlermeldung:
(Die folgenden beiden Zeilen in der qapplication.h sind das Problem laut 
Kompiler:
#if defined(Q_WS_X11)
     QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 
0, int = ApplicationFlags);
     QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual 
= 0, Qt::HANDLE cmap= 0, int = ApplicationFlags);
#endif

12:25:09: Führe Build-Schritte für Projekt NodaveGuiTest aus...
12:25:09: Unveränderte Konfiguration, qmake-Schritt wird übersprungen.
12:25:09: Starte "/usr/bin/make" -w
make: Entering directory 
`/home/jochen/Dropbox/progprojects/nodaveGuiTest/NodaveGuiTest-build-desktop-Qt_4_8_2_in_Pfad__System__Release'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DLINUX 
-DDAVE_LITTLE_ENDIAN -DDONT_USE_GETHOSTBYNAME -DQT_NO_DEBUG -DQT_GUI_LIB 
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ 
-I../NodaveGuiTest -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui 
-I/usr/include/qt4 -I../NodaveGuiTest -I. -I. -I. -o main.o 
../NodaveGuiTest/main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DLINUX 
-DDAVE_LITTLE_ENDIAN -DDONT_USE_GETHOSTBYNAME -DQT_NO_DEBUG -DQT_GUI_LIB 
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ 
-I../NodaveGuiTest -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui 
-I/usr/include/qt4 -I../NodaveGuiTest -I. -I. -I. -o mainwindow.o 
../NodaveGuiTest/mainwindow.cpp
In file included from /usr/include/qt4/QtGui/QApplication:1:0,
                  from ../NodaveGuiTest/ui_mainwindow.h:15,
                  from ../NodaveGuiTest/mainwindow.cpp:2:
/usr/include/qt4/QtGui/qapplication.h:132:36: error: expected identifier 
before 'int'
/usr/include/qt4/QtGui/qapplication.h:132:52: error: two or more data 
types in declaration of 'visual'
/usr/include/qt4/QtGui/qapplication.h:132:53: error: expected ')' before 
',' token
/usr/include/qt4/QtGui/qapplication.h:132:59: error: expected 
unqualified-id before 'int'
/usr/include/qt4/QtGui/qapplication.h:133:60: error: expected identifier 
before 'int'
/usr/include/qt4/QtGui/qapplication.h:133:76: error: two or more data 
types in declaration of 'visual'
/usr/include/qt4/QtGui/qapplication.h:133:77: error: expected ')' before 
',' token
/usr/include/qt4/QtGui/qapplication.h:133:5: error: 
'QApplication::QApplication(...)' cannot be overloaded
/usr/include/qt4/QtGui/qapplication.h:132:5: error: with 
'QApplication::QApplication(...)'
/usr/include/qt4/QtGui/qapplication.h:133:83: error: expected 
unqualified-id before 'int'
make: Leaving directory 
`/home/jochen/Dropbox/progprojects/nodaveGuiTest/NodaveGuiTest-build-desktop-Qt_4_8_2_in_Pfad__System__Release'
make: *** [mainwindow.o] Error 1
12:25:10: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 
beendet.
Fehler beim Erstellen des Projekts NodaveGuiTest(Ziel: Desktop)
Bei der Ausführung von Build-Schritt 'Make'



Am 2013-06-30 21:22, schrieb Thomas Darimont:
> Hallo Jochen,
> 
> welchen Compile-Fehler bekommst du denn?
> 
> Ich hab mal deine Includes etwas "aufgeräumt" (siehe diff). Damit
> kann ich mit make ohne Probleme kompilieren...


More information about the Public mailing list