[Qt-interest] Qt deploy on windows from linux
Robert Hairgrove
evorgriahr at hispeed.ch
Thu Feb 5 18:30:10 CET 2009
Josue Barrios Rodriguez wrote:
> Hi list, I have a little question, I'm developing an small App on linux, and I
> want to compile for windows, but from linux; how can I do that?, how can I
> deploy app for windows from linux?
>
> Thanks in advance
The Microsoft VC++ 2003 Toolkit command-line compiler and linker works
just fine under the latest Wine version on Linux Ubuntu 7.04 (don't know
about later MSVC versions, though). However, I wasn't able to compile Qt
4.4.3 itself with it on Linux under Wine from the win-32 sources due to
some problems WRT how the Qt build system will (try to) rename temporary
files generated by the MS linker. But I didn't have that problem on
native Windows (probably having to do with file system permissions which
are not an issue on Windows).
So if you can compile and build small programs from a DOS/console window
under Wine, and if you have a binary shared distribution of Qt (DLL's),
it should work. But be sure to test everything well. Of course, you will
almost certainly also need some version of the Microsoft Platform SDK,
even when developing with Qt (please, somebody correct me if this is wrong!)
Note that in order to build anything (on Windows or using Wine) with
this compiler other than statically built, and lacking a full Visual
Studio, you will have to generate at least one import library for
MSVCPRT.DLL from a DEF file which can be found here:
http://root.cern.ch/root/Procedure/Procedure%20to%20install%20the%20free%20Microsoft%20Visual%20C.htm
(alternative link: http://tinyurl.com/6hg224 )
The one for MSVCRT.DLL comes with the Platform SDK, though. Let me know
if you need further information.
More information about the Qt-interest-old
mailing list