![activeperl 5.12.2 activeperl 5.12.2](http://images.sftcdn.net/images/t_optimized,f_auto/p/5666ffa8-96d5-11e6-b55f-00163ed833e7/810775786/activeperl-screenshot.jpg)
Set( CMAKE_INSTALL_LIBDIR "/src/mqtt/include") Set( CMAKE_INSTALL_INCLUDEDIR "/src/mqtt/src")
ACTIVEPERL 5.12.2 INSTALL
# Rule to install runtime components (ie: the shared library) # If left unchanged, cmake will still add this prefix. # On Windows, libraries are not generally prefixed with "lib".
![activeperl 5.12.2 activeperl 5.12.2](https://softikbox.com/uploads/images/fc/6e/e7/fc6ee718-8bdf-4fb5-8b54-bb08c06ab542_640x0_resize.png)
QTimer::singleShot(0, qApp, &QCoreApplication::quit) Įxplicit Subscriber(const QHostAddress& host = EXAMPLE_HOST,Ĭonnect(this, &Subscriber::connected, this, &Subscriber::onConnected) Ĭonnect(this, &Subscriber::subscribed, this, &Subscriber::onSubscribed) Ĭonnect(this, &Subscriber::received, this, &Subscriber::onReceived) ĬXX_STANDARD_REQUIRED OFF # Whether CXX_STANDARD is enforced QString(QLatin1String("Number is %1")).arg(_number).toUtf8()) QMQTT::Message message(_number, EXAMPLE_TOPIC, Had to add (QLatin1String()) to clear an error I think related to QT_NO_CAST_FROM_ASCII NOTE: had to add (QLatin1String()) around the string, otherwise fails - 2xĬonst QString EXAMPLE_TOPIC (QLatin1String( "qmqtt/exampletopic" )) Įxplicit Publisher(const QHostAddress& host = EXAMPLE_HOST,Ĭonnect(this, &Publisher::connected, this, &Publisher::onConnected) Ĭonnect(&_timer, &QTimer::timeout, this, &Publisher::onTimeout) Ĭonnect(this, &Publisher::disconnected, this, &Publisher::onDisconnected) Here is the MyExample.cpp file: #include Ĭonst QHostAddress EXAMPLE_HOST = QHostAddress::LocalHost I tried running it in Qt5 with a similar (but different) error, and I also tried using QMake, and changing the kit to MSCV (right now using MinGW).
ACTIVEPERL 5.12.2 FULL
Here is a snip of the full error text (there is more that references Qt libraries):Ĭ:\Users\Documents\Qt\build-qmqtt-master-Desktop_Qt_6_0_0_MinGW_64_bit-Debug\qmqtt_autogen\TYW5ZMGRGA\moc_qmqtt_client.cpp:400: error: conversion from 'QMQTT::ConnectionState' to 'QChar' is ambiguous When I try to run the included example code, it gives an error: 'conversion from "QMQTT::ConnectionState' to 'QChar' is ambiguous". I've been trying the MQTT implementation from here: GitHub-emqx/qmqtt I'm trying to get an implementation of MQTT working with Qt - I can think of a bunch of projects I could have fun with using an MQTT service, but I'm not having any luck so far. I recently updated to Qt6, and have been getting used to using CMake rather than QMake. I always preface my questions with the disclaimer that I am what I would call an advanced beginner! I know enough to write some simple programs to do some simple things, but when an issue comes up that looks like it's 'behind the curtain', I need to ask for help.