MayaPosch / MQTTCute

An advanced desktop MQTT client, suitable for binary protocol development and monitoring
BSD 3-Clause "New" or "Revised" License
64 stars 13 forks source link

Cannot compile #6

Closed probonopd closed 5 years ago

probonopd commented 5 years ago

Trying to make an AppImage, cannot compile due to compilation errors before AppImage generation even begins.

Travis CI Build script: https://github.com/probonopd/MQTTCute/blob/d77ea6c9f54a7c33c4764feb188eb9a6a03c9297/.travis.yml

Log file: https://travis-ci.com/probonopd/MQTTCute/builds/129765724

Edit: No longer getting those errors (but others) now, the application seems to be coded using very recent versions of libraries rather than the versions that come with the oldest still-supported LTS distributions. Which means we need to compile those from source.

MayaPosch commented 5 years ago

Ubuntu Trusty comes with libpoco-dev 1.3.6: https://launchpad.net/ubuntu/trusty/+package/libpoco-dev

The 'initializeSSL()' function and others were first added in 1.4.0. The other errors are also likely due to this old version, as compiling it on Linux Mint 19.2 from the Github sources seems to work flawlessly.

Please retest with newer libPoco.

probonopd commented 5 years ago

Edit: Thanks, trying with xenial and poco from source now.

probonopd commented 5 years ago

Edit: Looks like compilation succeeded this time: https://travis-ci.com/probonopd/MQTTCute/builds/129815306

But make install fails.

Is there a mqttcute.desktop and 256x256 px mqttcute.png already somewhere?

MrAureliusR commented 5 years ago

@probonopd Just an aside, it's considered good etiquette to edit your first comment in any thread, as anyone who follows a particular project will get an individual email every time you comment. Just keep it in mind :)

MayaPosch commented 5 years ago

Edit: Looks like compilation succeeded this time: https://travis-ci.com/probonopd/MQTTCute/builds/129815306

But make install fails.

There is at this moment no 'make install', because of the wide range of possible installation folders for binaries across distributions. The only product is the 'MQTTCute' binary, which can be copied by hand.

Is there a mqttcute.desktop and 256x256 px mqttcute.png already somewhere?

The icon used by MQTTCute is the MQTT icon: https://github.com/MayaPosch/MQTTCute/tree/master/img

I assume a .desktop file would be a kind of desktop shortcut for Linux?

probonopd commented 5 years ago

Thanks @MayaPosch. Looks like I have an AppImage, but since I don't know the application well enough I don't know whether everything is working already. Maybe you'd like to give it a try:

https://github.com/probonopd/MQTTCute/releases/tag/continuous

In case it works, I'm happy to send a pull request that will produce and upload an AppImage using Travis CI.

MayaPosch commented 5 years ago

The AppImage works fine on a fresh Manjaro install at the very least, which is a good sign :)

I set up a Travis account as well (same username as on Github), so that could be used in the PR.

Thank you very much for your assistance! :)

probonopd commented 5 years ago

Thanks for testing @MayaPosch. PR sent, please see #7.

I assume a .desktop file would be a kind of desktop shortcut for Linux?

It is what defines the name, icon, categories etc. to be used e.g., in menus. I made one as part of the pull request:

https://github.com/MayaPosch/MQTTCute/blob/256673707cb802b8e8268f9dbff5b6949ac23e08/mqttcute.desktop