Giter Club home page Giter Club logo

kmqttd's Introduction

MQTTd

MQTT Server Client

1. 依赖环境

C++14                    clang 已测试AppleClang 9.1.0.9020039
cmake 2.8+               编译脚本
boost 1.67               asio 负责通讯

2. 编译boost v1.6.7

cd boost_1_67_0
mkdir build

cd build
../bootstrap.sh --with-toolset=clang

cd ..
build/b2 --build-dir=./build toolset=clang address-model=64 link=static runtime-link=static \
    --with-system --with-date_time --with-regex \
    cxxflags="-std=c++14 -stdlib=libc++" linkflags="-stdlib=libc++" \
    --stagedir=./build stage

cp -r ./boost/ ./build/include/boost/

3. 编译安装工程

make build
cd build
rm -rf * && cmake -DCMAKE_CXX_COMPILER=clang -DCMAKE_INSTALL_PREFIX=./ -DCMAKE_BUILD_TYPE=DEBUG ..
make && make install

4. 卸载

cd build
make uninstall

kmqttd's People

Contributors

khan-lau avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.