Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-compiling from macOS to Windows #29

Open
mzji opened this issue Nov 16, 2016 · 0 comments
Open

Cross-compiling from macOS to Windows #29

mzji opened this issue Nov 16, 2016 · 0 comments

Comments

@mzji
Copy link

mzji commented Nov 16, 2016

This article contains some information about how to build Windows binaries in macOS without an Windows environment (you need copy some libraries and header files from a Windows system which has VS/VC++ build tools installed, but don't need a Windows system to build binaries). Maybe we could write a tutorial about this? Actually, I think the steps described in the article also applies to building Windows binaries in Linux distributions.

PS: All files needed to be copied from the Windows environment (as described in the article) are:

  1. A part of WIndows 10 SDK (the import libraries of Win32 User Mode DLLs (um) and the static libraries and import libraries of the Universal C language RunTime (ucrt))
  2. Static libraries, import libraries, and object files of the MSVCRT, which is a part of the MSVC

The building process do not need MSVC (even the linker). All these files could be extracted from the Visual Studio Community version, which could be downloaded freely from the Microsoft official website. A bash/python/ruby script could do that easily and automatically. For the legit problem, I think the situation is basically same with installing Windows fonts in Wine. However, this needs to be confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant