-
Notifications
You must be signed in to change notification settings - Fork 474
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 Linux results in: "No windir
environment variable found
#143
Comments
In order to generate the projection, the metadata files that define the WinRT API surface are required. Normally on a Windows installation, you can find these metadata files in a directory like For your situation, I'm not sure what's the best way forward, as you also need other libs. In order for the projection to work, it needs to be able to call into If you can define a windir environment variable that will point to the correct metadata and provide the required libs, then you might be able to get this to work. No promises though, I don't think any of us have tried this on any of the Linux distros yet. At the moment only *-windows-msvc is supported, (see #142). |
The code itself is portable. We have had versions of WinRT support written in C++ that run on Linux. But as Robert points out, metadata is required to describe available APIs and certain PAL functions are required for loading libraries. So we could support this in future, but it is not an immediate goal. If this is something that folks would like to do, feel free to chime in on this issue and let us know. |
Okay, thanks for clarifying that. Would it be possible to add that info to the README? Definitely wasn't clear that this only supports building on Windows. |
I'm on x86_64 Manjaro running Rust trying to build this library. It'd be helpful to know what targets (as defined by Rust) are supported. I'm trying to compile for
x86_64-pc-windows-gnu
(x86_64-pc-windows-msvc
has the same error):The text was updated successfully, but these errors were encountered: