Qt 4.1 (OpenSource) Build Debug Libraries schlägt fehl

Verschiedenes zu Qt
Antworten
dx4
Beiträge: 2
Registriert: 6. Februar 2006 15:03
Kontaktdaten:

Qt 4.1 (OpenSource) Build Debug Libraries schlägt fehl

Beitrag von dx4 »

Hallo zusammen,

ich verwende die Qt 4.1.0 OpenSource Edition für WinXP. Beim Erstellen der Debug Libraries über's Startmenü bricht die Verarbeitung mit folgender Ausgabe ab:
  • Qt is now configured for building. Just run mingw32-make.
    To reconfigure, run mingw32-make clean and configure.

    (cd winmain && mingw32-make -f Makefile debug)
    mingw32-make[1]: Entering directory `C:/Qt/4.1.0/src/winmain'
    mingw32-make -f Makefile.Debug
    mingw32-make[2]: Entering directory `C:/Qt/4.1.0/src/winmain'
    g++ -c -g -g -Wall -frtti -fexceptions -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEF
    ILE_SUPPORT -DQT_EDITION=QT_EDITION_DESKTOP -DQT_NEEDS_QMAIN -DQT_NO_CAST_TO_ASC
    II -DQT3_SUPPORT -DQT_MOC_COMPAT -I"C:/Qt/4.1.0/include" -I"tmp" -I"C:/Qt/4.1.0/
    include/QtCore" -I"C:\Qt\4.1.0\include\qtmain" -I"tmp" -I"C:/Qt/4.1.0/include/Ac
    tiveQt" -I"tmp\moc\debug_shared" -I"." -I"C:/Qt/4.1.0/mkspecs/win32-g++" -o tmp\
    obj\debug_shared\qtmain_win.o qtmain_win.cpp
    ar -ru "..\..\lib\libqtmaind.a" tmp\obj\debug_shared\qtmain_win.o
    mingw32-make[2]: Leaving directory `C:/Qt/4.1.0/src/winmain'
    mingw32-make[1]: Leaving directory `C:/Qt/4.1.0/src/winmain'
    (cd corelib && mingw32-make -f Makefile debug)
    mingw32-make[1]: Entering directory `C:/Qt/4.1.0/src/corelib'
    mingw32-make -f Makefile.Debug
    mingw32-make[2]: Entering directory `C:/Qt/4.1.0/src/corelib'
    g++ -x c++-header -c -g -g -Wall -frtti -fexceptions -DQT_SHARED -DQT_THREAD_SUP
    PORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD
    _CORE_LIB -DQT_MAKEDLL -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_DLL -I"C:/Qt/4.1.0/inc
    lude" -I"C:/Qt/4.1.0/include/QtCore" -I"tmp" -I"C:/Qt/4.1.0/src/corelib/global"
    -I"..\3rdparty\zlib" -I"C:/Qt/4.1.0/include/ActiveQt" -I"tmp\moc\debug_shared" -
    I"." -I"C:/Qt/4.1.0/mkspecs/win32-g++" -o tmp\obj\debug_shared\qt_pch.h.gch\c++
    global\qt_pch.h
    g++: language c++-header not recognized
    g++: global\qt_pch.h: linker input file unused because linking not done
    g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -g -Wall -frtti -fexceptions -D
    QT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_EDITION=QT_E
    DITION_DESKTOP -DQT_BUILD_CORE_LIB -DQT_MAKEDLL -DQT3_SUPPORT -DQT_MOC_COMPAT -D
    QT_DLL -I"C:/Qt/4.1.0/include" -I"C:/Qt/4.1.0/include/QtCore" -I"tmp" -I"C:/Qt/4
    .1.0/src/corelib/global" -I"..\3rdparty\zlib" -I"C:/Qt/4.1.0/include/ActiveQt" -
    I"tmp\moc\debug_shared" -I"." -I"C:/Qt/4.1.0/mkspecs/win32-g++" -o tmp\obj\debug
    _shared\qglobal.o global\qglobal.cpp
    global/qglobal.cpp: tmp\obj\debug_shared\qt_pch.h: No such file or directory
    mingw32-make[2]: *** [tmp\obj\debug_shared\qglobal.o] Error 1
    mingw32-make[2]: Leaving directory `C:/Qt/4.1.0/src/corelib'
    mingw32-make[1]: *** [debug] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/4.1.0/src/corelib'
    mingw32-make: *** [debug-corelib] Error 2
Es scheint in der Tat etwas in diversen Qt-Verzeichnissen zu fehlen, obwohl ich meine mich an die Anleitung gehalten zu haben.

Ich würde mich sehr freuen, wenn mir jemand einen Tipp geben könnte, wie ich an dieser Stelle weiter komme.

Viele Grüße
Querdenker
Beiträge: 99
Registriert: 1. Dezember 2005 17:44
Wohnort: Karlsruhe

Beitrag von Querdenker »

Hi,

prüfe bitte mal die folgende Header:

Qt/4.1.0/Src/Corelib/global/qconfig.h

in dieser Header findest du

// Ot Edition

hier muss mit #define definiert sein:

#define QT_EDITION QT_EDITION_DESKTOP

oder

#define QT_EDITION QT_EDITION_OPENSOURCE

wenn da nix steht: Hinzufügen ;)
e Grüssle au
Q... ;)
dx4
Beiträge: 2
Registriert: 6. Februar 2006 15:03
Kontaktdaten:

Beitrag von dx4 »

Hallo Querdenker,

es steht defaultmässig bereits drin:

Code: Alles auswählen

// Qt Edition
#ifndef QT_EDITION
#  define QT_EDITION QT_EDITION_OPENSOURCE
#endif
Ich habe inzwischen erfolglos probiert in diesem File etwas zu verändern, wie z.B. QT_EDITION_OPENSOURCE in QT_EDITION_DESKTOP zu ändern, so wie es bei anderen Problemen wohl hilfreich war.

Das Dumme ist nur, wenn ich den Befehl zum Erstellen der Bibliothek im Startmenue anklicke, wird die Datei qconfig.h neu generiert, und es steht wieder der alte Default-Kram drin.

Sorry, so geht es leider nicht. Aber trotzdem danke für den Hinweis.

:wink:
Antworten