building with websockets on a mac using homebrew

654 views
Skip to first unread message

Laing, Michael

unread,
Jan 25, 2015, 1:55:55 PM1/25/15
to mq...@googlegroups.com
The bottled homebrew version of libwebsockets is too old.

brew uninstall libwebsockets (if already installed)
brew edit libwebsockets

change the following 3 lines to read thusly:
  url 'http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/snapshot/libwebsockets-1.3-chrome37-firefox30.tar.gz'
  version '1.3'
  sha1 'ee1005165346d2217db4a9c40c4711f741213557'

brew install --build-from-source libwebsockets

In your mosquitto build directory (presuming you want TLS and have installed openssl):

cmake  -DWITH_WEBSOCKETS=ON -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2 -DOPENSSL_LIBRARIES=/usr/local/Cellar/openssl/lib ..

make mosquitto

make libmosquitto

MachismoWang

unread,
Jan 4, 2016, 1:26:06 AM1/4/16
to MQTT
After this, how can I install it on mac and how to start the broker? 

Thanks.
Reply all
Reply to author
Forward
0 new messages