public:mosquitto-clients
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:mosquitto-clients [2018/02/16 08:43] – [mosquitto-clients] jan | public:mosquitto-clients [2018/05/28 21:25] (current) – [Building with SSL-support] jan | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| to be able to build anything on MacOS, install Command Line Tools for Xcode using the following command: | to be able to build anything on MacOS, install Command Line Tools for Xcode using the following command: | ||
| xcode-select --install | xcode-select --install | ||
| - | |||
| - | To successfully build mosquitto-clients we first need to install dependencies: | ||
| - | * [[# | ||
| ===== cmake ===== | ===== cmake ===== | ||
| Line 21: | Line 18: | ||
| make install | make install | ||
| - | ===== c-ares ===== | ||
| - | Download latest archive from https:// | ||
| - | ./configure | ||
| - | make | ||
| - | sudo make install | ||
| ===== mosquitto-clients ===== | ===== mosquitto-clients ===== | ||
| + | Clone master-branch from Github: | ||
| git clone --single-branch -b master https:// | git clone --single-branch -b master https:// | ||
| + | Change directory into mosquitto: | ||
| cd ./mosquitto | cd ./mosquitto | ||
| - | ==== Build options ==== | + | ==== Building |
| - | * c-ares (libc-ares-dev on Debian based systems) - disable | + | |
| - | * libuuid (uuid-dev) - disable with `make WITH_UUID=no` | + | |
| - | * libwebsockets (libwebsockets-dev) - enable with `make WITH_WEBSOCKETS=yes` | + | |
| - | * openssl (libssl-dev on Debian based systems) - disable with `make WITH_TLS=no` | + | |
| - | + | ||
| - | ==== Build with SSL ==== | + | |
| When building with SSL: | When building with SSL: | ||
| - | export OPENSSL_ROOT_DIR=" | + | export OPENSSL_ROOT_DIR=" |
| - | export OPENSSL_INCLUDE_DIR=" | + | export OPENSSL_INCLUDE_DIR=" |
| Generate makefiles | Generate makefiles | ||
| Line 58: | Line 44: | ||
| sudo make install | sudo make install | ||
| - | In case you screwed up, clean directory | + | In case you screwed up, clean directory |
| git clean -f -d | git clean -f -d | ||
| git reset --hard | git reset --hard | ||
| === Alternatively: | === Alternatively: | ||
| - | cmake -DWITH_TLS_PSK=OFF -DWITH_TLS=OFF . | + | To build without SSL-support add option // |
| - | === Surpress Policy CMP0042 Warning === | + | === Other options === |
| + | * c-ares (libc-ares-dev on Debian based systems) - disable with `make WITH_SRV=no` | ||
| + | * libuuid (uuid-dev) - disable with `make WITH_UUID=no` | ||
| + | * libwebsockets (libwebsockets-dev) - enable with `make WITH_WEBSOCKETS=yes` | ||
| + | * openssl (libssl-dev on Debian based systems) - disable with `make WITH_TLS=no` | ||
| + | |||
| + | === cmake: | ||
| Add // | Add // | ||
| + | ===== c-ares ===== | ||
| + | |||
| + | If you build with // | ||
| + | |||
| + | Download latest archive from https:// | ||
| + | ./configure | ||
| + | make | ||
| + | sudo make install | ||
public/mosquitto-clients.1518770614.txt.gz · Last modified: by jan
