kurtpattyn / qtawsiot Goto Github PK
View Code? Open in Web Editor NEWQt library for accessing AWS IoT
License: MIT License
Qt library for accessing AWS IoT
License: MIT License
Hello,
Firstly thanks for that perfect library.
I have made a clean install QtMqtt library and QtAwsIoT library. But after I am trying to run the pubsub.cpp on QtCreator I got many error about undefined references. So at the below my really basic begining. Could you pls show a guide that can basically publish a message in any qt projects.
Here is my .pro file
QT += core
QT -= gui
CONFIG += c++11
TARGET = aws_qt
CONFIG += console
CONFIG -= app_bundle
INCLUDEPATH += "/usr/local/include/QtMqtt/Qt5/"
"/usr/local/include/"
"/usr/local/include/QtAwsIoT/Qt5/"
TEMPLATE = app
SOURCES += main.cpp
LIBS += -L"/usr/local/lib/QtAwsIoT/Qt5/" -lAwsIoT
LIBS += -L"/usr/local/lib/QtMqtt/Qt5/" -lMqtt
And my source:
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qRegisterMetaType<QMqttProtocol::State>("QMqttProtocol::State");
return a.exec();
}
Errors:
/usr/local/lib/QtMqtt/Qt5/libMqtt.a(qmqttclient.cpp.o):-1: In function `QMqttClientPrivate::QMqttClientPrivate(QString const&, QMqttClient*)':
/home/nurhak/Desktop/qt_aws/QtMqtt-1.0.0/src/qmqttclient.cpp:134: error: undefined reference to `QWebSocket::QWebSocket(QString const&, QWebSocketProtocol::Version, QObject*)'
/usr/local/lib/QtMqtt/Qt5/libMqtt.a(qmqttclient.cpp.o):-1: In function `QMqttClientPrivate::connect(QMqttNetworkRequest const&, QMqttWill const&)':
/home/nurhak/Desktop/qt_aws/QtMqtt-1.0.0/src/qmqttclient.cpp:163: error: undefined reference to `QNetworkRequest::url() const'
.. etc
D:\GitHub\QtAwsIoT\build>cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_SHARED_LIBS=OFF ..
CMake Error at CMakeLists.txt:73 (find_package):
By not providing "FindQt5Mqtt.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Mqtt", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Mqtt" with any
of the following names:
Qt5MqttConfig.cmake
qt5mqtt-config.cmake
Add the installation prefix of "Qt5Mqtt" to CMAKE_PREFIX_PATH or set
"Qt5Mqtt_DIR" to a directory containing one of the above files. If
"Qt5Mqtt" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
See also "D:/GitHub/QtAwsIoT/build/CMakeFiles/CMakeOutput.log".
Hello!
When trying to use this library on macOS 10.13, I get the following errors on running the test:
Error QMqttProtocol::Error::CONNECTION_FAILED "SSL errors encountered: The root CA certificate is not trusted for this purpose (17)\n."
Error QMqttProtocol::Error::CONNECTION_FAILED "Error connecting to MQTT server: 13 (The root CA certificate is not trusted for this purpose)."
Disconnected from AWS IoT
The library works perfectly on Linux and Windows.
I have verified that the Amazon Root CAs are available on the system.
The tests for QtMqtt do succeed, so the issue seems to be AWS-specific.
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.