Hello,
for Windows there exists MinGW 64 bit compiler. You can download one e.g. from http://http://tdm-gcc.tdragon.net/download. However, this is only the compiler, no precompiled Qt environment. For using Qt with this compiler, you have to compile it yourself.
For Linux there exists MinGW 64 bit cross compiler, i.e. it is a Linux binary that produces code that runs on Windows. For this cross compiler there also exists a precompiled Qt environment. This consists of the libraries, dlls, ... for Windows. These libraries are used by the linker of the cross compiler tool chain to produce the Windows exe file. So on Linux I do not have to compile the Qt cross environment myself. I just install it from the repositories.
Which is why I asked if you could:
simply copy the .lib files over to the linux PC for linking?
instead of building the Qt link libraries (and DLLs) on linux using the cross-compiler.
Where do you get the .lib files for Qt from? I couldn't find any pre-compiled Qt environment compatible with MinGW64. So what would you want to copy to Linux?
Again: I do NOT need to compile the Qt libraries and dlls on Linux. They are provided by the Linux repositories. As an example, I have installed the 32 bit environment in a VM running Linux, and it gives me the following files for Qt:
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtCore4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtDBus4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtDeclarative4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtMultimedia4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtNetwork4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtTest4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtXml4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtXmlPatterns4.dll
/usr/i686-w64-mingw32/sys-root/mingw/lib/qt4
/usr/i686-w64-mingw32/sys-root/mingw/lib/qt4/plugins
/usr/i686-w64-mingw32/sys-root/mingw/lib/qt4/plugins/accessible
...
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtCore4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtDBus4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtDeclarative4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtMultimedia4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtNetwork4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtTest4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtXml4.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/QtXmlPatterns4.dll
/usr/i686-w64-mingw32/sys-root/mingw/lib/qt4
/usr/i686-w64-mingw32/sys-root/mingw/lib/qt4/plugins
/usr/i686-w64-mingw32/sys-root/mingw/lib/qt4/plugins/accessible
...
To copy to clipboard, switch view to plain text mode
Same is available for mingw64 and Qt5, but currently I do not have it installed in my VM.
Of course, if there is no Mingw64 for Qt on Windows then it is a moot point, but the same principle should apply no matter which library you need to link to.
As a summary: MinGW64 is running on Windows producing Windows 64 bit exe files. There are no Qt binaries bundled with this compiler.
Best regards
ars
Bookmarks