Seite 1 von 1

qmake ohne QT

Verfasst: 21. Oktober 2007 13:02
von AlphaWolf
Ich möchte qMake für ein anderes Project verwenden, welches keine QTLibraries benutzt (ja das kommt vor :lol: ).

Nun möchte ich dem Linker aber sagen, dass er nicht versuchen soll die ganzen QTLibs zu linken. Ich habe also folgendes in das pro File geschrieben:

Code: Alles auswählen

QMAKE_LFLAGS -= -mthreads -lQTMain - lQTGui4 -lQTCore4
Leider zeigt das keine Wirkung (das ganze steht immer noch in der gcc Kommandozeile).

Ich benutze WindowsXP mit Mingw32.

Verfasst: 21. Oktober 2007 14:20
von Christian81

Verfasst: 21. Oktober 2007 14:51
von AlphaWolf
Wie wärs mit nem kleinen Hinweis? Die Seite kenn ich nämlich auch.

Verfasst: 21. Oktober 2007 17:11
von Christian81
Naja dann kopiere ich eben die Stelle:
[quote Qt-Doku]
qt The target is a Qt application/library and requires the Qt library and header files. The proper include and library paths for the Qt library will automatically be added to the project. This is defined by default, and can be fine-tuned with the \l{#qt}{QT} variable.
[/quote]