Building Pixy libraries for Universal Windows Platform

Added by Victor D over 1 year ago

Hi All,
Has anyone been able to build Pixy libraries in Universal Windows Platform (UWP)?

My robotic application is written in C#/Visual Studio 2015. It runs on Raspberry PI 2 under Windows 10 IoT Core which does not support Win32 libraries and requires UWP only. I am now trying to add Pixy to my already working robot.

First off, I built Pixy usb code for .NET using VS 2015 without changing the existing platform. Many thanks to the developer for posting the following code:

Note that this code still uses BOOST for functions available in standard C++ libraries. I followed this advice to get rid of all BOOST references:

Having built both pixyusblib and libusb for Win32 I ended up with a working Windows 10 app for .NET running in VS 2015 Community edition and was capturing blocks in my C# wrapper. Yes!

That was the easy part. In order to build this code in UWP I used these guidelines:

Replacing WindowsTargetPlatformVersion with the corresponding lines in project files changed the platform to UWP as expected. As a result, the pixyusblib module built successfully but libusb did not. I keep getting incompatibility errors from the compiler. While the link above suggests fixing them I’d much rather utilize an existing common usb library w/out altering its C++ code.

So back to the original question. If someone has built libusb in UWP could you please share your experience and post your project file. At the same time if you have an alternative way of getting Pixy to work in .NET/UWP I am open to your ideas.


Replies (1)

RE: Building Pixy libraries for Universal Windows Platform - Added by Edward Getz over 1 year ago

Hello Victor,
Good work with getting things worknig with .NET and VS 2015. Nobody here has any experience with Windows UWP. (sorry)