Seite 1 von 1

Kompelieren unter Windows

Verfasst: 18. November 2010 21:28
von Irods
Hi Leute.
Ich versuch jetzt schon eine halbe Ewigkeit
ein QT unter Windows so zu kompilieren,
dass es auch auf anderen Windows-Installationen
läuft.
Das Problem ist natürlich, dass nicht alle dlls immer vorhanden sind.
Ich weiss das ich die in der *.pro Datei hinzufügen muss.
Ich weiss nur nicht welche das jetzt immer sind, dauernd fehlt irgendetwas.
...ja hab auch schon im Forum gesucht.
Würde mich freuen wenn jemand mal einfach seine
gesammte "LIBS" Zeile bzw. seine "QMAKE_LFLAGS" Zeile posten würde.

Folgende dll "nervt" mich ganz besonders: libstdc++-6.dll.

MfG Irods
Schon ma thx ;)

Re: Kompelieren unter Windows

Verfasst: 21. Dezember 2010 20:25
von koppi
Irods hat geschrieben: Folgende dll "nervt" mich ganz besonders: libstdc++-6.dll.
Du verwendest anscheinend die MinGW-Variante von Qt.

Probiers doch mal mit der Visual Studio 2008-Variante (MS Visual Studiuo 2008 Express ist kostenlos) und lies dir den Teil über statisches Linken im englischen Forum durch: http://www.qtnode.net/wiki/Qt4_with_Vis ... _C_runtime

Aber Achtung: statisch gelinkte Programme werden von den Qt-Entwicklern nicht besonders gut unterstützt:
Qt is built using the -MD(d) switch, which links against the dynamic C/C++
runtime libraries. This is necessary as we have experienced memory problems
when using anything but the -MD(d) flag, and in general, it is recommended to
use. You should not alter this flag yourself for your application, because it
conflicts with how the Qt library is built if you change the flag to -MT. You
should not change it for Qt either, since it is likely to cause problems.
siehe auch: http://developer.qt.nokia.com/faq/answe ... ime_librar