[Bug] qmake über mehrere Teilprojekte
Verfasst: 18. Dezember 2005 12:54
Hallo ich habe folgendes Problem. Ich habe eine Projekt bestehend aus dem Hauptprogramm und ein paar Plug-ins. Das ganze soll zusammen übersetzte werden und das Ergebnis in einem gemeinsamen Verzeichnis landen. Doch irgenwie klappt das nicht mit der globalen Variabel für den Pfad. Hier die Struktur des Ganzen:
│ Makefile
│ alles.pro
│ Vorgaben.pri
│
└───Bestandteile
├───Plugin1
│ Plugin1.pro
└Quellen
xx.cpp
.
.
.
└───Hauptprogramm
│ Makefile
│ Makefile.Debug
│ Makefile.Release
│ Hauprprogramm.pro
│
└───Quellen
haupt.cpp
Das stehen in den Dateien:
alles.pro
Vorgabe.pri
Hauptprogramm.pro:
nur leider klappt das mit der Variable Pfad nicht:(
nach dem aufruf von qmake und make passiert nix
keine Fehlermeldung und auch der Compiler wird nicht ageworfen.
Das einzige, was man erhält ist:
cd Bestandteile\Hauptprogramm && mingw32-make
mingw32-make[1]: Entering directory `C:/c++/Projekte/SmartCard/Entwicklung/Bestandteile/Hauptprogramm'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `C:/c++/Projekte/SmartCard/Entwicklung/Bestandteile/Hauptprogramm'
mingw32-make[2]: Nothing to be done for `first'.
mingw32-make[2]: Leaving directory `C:/c++/Projekte/SmartCard/Entwicklung/Bestandteile/Hauptprogramm'
mingw32-make[1]: Leaving directory `C:/c++/Projekte/SmartCard/Entwicklung/Bestandteile/Hauptprogramm'
│ Makefile
│ alles.pro
│ Vorgaben.pri
│
└───Bestandteile
├───Plugin1
│ Plugin1.pro
└Quellen
xx.cpp
.
.
.
└───Hauptprogramm
│ Makefile
│ Makefile.Debug
│ Makefile.Release
│ Hauprprogramm.pro
│
└───Quellen
haupt.cpp
Das stehen in den Dateien:
alles.pro
Code: Alles auswählen
TEMPLATE =subdirs
PFAD =C:/c++/Projekte/SmartCard/Entwicklung
SUBDIRS += Bestandteile/Hauptprogramm\
Bestandteile/Plugin1\
Bestandteile/PluginX
Code: Alles auswählen
CONFIG += qt release
#Mit Debug Infos??
CONFIG += MEINDEBUG
#Müll entfernen
#QMAKE_POST_LINK =strip -s $(TARGET)
message(Pfad ist $$PFAD)
DESTDIR = $$PFAD/bin
MOC_DIR = $$PFAD/tmp/moc
OBJECTS_DIR = $$PFAD/tmp/obj
UI_HEADERS_DIR = $$PFAD/tmp/ui_headers
Code: Alles auswählen
include (../../Vorgaben.pri)
CONFIG(MEINDEBUG)
{
message("Erstelle Version mit Hilfsmeldungen")
DEFINES +=MEINDEBUG
win32:config+=console
}
TEMPLATE = app
TARGET = tests
SOURCES += Quellen/haupt.cpp
nach dem aufruf von qmake und make passiert nix
keine Fehlermeldung und auch der Compiler wird nicht ageworfen.
Das einzige, was man erhält ist:
cd Bestandteile\Hauptprogramm && mingw32-make
mingw32-make[1]: Entering directory `C:/c++/Projekte/SmartCard/Entwicklung/Bestandteile/Hauptprogramm'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `C:/c++/Projekte/SmartCard/Entwicklung/Bestandteile/Hauptprogramm'
mingw32-make[2]: Nothing to be done for `first'.
mingw32-make[2]: Leaving directory `C:/c++/Projekte/SmartCard/Entwicklung/Bestandteile/Hauptprogramm'
mingw32-make[1]: Leaving directory `C:/c++/Projekte/SmartCard/Entwicklung/Bestandteile/Hauptprogramm'