![]() ![]() 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. I recently updated to Qt6, and have been getting used to using CMake rather than QMake. 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. 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". 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). MSI installer preferred way, requires admin privileges to install ZIP edition admin privileges not. ![]() # On Windows, libraries are not generally prefixed with "lib". Strawberry Perl Releases back to homepage Explanatory Notes. ![]() # Rule to install runtime components (ie: the shared library) # If left unchanged, cmake will still add this prefix. We’re bringing ActivePerl Community Edition in line with the maintenance and support policy of the perl5-porters. These versions can be licensed by our Team Tier (or higher) subscribers, although no support or maintenance is provided. Set( CMAKE_INSTALL_LIBDIR "/src/mqtt/include") Set( CMAKE_INSTALL_INCLUDEDIR "/src/mqtt/src") ACTIVEPERL 5.12.2 INSTALL Perl lib version (5.12.2) doesnt match executable version (v5.12.0) at /home/Neil/ActivePerl-5.12/lib/Config.pm line 50. ActivePerl Community Edition 5.8 and 5.10 are no longer available for free download. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |