Qt WinCE 的 UPnP 库

发布于 2024-10-18 21:39:18 字数 4434 浏览 4 评论 0原文

我正在尝试在 Qt WinCE 中编写 DLNA 项目。有没有 UPnP 库? 我现在正在尝试 Cyber​​Link C 库。但是,它只有 Objective-C 的包装器。 我在尝试将 Objective-C 包装器转换为 Qt WinCE 包装器时遇到一些配置错误。

错误:

Error   1   error LNK2019: unresolved external symbol GetAdaptersInfo referenced in function cg_net_gethostinterfaces   cyberlinkc.lib  QtUpnp
Error   2   error LNK2019: unresolved external symbol freeaddrinfo referenced in function cg_net_selectaddr cyberlinkc.lib  QtUpnp
Error   3   error LNK2001: unresolved external symbol freeaddrinfo  cyberlinkc.lib  QtUpnp
Error   4   error LNK2019: unresolved external symbol getaddrinfo referenced in function cg_net_selectaddr  cyberlinkc.lib  QtUpnp
Error   5   error LNK2001: unresolved external symbol getaddrinfo   cyberlinkc.lib  QtUpnp
Error   6   error LNK2019: unresolved external symbol ntohl referenced in function cg_net_selectaddr    cyberlinkc.lib  QtUpnp
Error   7   error LNK2019: unresolved external symbol WSAStartup referenced in function cg_socket_startup   cyberlinkc.lib  QtUpnp
Error   8   error LNK2019: unresolved external symbol WSACleanup referenced in function cg_socket_cleanup   cyberlinkc.lib  QtUpnp
Error   9   error LNK2019: unresolved external symbol setsockopt referenced in function cg_socket_setid cyberlinkc.lib  QtUpnp
Error   10  error LNK2019: unresolved external symbol closesocket referenced in function cg_socket_close    cyberlinkc.lib  QtUpnp
Error   11  error LNK2019: unresolved external symbol recv referenced in function cg_socket_close   cyberlinkc.lib  QtUpnp
Error   12  error LNK2019: unresolved external symbol shutdown referenced in function cg_socket_close   cyberlinkc.lib  QtUpnp
Error   13  error LNK2019: unresolved external symbol listen referenced in function cg_socket_listen    cyberlinkc.lib  QtUpnp
Error   14  error LNK2019: unresolved external symbol getnameinfo referenced in function cg_socket_accept   cyberlinkc.lib  QtUpnp
Error   15  error LNK2019: unresolved external symbol getsockname referenced in function cg_socket_accept   cyberlinkc.lib  QtUpnp
Error   16  error LNK2019: unresolved external symbol accept referenced in function cg_socket_accept    cyberlinkc.lib  QtUpnp
Error   17  error LNK2019: unresolved external symbol send referenced in function cg_socket_write   cyberlinkc.lib  QtUpnp
Error   18  error LNK2019: unresolved external symbol recvfrom referenced in function cg_socket_recv    cyberlinkc.lib  QtUpnp
Error   19  error LNK2019: unresolved external symbol gethostbyname referenced in function cg_socket_tosockaddrin   cyberlinkc.lib  QtUpnp
Error   20  error LNK2019: unresolved external symbol inet_addr referenced in function cg_socket_tosockaddrin   cyberlinkc.lib  QtUpnp
Error   21  error LNK2019: unresolved external symbol htons referenced in function cg_socket_tosockaddrin   cyberlinkc.lib  QtUpnp
Error   22  error LNK2019: unresolved external symbol htonl referenced in function cg_socket_tosockaddrin   cyberlinkc.lib  QtUpnp
Error   23  error LNK2019: unresolved external symbol WSAGetLastError referenced in function cg_socket_getlasterror cyberlinkc.lib  QtUpnp
Error   24  error LNK2019: unresolved external symbol bind referenced in function cg_socket_bind    cyberlinkc.lib  QtUpnp
Error   25  error LNK2019: unresolved external symbol socket referenced in function cg_socket_bind  cyberlinkc.lib  QtUpnp
Error   26  error LNK2019: unresolved external symbol connect referenced in function cg_socket_connect  cyberlinkc.lib  QtUpnp
Error   27  error LNK2019: unresolved external symbol sendto referenced in function cg_socket_sendto    cyberlinkc.lib  QtUpnp
Error   28  error LNK2019: unresolved external symbol XML_ParserFree referenced in function cg_xml_parse    cyberlinkc.lib  QtUpnp
Error   29  error LNK2019: unresolved external symbol XML_Parse referenced in function cg_xml_parse cyberlinkc.lib  QtUpnp
Error   30  error LNK2019: unresolved external symbol XML_SetCharacterDataHandler referenced in function cg_xml_parse   cyberlinkc.lib  QtUpnp
Error   31  error LNK2019: unresolved external symbol XML_SetElementHandler referenced in function cg_xml_parse cyberlinkc.lib  QtUpnp
Error   32  error LNK2019: unresolved external symbol XML_SetUserData referenced in function cg_xml_parse   cyberlinkc.lib  QtUpnp
Error   33  error LNK2019: unresolved external symbol XML_ParserCreate referenced in function cg_xml_parse  cyberlinkc.lib  QtUpnp

请分享一些提示或示例代码。

谢谢

I am trying to write DLNA project in Qt WinCE. Is there any UPnP library for it?
I am now trying CyberLink C library. But, it only has wrapper for Objective-C.
I got some configuration errors while trying to translate Objective-C wrapper to Qt WinCE wrapper.

