问题描述
有没有建立一个能与工具链的Windows商店应用程序的方法吗? (而最终他们的MinGW在Linux上,因为如果它工作在一个称为Mingw工具链应该在另一个工作。)
Is there a way to build Windows Store applications with the Mingw toolchain? (And ultimately cross compile them from mingw on Linux, since if it works in one Mingw toolchain it should work in another.)
我想一个要求就是中的,但什么其他的东西在那里才考虑配送到商店? XAML? 32位或64位code?
I guess one requirement is to stick to the API:s allowed in the Windows Store app sandbox, but what other things are there to consider before distribution to the store? XAML? 32 or 64 bit code?
既然称为Mingw C ++不与MSVC ++ Link兼容,我认为没有(WRL)直接,你将无法使用,那么你需要配置称为Mingw使用头文件和库。此外,您将无法使用来描述你的用户界面,你必须手动创建你的UI在code。
You would need to use the Windows Runtime C++ Template Library (WRL) directly, you wouldn't be able to use C++/CX as Mingw doesn't support it. Other than that, I think you just need the Windows 8 SDK, then you need to configure Mingw to use the headers and libraries. Also, you won't be able to use XAML to describe your user interface, you'll have to manually create your UI in code.
而不是试图写入与MinGW和交叉使用Linux编译整个应用程序,你可以写与MinGW的核心库,然后写在使用Visual Studio防爆preSS(免费)库一个简单的用户界面包装。这样,你可以使用所有的不错的东西像XAML和裁判计数的实例。
Rather than attempt to write the entire application with mingw and cross compile it with linux, you can write your core libraries with mingw, then write a simple UI wrapper over the libraries using Visual Studio Express (free). That way you can use all the nice stuff like XAML and ref-counted instances.
这是我采取的方法 - 用C ++编写的库,然后它引用其他库的独立UI项目(使用XAML)。它运作良好。
This is the approach I have taken - using libraries written in C++, and then a separate UI project (using XAML) which references the other libraries. It works well.
这篇关于可以在Windows应用商店使用MinGW构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!