Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Inquiry: Windows Phone 8.1 / 10, Windows Runtime Support #135

Open
heefan opened this issue Apr 12, 2017 · 5 comments
Open

Inquiry: Windows Phone 8.1 / 10, Windows Runtime Support #135

heefan opened this issue Apr 12, 2017 · 5 comments

Comments

@heefan
Copy link

heefan commented Apr 12, 2017

Hi Ruslo,
Shall I know does polly support Windows Phone 8.1, Windows Phone 10, UWP and Windows Runtime toolchain and Windows CppUnitTestFramework ? Thanks. I did not find them out.

@ruslo
Copy link
Owner

ruslo commented Apr 12, 2017

Shall I know does polly support Windows Phone 8.1, Windows Phone 10

There is no such toolchains, never used it. If it's supported by CMake it should be not hard to add.

UWP and Windows Runtime toolchain and Windows CppUnitTestFramework

I even didn't know what it is, sorry :)

@heefan
Copy link
Author

heefan commented Apr 12, 2017

No problem.

Microsoft try to promote Windows Runtime Component on Windows 10 and Windows Phone 10, which is called universal windows platform (UWP). However, in Windows 8.1 and Windows Phone 8.1, they are called Universal App, and Windows Runtime Component was introduced that time if I am not wrong. Windows Runtime Component is similar with .NET framework.

I have tried to use the following command to generate UWP project,

cmake .. -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -G "Visual Studio 2015"

Frankly speaking, it is far away from my expectation.
I realised OpenCV support winrt.
But only for Windows Phone/Store 8.0 and 8.1

Never mind anyway. ;)


Microsoft CppUnitTestFramework is simialr with iOS XCTest framework
Nowdays source code project alwasy goes alone with unit test project as in one solution.
Similarly, I would like to know whether Polly is able to generate Xcode project file with XCTest support on iOS ?

I have tried XCTest work with macOS framework and App, but failed in iOS project. ;(
Reference: CMake XCTest sample


Thanks

@ruslo
Copy link
Owner

ruslo commented Apr 12, 2017

I have tried to use the following command to generate UWP project, ... Frankly speaking, it is far away from my expectation

Well if this doesn't work with CMake it will not work for Polly.

I realised OpenCV support winrt. But only for Windows Phone/Store 8.0 and 8.1

This is something that can be added to Polly.

Microsoft CppUnitTestFramework is simialr with iOS XCTest framework

Not using XCTest too :)

Similarly, I would like to know whether Polly is able to generate Xcode project file with XCTest support on iOS ?

This is something out of scope of Polly as far as I understand. According to this code it's not about toolchains.

@ikliashchou
Copy link
Contributor

Similarly, I would like to know whether Polly is able to generate Xcode project file with XCTest support on iOS ?
This is something out of scope of Polly as far as I understand. According to this code it's not about toolchains.

The issue with XCTest, iOS support and polly toolchain is the CMAKE_OSX_SYSROOT value.

As per your answer here you always set it to "iphoneos", while XCTest unit testing of frameworks is allowed only for simulator. This is why XCTest symbols are not found for x86_64 architecture.

So if you change CMAKE_OSX_SYSROOT to "iphonesimulator" in polly iOS toolchain, XCTest will work.

Just checked on the same above mentioned project with changed polly/iOS-10-3.cmake toolchain and it works.

Is there a way to make XCTest work with iOS & polly toolchain without patching?

Thanks

@ruslo
Copy link
Owner

ruslo commented Jun 2, 2017

@ikliashchou Please open separate issue about XCTest, it's not related to Windows Phone support :)

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

No branches or pull requests

3 participants