[CMake] Cross compiling from linux to windows using wine-based visual studio compilers
Daniel Russel
drussel at gmail.com
Tue Oct 16 00:46:32 EDT 2012
On Oct 15, 2012, at 9:35 PM, "Alan W. Irwin" <irwin at beluga.phys.uvic.ca> wrote:
> On 2012-10-15 21:02-0700 Daniel Russel wrote:
>
>> I'm trying to get cross compilation of a simple library working to
> build a windows library on a linux box using the visual studio
> compilers.
>
> I don't get it. How can visual studio compilers execute properly on Linux?
> Don't they need to be run on a Windows platform?
Using Wine. I probably should have mentioned it. And perhaps cross-compilation is not quite the right term. Is there a better one? We have been using them to compile other projects built with scons.
>
> Regardless of the answer to that question you might want to try
> building your library with the Windows version of CMake and the visual
> studio compilers on the Wine Windows platform on Linux. Of course,
> that is no longer cross-compiling since you are building your Windows
> library directly on a Windows platform (Wine).
Good idea. I'll give the windows version of cmake a try.
> I have recently had good success with software builds using MinGW/MSYS
> and the _Windows version of CMake on Wine. So if visual studio
> compilers don't work on Wine because of some Wine incompatibility with
> proprietary Windows, you can always move with a fair degree of
> confidence to using MinGW/MSYS (and probably MinGW alone if you have
> no need for the MSYS tools) on Wine.
Thanks.
More information about the CMake
mailing list