titobrasolin / qtmosquitto

Wrapper of the Mosquitto library for Qt 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QtMosquitto

Wrapper of the Mosquitto library for Qt 5

Build Status

QtMosquitto on Linux

Building with qmake (preferable)

qmake QtMosquitto.pro
make

Building with cmake

cd build
cmake -D CMAKE_BUILD_TYPE=Debug ../source
make
demo/qtmosquitto-demo

Building with cmake and different QTDIR

cd build
cmake -D CMAKE_BUILD_TYPE=Debug -D QTDIR=/your_home/Qt/5.x/gcc_64/lib/cmake ../source
make
demo/qtmosquitto-demo

Installing the libray

cp build/lib/libqtmosquitto.so* /usr/lib/
cp source/qtmosquitto.hpp /usr/include/

Using the library in a Qt Project

Include the header file:
    #include "qtmosquitto.hpp"

Add the library to your .pro file:
    LIBS += -lqtmosquitto

QtMosquitto on Windows

Building with cmake

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
set PATH=C:\Qt\5.4\msvc2013\bin;%PATH%
cd build
cmake -G "NMake Makefiles" -D CMAKE_BUILD_TYPE=Debug ..\source
nmake
demo\qtmosquitto-demo.exe

About

Wrapper of the Mosquitto library for Qt 5

License:Eclipse Public License 1.0


Languages

Language:C++ 85.2%Language:QMake 12.2%Language:CMake 2.6%