ptstream / QtUPnP

QtUPnP framework is a C++ framework, based on QT5, to build easily an UPnP control point. It focuses on the UPnP/AV standards.
GNU General Public License v3.0
48 stars 10 forks source link

Mac Build #7

Closed steveq61 closed 6 years ago

steveq61 commented 6 years ago

Hey Patrice,

It wouldn't be the same if a week went by without me submitting a post! lol

A quick question, I tried to compile upnp on my Mac, and got some errors. I was able to correct the compilation errors by adding #include <array> to "httpserver.hpp" and "xmlhdevice.hpp". Consequently the program now compiles and links.

But it crashes when initiating a discover.

The program has unexpectedly finished.
The process was ended forcefully.
/Users/steveq/QT Apps/Home Automation/build-HomeAutomation-Desktop_Qt_5_9_3_clang_64bit-Debug/HomeLink/HomeLink.app/Contents/MacOS/HomeLink crashed.

Starting /Users/steveq/QT Apps/Home Automation/build-HomeAutomation-Desktop_Qt_5_9_3_clang_64bit-Debug/HomeLink/HomeLink.app/Contents/MacOS/HomeLink...
CMulticastSocket::initialize (joinMulticast): "239.255.255.250"
CMulticastSocket::~CMulticastSocket (leaveMulticastGroup): ""
CUpnpSocket::discover (write datagram): "239.255.255.250:1900"
CUpnpSocket::discover (write datagram): "239.255.255.250:1900"
The program has unexpectedly finished.
The process was ended forcefully.
/Users/steveq/QT Apps/Home Automation/build-HomeAutomation-Desktop_Qt_5_9_3_clang_64bit-Debug/HomeLink/HomeLink.app/Contents/MacOS/HomeLink crashed.

Thanks Patrice,

Steve Q. :-)

ptstream commented 6 years ago

Hi Steve, Difficult to solve the problem without MACOS. If I examine your screenshot is see:

I think the problem can be describe like this.

I don't know why the QAbstractSocket::bind fails. The reasons are multiple.

I think adding the support for MACOS is not difficult (I hope). But I do not have an Apple computer. I have just Windows, Ubuntu, Kubuntu and Rasbian systems.

Regards, Patrice

steveq61 commented 6 years ago

Hey Patrice,

I'm more than happy to work with you on developing the code to run on the MacOS if you would like. We can go to private emails so as not to flood this page until we get it working. Now I know where to look, I'll run the code in debug and see if I can narrow the problem down anymore. If you would like to go further with this, let me know and I'll give you my email.

SQ :-)

ptstream commented 6 years ago

Hi, No problem for this. Above code tag on my GitHub page you can click on ptstream. You can see with this the public part of my account. If you sign in your GitHub account, you can uses freely the email address. This address is public but it has not link with the GitHup used for issues, pull resquests.

image

Patrice