Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Cross compilation to Windows
Beberd last edited by
I am on linux system and I try to compile my program for windows.
@qmake -spec win32-g++ -o win32/
And I have this error:
@ -I'/usr/share/qt4/mkspecs/win32-g++' -o release/main.o ../main.cpp
cc1plus: erreur: unrecognized command line option ‘-mthreads’
make: *** [release/main.o] Erreur 1
Could you see where is the problem?
koahnig last edited by
Well, the compiler indicates that the command line option '-mthreads' is not known. You need to find where it is set.
However, are you sure that it should work that way?
It looks a bit as you are simply using the win32 compiler settings with your standard linux compiler. AFAIK that is not going to work.
TioRoy last edited by
Some linux distributions have a package named "mingw32-qt" (and others) to cross compile Qt sources.