Installation QT generell und speziell für dev c++



  • kann es sein das das nur ein trollversuch von trolltech war um aufmerksamkeit zu kriegen?



  • hi, ich hab mal nach deinem installations tut. das probiert aber:

    bei mir hat sich der intaller aufgeregt, dass ich kein mingw als ich da verzeichnis angegeben habe: C:/Programme/Dev-Cpp 5.0 beta/bin
    kann das der grund für die fehler sein:
    lib und die includes hab ich richtig in den projektoptionen eingestellt....
    ich wollte das sample aus dem tut compilieren... http://www.hoppelkoppel.de/docs/InstallationQt.pdf

    lg rolfi

    Compiler: Default compiler
    Building Makefile: "C:\Dokumente und Einstellungen\Gerald\Desktop\Makefile.win"
    Führt  make... aus
    make.exe -f "C:\Dokumente und Einstellungen\Gerald\Desktop\Makefile.win" all
    g++.exe -c main2.cpp -o main2.o -I"C:/Programme/Dev-Cpp 5.0 beta 
    9/include/c++/3.3.1"  -I"C:/Programme/Dev-Cpp 5.0 beta 9/include/c++/3.3.1/mingw32"  -I"C:/Programme/Dev-Cpp 5.0 beta 
    9/include/c++/3.3.1/backward"  -I"C:/Programme/Dev-Cpp 5.0 beta 9/lib/gcc-lib/mingw32/3.3.1/include"  -I"C:/Programme/Dev-Cpp 5.0 beta 
    9/include"  -I"C:/Qt4.0.0/include/Qt"  -I"C:/Qt4.0.0/include/Qt3Support"  -I"C:/Qt4.0.0/include/QtAssistant"  -I"C:/Qt4.0.0/include/QtCore"  
    -I"C:/Qt4.0.0/include/QtDesigner"  -I"C:/Qt4.0.0/include/QtGui"  -I"C:/Qt4.0.0/include/QtMotif"  -I"C:/Qt4.0.0/include/QtNetwork"  
    -I"C:/Qt4.0.0/include/QtNsPlugin"  -I"C:/Qt4.0.0/include/QtOpenGL"  -I"C:/Qt4.0.0/include/QtXml"  -I"C:/Qt4.0.0/include/QtSql"   
    
    In file included from C:/Qt4.0.0/include/QtGui/qapplication.h:1,
                     from C:/Qt4.0.0/include/QtGui/QApplication:1,
                     from main2.cpp:8:
    C:/Qt4.0.0/include/QtGui/../../src/gui/kernel/qapplication.h:27:37: QtCore/qcoreapplication.h: No such file or directory
    
    C:/Qt4.0.0/include/QtGui/../../src/gui/kernel/qapplication.h:28:31: QtGui/qwindowdefs.h: No such file or directory
    C:/Qt4.0.0/include/QtGui/../../src/gui/kernel/qapplication.h:29:27: QtCore/qpoint.h: No such file or directory
    C:/Qt4.0.0/include/QtGui/../../src/gui/kernel/qapplication.h:30:26: QtCore/qsize.h: No such file or directory
    C:/Qt4.0.0/include/QtGui/../../src/gui/kernel/qapplication.h:31:27: QtGui/qcursor.h: No such file or directory
    In file included from C:/Qt4.0.0/include/QtGui/qapplication.h:1,
                     from C:/Qt4.0.0/include/QtGui/QApplication:1,
                     from main2.cpp:8:
    C:/Qt4.0.0/include/QtGui/../../src/gui/kernel/qapplication.h:59: error: invalid function declaration
    In file included from C:/Qt4.0.0/include/QtGui/qfont.h:1,
                     from C:/Qt4.0.0/include/QtGui/QFont:1,
                     from main2.cpp:9:
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:27:31: QtGui/qwindowdefs.h: No such file or directory
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:28:28: QtCore/qstring.h: No such file or directory
    In file included from C:/Qt4.0.0/include/QtGui/qfont.h:1,
                     from C:/Qt4.0.0/include/QtGui/QFont:1,
                     from main2.cpp:9:
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:37: error: invalid function declaration
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:238: error: `QFont' has not been declared
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:239: error: non-member function `bool bold()' cannot have `const' method qualifier
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h: In function `bool bold()':
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:239: error: `weight' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:239: error: (Each undeclared identifier is reported only once for each function it appears in.)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:239: error: `Normal' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h: At global scope:
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:242: error: `QFont' has not been declared
    
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h: In function `void setBold(bool)':
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:243: error: `Bold' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:243: error: `Normal' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:243: error: `setWeight' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h: At global scope:
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:245: error: `QFont' has not been declared
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:246: error: non-member function `bool italic()' cannot have `const' method qualifier
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h: In function `bool italic()':
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:247: error: `style' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:247: error: `StyleNormal' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h: At global scope:
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:250: error: `QFont' has not been declared
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h: In function `void setItalic(bool)':
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:251: error: `StyleItalic' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:251: error: `StyleNormal' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:251: error: `setStyle' undeclared (first use this function)
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h: At global scope:
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:260: error: expected init-declarator before '&' token
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:260: error: expected `,' or `;' before '&' token
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:261: error: expected init-declarator before '&' token
    C:/Qt4.0.0/include/QtGui/../../src/gui/text/qfont.h:261: error: expected `,' or `;' before '&' token
    
    In file included from C:/Qt4.0.0/include/QtGui/qpushbutton.h:1,
                     from C:/Qt4.0.0/include/QtGui/QPushButton:1,
    
                     from main2.cpp:10:
    C:/Qt4.0.0/include/QtGui/../../src/gui/widgets/qpushbutton.h:27:35: QtGui/qabstractbutton.h: No such file or directory
    In file included from C:/Qt4.0.0/include/QtGui/qpushbutton.h:1,
                     from C:/Qt4.0.0/include/QtGui/QPushButton:1,
                     from main2.cpp:10:
    C:/Qt4.0.0/include/QtGui/../../src/gui/widgets/qpushbutton.h:32: error: invalid function declaration
    main2.cpp: In function `int main(int, char**)':
    main2.cpp:14: error: variable `QApplication app' has initializer but incomplete type
    main2.cpp:15: error: `QPushButton' undeclared (first use this function)
    main2.cpp:15: error: expected `;' before "quit"
    main2.cpp:16: error: `quit' undeclared (first use this function)
    main2.cpp:17: error: `QFont' has not been declared
    main2.cpp:17: error: `Bold' undeclared (first use this function)
    main2.cpp:17: error: `QFont' undeclared (first use this function)
    main2.cpp:18: error: `QObject' has not been declared
    main2.cpp:18: error: `clicked' undeclared (first use this function)
    main2.cpp:18: error: `SIGNAL' undeclared (first use this function)
    main2.cpp:19: error: `SLOT' undeclared (first use this function)
    main2.cpp:19: error: `connect' undeclared (first use this function)
    
    main2.cpp:22:2: warning: no newline at end of file
    
    make.exe: *** [main2.o] Error 1
    
    Ausführung beendet
    

    //Edit einwenig geschmälert



  • Es sieht eher so aus als ob er ein include verzeichnis vermisst. nämlich das include hauptverzeichnis von QT



  • sarfuan schrieb:

    //Edit: Hab das Designzerstörende Teil in ein File gebannt und downloadable gemacht (evilissimo)

    Ich hab extra mit Absicht keine quote- und keine code-Tags gemacht, damit das Design eben nicht zerstört wird. Wenn dein Browser (meiner tut's nicht :p) das Design trotzdem zerstört, ist er selber schuld 😉

    @rolfi:
    Du darfst NICHT das bin-Verzeichnis mit angeben. Also einfach nur C:/Programme/Dev-Cpp 5.0 beta ... dann funktioniert's 😉
    Ich weiß, in der Installationsanleitung steht explizit /bin angeben. Is aber falsch. Zumindest hat er bei mir nur ohne /bin MinGW gefunden 😉



  • Guckt mal was kommt wenn man configure.exe aufruft:

    This is the Qt/Windows Open Source Desktop edition.
    The Qt/Windows Open Source Desktop edition only supports the MinGW compiler.

    ...

    Hab die Datei qt-win-opensource-desktop-4.0.0.zip runtergeladen.



  • Halte ich als Entwickler für eine Frechheit. Von wegen Windows-GPL-Version, die funktioniert dann nur auf einer IDE mit einer bestimmten Konfiguration 👎

    Aber naja, sie dürfen es und ich muss mich damit abfinden auch weiterhin GUI-Applikationen in Java zu schreiben weil es C++ an brauchbaren Libraries mangelt 😞

    MfG SideWinder



  • Komisch schrieb:

    This is the Qt/Windows Open Source Desktop edition.
    The Qt/Windows Open Source Desktop edition only supports the MinGW compiler.

    Ist doch schon lange bekannt. Gab deswegen schon Diskussion bevor die finale 4.0.0 überhaupt veröffentlicht wurde.
    Ich finde es nur logisch und richtig von Trolltech. Schließlich handelt es sich um eine Open Source/GPL-Variante von Qt. Die Zielgruppe für diese Qt-Lizenz verwendet halt eben nicht das kommerzielle und teure VS.

    // edit:
    @evilissimo
    Willst du nicht die unnötigen Fehlermeldungen oder zumindest das code-Tag in rolfis Beitrag entfernen? Denn im Gegensatz zu meinem Template als normalen Text, zerstört das wirklich das Design bei einer 1024er Auflösung 😉



  • ok und warum hast du das nicht gleich gesagt? 😃



  • SideWinder schrieb:

    Halte ich als Entwickler für eine Frechheit. Von wegen Windows-GPL-Version, die funktioniert dann nur auf einer IDE mit einer bestimmten Konfiguration 👎

    Aber naja, sie dürfen es und ich muss mich damit abfinden auch weiterhin GUI-Applikationen in Java zu schreiben weil es C++ an brauchbaren Libraries mangelt 😞

    MfG SideWinder

    Falsch. Nur mit einem Compiler. Denn es gibt ja mehrere IDEs unter Windows für MinGW.

    MinGW Studio, DevC++, Code::Blocks



  • lol... schrieb:

    ok und warum hast du das nicht gleich gesagt? 😃

    Weil ich mich insgeheim darüber freue. Früher (naja ok, auch heute noch *seufz*) musste ich mit MinGW mir immer ein Bein ausreißen, um irgendwas zum Laufen zu bekommen und die VC++-Leute hatten das bequemste Leben.
    Endlich ist es mal andersrum 😃 🕶



  • Ich finde es nur logisch und richtig von Trolltech. Schließlich handelt es sich um eine Open Source/GPL-Variante von Qt.

    Klar, und hinter dem OpenSource-Gedanken steht unter anderem den Source nur auf einem bestimmten Compiler benützen zu können 👎

    Die Zielgruppe für diese Qt-Lizenz verwendet halt eben nicht das kommerzielle und teure VS.

    Für mich war es weder das eine noch das andere - wieso werde ich deswegen dann benachteiligt?

    MfG SideWinder



  • [quote="SideWinder"]

    Ich finde es nur logisch und richtig von Trolltech. Schließlich handelt es sich um eine Open Source/GPL-Variante von Qt.
    [/qutoe]
    Klar, und hinter dem OpenSource-Gedanken steht unter anderem den Source nur auf einem bestimmten Compiler benützen zu können 👎

    Stimmt doch gar nicht. Die Rede ist von "Support". Qt4 ist Open Source - mehr noch: GPL. Du kannst es auf jedem Compiler verwenden. Aber Trolltech hat, wegen der Zielgruppe eben, den MinGW besonders im Blick.
    Es ist nur eine Frage der Zeit, bis sich jemand die Mühe macht, und eine für VC++ angepasste Variante veröffentlicht. Und dass das jemand machen wird, das steht ja wohl völlig außer Frage ...



  • sarfuan schrieb:

    sarfuan schrieb:

    //Edit: Hab das Designzerstörende Teil in ein File gebannt und downloadable gemacht (evilissimo)

    Ich hab extra mit Absicht keine quote- und keine code-Tags gemacht, damit das Design eben nicht zerstört wird. Wenn dein Browser (meiner tut's nicht :p) das Design trotzdem zerstört, ist er selber schuld 😉

    @rolfi:
    Du darfst NICHT das bin-Verzeichnis mit angeben. Also einfach nur C:/Programme/Dev-Cpp 5.0 beta ... dann funktioniert's 😉
    Ich weiß, in der Installationsanleitung steht explizit /bin angeben. Is aber falsch. Zumindest hat er bei mir nur ohne /bin MinGW gefunden 😉

    hi, danke....wars nicht ganz @tutorialverfasser: bitte das in deinem tut ändern!! http://www.hoppelkoppel.de/docs/InstallationQt.pdf

    hab aber den lib ordner angegeben!? hm....

    nun kommt folgendes:

    main2.o(.text+0x17d):main2.cpp: undefined reference to `_imp___ZN12QApplicationC1ERiPPc'
    main2.o(.text+0x1c0):main2.cpp: undefined reference to `_imp___ZN11QPushButtonC1ERK7QStringP7QWidget'
    main2.o(.text+0x277):main2.cpp: undefined reference to `_imp___ZN5QFontC1ERK7QStringiib'
    main2.o(.text+0x295):main2.cpp: undefined reference to `_imp___ZN7QWidget7setFontERK5QFont'
    main2.o(.text+0x305):main2.cpp: undefined reference to `_imp___ZN5QFontD1Ev'
    main2.o(.text+0x32a):main2.cpp: undefined reference to `_imp___ZN5QFontD1Ev'
    main2.o(.text+0x3a9):main2.cpp: undefined reference to `_imp___ZN7QObject7connectEPKS_PKcS1_S3_N2Qt14ConnectionTypeE'
    main2.o(.text+0x3bb):main2.cpp: undefined reference to `_imp___ZN12QApplication4execEv'
    main2.o(.text+0x3d8):main2.cpp: undefined reference to `QPushButton::~QPushButton()'
    main2.o(.text+0x3ed):main2.cpp: undefined reference to `QApplication::~QApplication()'
    main2.o(.text+0x41c):main2.cpp: undefined reference to `QPushButton::~QPushButton()'
    main2.o(.text+0x449):main2.cpp: undefined reference to `QApplication::~QApplication()'
    main2.o(.text$_ZN7QWidget6resizeEii+0x2d):main2.cpp: undefined reference to `_imp___ZN7QWidget6resizeERK5QSize'
    main2.o(.text$_ZN7QStringD1Ev+0x20):main2.cpp: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
    main2.o(.text$_ZN7QStringC1EPKc+0x39):main2.cpp: undefined reference to `_imp___ZN7QString11shared_nullE'
    
    main2.o(.text$_ZN7QStringC1EPKc+0x69):main2.cpp: undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
    main2.o(.text$_ZN7QStringC1EPKc+0x80):main2.cpp: undefined reference to `_imp___ZN7QStringaSERKS_'
    
    collect2: ld returned 1 exit status
    make.exe: *** [Projekt2.exe] Error 1
    
    Ausführung beendet
    


  • binde libQtCore4.a libqtmain.a und libQtGui4.a ein

    afaik musst du auch noch den moc drüber jagen (aber da bin ich mir net so sicher)

    MfG

    //Edit libnamen korrigiert



  • meinst du mit binde libQtCore4.a libqtmain.a und libQtGui4.a ein...die lib ordner? warum .a? wo finde ich die und wie include ich die?

    MFG

    evilissimo schrieb:

    binde libQtCore4.a libqtmain.a und libQtGui4.a ein

    afaik musst du auch noch den moc drüber jagen (aber da bin ich mir net so sicher)

    MfG

    //Edit libnamen korrigiert



  • @rolfi:
    Verwende doch einfach mein Template 🙂
    Andernfalls musst du immer eine neues Projekt erstellen und dort die Libs per Hand hinzufügen, wie es in der Installationsanleitung halt steht.
    Mir war das auf jeden Fall zu blöd, deswegen kurz das Template zusammengewurschtelt. Probier's doch auch mal damit ...



  • sarfuan schrieb:

    @rolfi:
    Verwende doch einfach mein Template 🙂
    Andernfalls musst du immer eine neues Projekt erstellen und dort die Libs per Hand hinzufügen, wie es in der Installationsanleitung halt steht.
    Mir war das auf jeden Fall zu blöd, deswegen kurz das Template zusammengewurschtelt. Probier's doch auch mal damit ...

    Das ganz speziell auf deine Installation ausgerichtet ist und alle Libs einbindet auch wenn sie gar nicht benötigt werden :p



  • ok danke freunde;-)

    wie wend ich dein template an....copy paste?

    MFG



  • In dem Installer des MinGW Pakets stehts auch nochmal:

    The Open Source Edition supports the MinGW compiler.

    ...

    The commercial licensed Editions of Qt support the Microsoft Visual Studio compilers and optionally the Visual Studio IDE.



  • ............. schrieb:

    In dem Installer des MinGW Pakets stehts auch nochmal:

    The Open Source Edition supports the MinGW compiler.

    ...

    The commercial licensed Editions of Qt support the Microsoft Visual Studio compilers and optionally the Visual Studio IDE.

    Ja ist gut. Das wissen wir jetzt.


Anmelden zum Antworten