I'm very interested in using Linux / GCC for cross-compiling to Microsoft SUA (Subsystem for Unix Applications) format (I have SUA 6.1 as part of Windows 7, 64-bits). Using SUA to natively compile programs and their dependencies is a hassle given the general lacklustre support by MS, no real package manager, etc. What is the best way to do this using Linux? I am open to other approaches, but personally envision Linux as part of the solution. If there are better cross-compilers for the job I'd like to know- seems that I'd have to opt for an older distro (according to GNU webpage, SUA support ended with GCC 3.3)
我对使用Linux / GCC交叉编译到Microsoft SUA (Unix应用程序子系统)格式非常感兴趣(我有SUA 6.1作为Windows 7的一部分,64位)。使用SUA本地编译程序和它们的依赖是一件麻烦事,因为MS提供了一般的无生气的支持,没有真正的包管理器等等。我对其他方法持开放态度,但我个人认为Linux是解决方案的一部分。如果有更好的交叉编译器来做我想知道的工作,我似乎必须选择一个更旧的发行版(根据GNU的网页,SUA支持以GCC 3.3结尾)
2 个解决方案
#1
3
Gentoo has a Prefix target for Interix. You can try this but I'm not sure if it's up-to-date. It is basically a Gentoo installation (with package manager) inside your Interix system.
Gentoo有一个用于Interix的前缀目标。你可以试试这个,但我不确定它是否最新。它基本上是一个Gentoo安装(带有包管理器)在您的Interix系统中。
The Prefix solution should be easier to maintain that cross-compiling.
前缀解决方案应该更容易维护交叉编译。
#2
0
You can use "mingw" as an alternative compiler for windows to compile Linux applications.
您可以使用“mingw”作为windows的替代编译器来编译Linux应用程序。
#1
3
Gentoo has a Prefix target for Interix. You can try this but I'm not sure if it's up-to-date. It is basically a Gentoo installation (with package manager) inside your Interix system.
Gentoo有一个用于Interix的前缀目标。你可以试试这个,但我不确定它是否最新。它基本上是一个Gentoo安装(带有包管理器)在您的Interix系统中。
The Prefix solution should be easier to maintain that cross-compiling.
前缀解决方案应该更容易维护交叉编译。
#2
0
You can use "mingw" as an alternative compiler for windows to compile Linux applications.
您可以使用“mingw”作为windows的替代编译器来编译Linux应用程序。