YIO-Remote / remote-software

💎 YIO Remote Software repository
GNU General Public License v3.0
164 stars 21 forks source link

Compile errors in qtzeroconf on Windows with MinGW #326

Closed zehnm closed 4 years ago

zehnm commented 4 years ago

The Windows 10 development environment has been setup according to: https://github.com/YIO-Remote/remote-software/blob/master/DEV%20ENVIRONMENT.md#windows

However there are multiple errors in the qtzeroconf / bonjour-sdk module.

My assumption is that MinGW is not suited for this project on Windows. Has anyone got this running on Windows? E.g. with the Visual Studio compiler?

zehnm commented 4 years ago

Further analysis:

However they are NOT considered during a build!? Manually defining them in dnssd_clientstub.c & .h makes it work. So there's something wrong with the Qt project setup!

zehnm commented 4 years ago

Got that little bugger! The problem was in remote.pro overriding all DEFINES:

include(qtzeroconf/qtzeroconf.pri)
DEFINES = QZEROCONF_STATIC

This is wrong and overrides all previous DEFINES in qtzeroconf.pri! Correct:

include(qtzeroconf/qtzeroconf.pri)
DEFINES += QZEROCONF_STATIC
martonborzak commented 4 years ago

Good catch @zehnm ! :)

zehnm commented 4 years ago

Fixed in feature/project-setup branch. This issue will be resolved once #324 is merged to dev

zehnm commented 4 years ago

One step closer to a working Windows app! All resources should be copied now at the right place. Unfortunately the plugin loading is still broken. YIO-remote-Win10

zehnm commented 4 years ago

Plugin loading fixed :-) Test case with only ir plugin inside plugins folder:

LOADING PLUGIN: "D:/projects/yio/binaries/windows/gcc/x86/debug/plugins/appletv.dll"
FAILED TO LOAD PLUGIN:  "The shared library was not found."
LOADING PLUGIN: "D:/projects/yio/binaries/windows/gcc/x86/debug/plugins/homeassistant.dll"
FAILED TO LOAD PLUGIN:  "The shared library was not found."
LOADING PLUGIN: "D:/projects/yio/binaries/windows/gcc/x86/debug/plugins/ir.dll"
qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional.

Non available plugins fail, IR plugin succeeds.

zehnm commented 4 years ago

Fixed in dev branch