简体   繁体   English

编译适用于Windows Phone 8.1或10的可移植UPnP库

[英]Compiling Portable UPnP Library for Windows Phone 8.1 or 10

I need to compile a Portable UpnP library ( http://pupnp.sourceforge.net/ ) for Windows Phone 8.1 or 10. 我需要为Windows Phone 8.1或10编译可移植的UpnP库( http://pupnp.sourceforge.net/ )。

The library can be compiled in x86 Windows 10 and one person ( https://github.com/atraczyk/libupnp ) has already created the missing the VS 2015 project files for the library. 该库可以在x86 Windows 10中进行编译,并且一个人( https://github.com/atraczyk/libupnp )已经创建了缺少该库的VS 2015项目文件。 I used this version and changed the project target to ARM and did several other changes like the following. 我使用了此版本,并将项目目标更改为ARM,并进行了其他一些更改,如下所示。

And, I successfully accomplished to compile pthread-win32, ixml and threadutil projects. 并且,我成功完成了编译pthread-win32,ixml和threadutil项目。

However ; 但是 ; The actual project, libupnp, didn't compile because of missing iphlpapi library in Windows Phone environment. 实际项目libupnp由于Windows Phone环境中缺少iphlpapi库而无法编译。 I searched online and stackoverflow. 我在线搜索和stackoverflow。 And I couldn't find any solution to compile the library without iphlpapi or with a replacement of it. 如果没有iphlpapi或对其进行替换,我找不到任何解决方案来编译该库。 I hope you can guide me on how to compile the library. 希望您能指导我如何编译该库。

TL;DR TL; DR

Is there any way that I can include iphlpapi library to a Windows Phone 8.1 ARM project to compile the Portable UPnP library for Windows Phone 8.1 ARM based device. 有什么方法可以将iphlpapi库包含到Windows Phone 8.1 ARM项目中,以便为基于Windows Phone 8.1 ARM的设备编译Portable UPnP库。

Clarification , I am sticking with this version of the UPnP even though I know there are alternatives. 澄清 ,即使我知道还有其他选择,我仍坚持使用此版本的UPnP。 Because, other platforms (Android and iOS) are using this library and there is a common C code that we need to use in all platforms. 因为其他平台(Android和iOS)都在使用此库,所以我们需要在所有平台上使用通用的C代码。 So, changing the library is not an obvious solution. 因此,更改库并不是一个显而易见的解决方案。

I can see an ARM lib of the IPHlpApi.Lib on my system at C:\\Program Files (x86)\\Windows Kits\\8.1\\Lib\\winv6.3\\um\\arm\\IPHlpApi.Lib . 我可以在C:\\Program Files (x86)\\Windows Kits\\8.1\\Lib\\winv6.3\\um\\arm\\IPHlpApi.Lib上的系统上看到IPHlpApi.Lib的ARM库。 Add this to the linker option of the solution. 将此添加到解决方案的链接器选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM