msvc2013onwine
msvc2013onwine copied to clipboard
This script helps you set up an MSVC 2013 Update 4 installation on Linux to run under wine.
Instructions
Before you start, make sure you have a Windows machine with a working Python environment (I have used the Python that comes with MozillaBuild) with lots of free disk space.
On the Windows machine, first download and install Visual C++ 2013 Community Edition from http://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx. Then, run python package_from_installed.py
. It will take a while, and once it finishes successfully, there should be a
On the Linux machine, extract the ZIP package somewhere. Then, you can run MSVC like this:
$ cd /path/to/win_toolchain_2013
$ export INCLUDE="$PWD/VC/include;$PWD/win8sdk/Include/shared/;$PWD/win8sdk/Include/um/;$PWD/win8sdk/Include/winrt/"
$ export LIB="$PWD/VC/lib;$PWD/win8sdk/Lib/winv6.3/um/x86"
$ echo "#include
test.cpp /media/ehsan/KINGSTON/win_toolchain_2013/VC/include\xlocale(337) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc Microsoft (R) Incremental Linker Version 12.00.31101.1 Copyright (C) Microsoft Corporation. All rights reserved.
/out:test.exe test.obj $ wine ./test.exe Hello from MSVC
Acknowledgements
Thanks to the Chromium project's depot_tools. The package_from_installed.py script originally comes from commit 797060631a486e61dec3bab8b30f35765328660f of that project.