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

Feature Request: Windows UWP Support #2544

Closed
nathan-fps opened this issue Nov 19, 2018 · 10 comments
Closed

Feature Request: Windows UWP Support #2544

nathan-fps opened this issue Nov 19, 2018 · 10 comments
Assignees
Labels

Comments

@nathan-fps
Copy link

Hi Folks,

Is the Universal Windows Platform (ie. Windows Store) a supported platform? If not, is it a part of your feature roadmap? I didn't see any build instructions for this platform and a naive,

> mkdir cmake_build
> cd cmake_build
> cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION='10.0' ..
> cmake --builld .

doesn't seem to work. Support for this platform would be amazing if possible.

Best,
Nathan

@Bjoe
Copy link
Contributor

Bjoe commented Nov 20, 2018

I have not much clue about "Universal Windows Platform" or Windows it self, but from cmake :-)

What are you mean with:

didn't see any build instructions for this platform

Is cmake failing to configure the project or compile error or did cmake --build . "nothing"?

Can you "paste" the cmake output here?

I see here Using Cmake to build Universal Windows App they execute cmake with:
CMake -G "Visual Studio 14 2015" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10
Means, without 64-bit support? version 10 instead of 10.0?

@nathan-fps
Copy link
Author

nathan-fps commented Nov 20, 2018

Thanks for the speedy reply!

I'm not particularly familiar with Windows, but from what I understand, applications on the Windows Store run in a sandboxed environment. The restricted API available in that sandboxed environment is the Universal Windows Platform API. You can find some more information here.

cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION='10.0' successfully configures the project. Compiling with cmake --build . fails. I'll paste the compilation errors here tomorrow when I have have access to a Windows machine again.

@Bjoe
Copy link
Contributor

Bjoe commented Nov 22, 2018

If the compiling is failing, it looks for me that the build system is fine.... but I will wait for your compile output.

@nathan-fps
Copy link
Author

Right sorry for the delay! Here is the script used for build and configure as well as the outputs of each: gist

@nathan-fps
Copy link
Author

It fails with what I suspect are forbidden calls to the Win32 API.

@nathan-fps
Copy link
Author

I should say, you're right that the build system is fine (well almost, it fails to find the message compiler on its own from my experience). Support for UWP would mean changes to the library itself.

@Bjoe
Copy link
Contributor

Bjoe commented Nov 23, 2018

Ok, for the message compiler I can investigate to improve this. For the UWP support I must hand over to @aleks-f or @obiltschnig or some other contributors they have more knowledge about Windows. Sorry, stay tuned it may take some time....

@obiltschnig
Copy link
Member

From what I know about UWP, a port will be quite complicated, because basically the entire platform abstraction layer needs to be redone. In addition, UWP APIs use asynchronous I/O (for files and network) and it seems iostreams are not supported (or at least weren't when I last checked a couple of years ago). So probably not going to happen soon, at least not from @aleks-f or myself, unless someone pays for the work.

@nathan-fps
Copy link
Author

@obiltschnig Thanks for the update. Makes sense

@github-actions
Copy link

This issue is stale because it has been open for 365 days with no activity.

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

No branches or pull requests

4 participants