Kdevelop und zusätzliche Libs einbinden in qmake Projekt
-
Hi
Wie kann ich wenn ich ein qmake basierendes Project erstellt habe zusätzliche libs bzw. linker Bibliotheken einbinden z.B. bräuchte ich den libxml2 Support und die Image Magick Bibliothek ?
Wenn man normales c++ basierenden Project erstellt dann gibt es ja im Project Optionen den Punkt "Configure Options" nur gibt es unter qmake basierendes Project keine dieser Einstellungen mehr !
MFG
xmarvel
-
per hand in die .pro-datei von deinem projekt eintragen:
LIBS
This variable contains a list of libraries to be linked into the project. If you are more comfortable with the Unix convension of -L/-l flags you are free to use them in a cross-platform manner and qmake will do the correct thing with these libraries on Windows (namely this means passing the full path of the library to the linker). The only limitation to this is the library must exist, for qmake to find which directory a -l lib lives in.
For example:
unix:LIBS += -lmath -L/usr/local/lib
win32:LIBS += c:\mylibs\math.lib(http://www.esrf.fr/computing/bliss/qt/html/qmake-manual-7.html)