From FedoraProject

< MinGW
Revision as of 21:46, 11 November 2010 by Epienbro (Talk | contribs)

Jump to: navigation, search


Tips and tricks for using the Windows cross-compiler

Compiling QT applications and libraries

When compiling QT-based applications and libraries the compilation may fail with the message that the library QtGui could not be found. To resolve this you can use the following command:

qmake-qt4 -spec win32-g++-cross

(See http://www.mail-archive.com/mingw@lists.fedoraproject.org/msg00442.html for the rationale about this)

For Fedora 13 or older you can use:

qmake-qt4 -spec win32-fedora-cross QT_LIBINFIX=4

Using static libraries




If having trouble during ./configure

Try mingw32-configure!

If having trouble with cmake

Try mingw32-cmake!

Create a static executable with cmake

mingw32-cmake -DCMAKE_EXE_LINKER_FLAGS=-static ...