Errors:

Error   1   error LNK2019: unresolved external symbol GetAdaptersInfo referenced in function cg_net_gethostinterfaces   cyberlinkc.lib  QtUpnp
Error   2   error LNK2019: unresolved external symbol freeaddrinfo referenced in function cg_net_selectaddr cyberlinkc.lib  QtUpnp
Error   3   error LNK2001: unresolved external symbol freeaddrinfo  cyberlinkc.lib  QtUpnp
Error   4   error LNK2019: unresolved external symbol getaddrinfo referenced in function cg_net_selectaddr  cyberlinkc.lib  QtUpnp
Error   5   error LNK2001: unresolved external symbol getaddrinfo   cyberlinkc.lib  QtUpnp
Error   6   error LNK2019: unresolved external symbol ntohl referenced in function cg_net_selectaddr    cyberlinkc.lib  QtUpnp
Error   7   error LNK2019: unresolved external symbol WSAStartup referenced in function cg_socket_startup   cyberlinkc.lib  QtUpnp
Error   8   error LNK2019: unresolved external symbol WSACleanup referenced in function cg_socket_cleanup   cyberlinkc.lib  QtUpnp
Error   9   error LNK2019: unresolved external symbol setsockopt referenced in function cg_socket_setid cyberlinkc.lib  QtUpnp
Error   10  error LNK2019: unresolved external symbol closesocket referenced in function cg_socket_close    cyberlinkc.lib  QtUpnp
Error   11  error LNK2019: unresolved external symbol recv referenced in function cg_socket_close   cyberlinkc.lib  QtUpnp
Error   12  error LNK2019: unresolved external symbol shutdown referenced in function cg_socket_close   cyberlinkc.lib  QtUpnp
Error   13  error LNK2019: unresolved external symbol listen referenced in function cg_socket_listen    cyberlinkc.lib  QtUpnp
Error   14  error LNK2019: unresolved external symbol getnameinfo referenced in function cg_socket_accept   cyberlinkc.lib  QtUpnp
Error   15  error LNK2019: unresolved external symbol getsockname referenced in function cg_socket_accept   cyberlinkc.lib  QtUpnp
Error   16  error LNK2019: unresolved external symbol accept referenced in function cg_socket_accept    cyberlinkc.lib  QtUpnp
Error   17  error LNK2019: unresolved external symbol send referenced in function cg_socket_write   cyberlinkc.lib  QtUpnp
Error   18  error LNK2019: unresolved external symbol recvfrom referenced in function cg_socket_recv    cyberlinkc.lib  QtUpnp
Error   19  error LNK2019: unresolved external symbol gethostbyname referenced in function cg_socket_tosockaddrin   cyberlinkc.lib  QtUpnp
Error   20  error LNK2019: unresolved external symbol inet_addr referenced in function cg_socket_tosockaddrin   cyberlinkc.lib  QtUpnp
Error   21  error LNK2019: unresolved external symbol htons referenced in function cg_socket_tosockaddrin   cyberlinkc.lib  QtUpnp
Error   22  error LNK2019: unresolved external symbol htonl referenced in function cg_socket_tosockaddrin   cyberlinkc.lib  QtUpnp
Error   23  error LNK2019: unresolved external symbol WSAGetLastError referenced in function cg_socket_getlasterror cyberlinkc.lib  QtUpnp
Error   24  error LNK2019: unresolved external symbol bind referenced in function cg_socket_bind    cyberlinkc.lib  QtUpnp
Error   25  error LNK2019: unresolved external symbol socket referenced in function cg_socket_bind  cyberlinkc.lib  QtUpnp
Error   26  error LNK2019: unresolved external symbol connect referenced in function cg_socket_connect  cyberlinkc.lib  QtUpnp
Error   27  error LNK2019: unresolved external symbol sendto referenced in function cg_socket_sendto    cyberlinkc.lib  QtUpnp
Error   28  error LNK2019: unresolved external symbol XML_ParserFree referenced in function cg_xml_parse    cyberlinkc.lib  QtUpnp
Error   29  error LNK2019: unresolved external symbol XML_Parse referenced in function cg_xml_parse cyberlinkc.lib  QtUpnp
Error   30  error LNK2019: unresolved external symbol XML_SetCharacterDataHandler referenced in function cg_xml_parse   cyberlinkc.lib  QtUpnp
Error   31  error LNK2019: unresolved external symbol XML_SetElementHandler referenced in function cg_xml_parse cyberlinkc.lib  QtUpnp
Error   32  error LNK2019: unresolved external symbol XML_SetUserData referenced in function cg_xml_parse   cyberlinkc.lib  QtUpnp
Error   33  error LNK2019: unresolved external symbol XML_ParserCreate referenced in function cg_xml_parse  cyberlinkc.lib  QtUpnp

Please share some hints or sample codes.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独留℉清风醉 2024-10-25 21:39:18

有没有 UPnP 库?

您可以尝试 GUpnp

http://gupnp.org/downloads/gupnp-dlna-0.3.0

或尝试使用 UPnP 开发人员工具生成框架代码

http://opentools.homeip .net/dev-tools-for-upnp

Is there any UPnP library for it?

You can try GUpnp

http://gupnp.org/downloads/gupnp-dlna-0.3.0

or try Developer Tools for UPnP to generate skeleton code

http://opentools.homeip.net/dev-tools-for-upnp

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文