Need help with msvc-wine?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

mstorsjo
150 Stars 17 Forks 38 Commits 8 Opened issues

Description

Scripts for setting up and running MSVC in Wine on Linux

Services available

!
?

Need anything else?

Contributors list

# 2,445
C++
C
vlc
webm
30 commits
# 45,001
Nim
Crystal
game-fr...
procedu...
3 commits
# 97,106
nano
Shell
cryptoc...
C
1 commit
# 109,186
OCaml
zap
structu...
Shell
1 commit
# 608,389
Shell
C
Objecti...
1 commit

Cross compilation with MSVC on Linux

This is a reproducible Dockerfile for cross compiling with MSVC on Linux, usable as base image for CI style setups.

This downloads and unpacks the necessary Visual Studio components using the same installer manifests as Visual Studio 2017/2019's installer uses. Downloading and installing it requires accepting the license, available at https://go.microsoft.com/fwlink/?LinkId=2086102 for the currently latest version.

As Visual Studio isn't redistributable, the resulting docker image isn't either.

Build the docker image like this:

docker build .

After building the docker image, there are 4 directories with tools, in

/opt/msvc/bin/
, for all architectures out of
x86
,
x64
,
arm
and
arm64
, that should be added to the PATH before building with it.

The installer scripts also work fine without docker; just run the following two commands:

./vsdownload.py --dest 
./install.sh 

The unpacking requires recent versions of msitools (0.98) and libgcab (1.2); sufficiently new versions are available in e.g. Ubuntu 19.04.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.