Skip to content

Instantly share code, notes, and snippets.

@jpmens
Created June 5, 2013 17:45
Show Gist options
  • Save jpmens/5715765 to your computer and use it in GitHub Desktop.
Save jpmens/5715765 to your computer and use it in GitHub Desktop.
Build Mosquitto 1.2 on OSX Lion
# Build OpenSSL 1.0.1e (or whichever)
$ ./Configure darwin64-x86_64-cc --prefix=/usr/local/stow/openssl-1.0.1e/
$ make install
# Obtain and build Mosquitto
$ hg clone https://bitbucket.org/oojah/mosquitto
$ hg up -r 1.2
# On line 44 of lib/CMakeLists.txt there is a
#
# set (LIBRARIES ${LIBRARIES} rt)
#
# Remove the "rt" from that.
#
# On line 78 of src/CMakeLists.txt, also remove the "rt"
$ cmake -DOPENSSL_SSL_LIBRARY=/usr/local/stow/openssl-1.0.1e/lib/libssl.a \
-DOPENSSL_CRYPTO_LIBRARY=/usr/local/stow/openssl-1.0.1e/lib/libcrypto.a \
-DOPENSSL_INCLUDE_DIR=/usr/local/stow/openssl-1.0.1e/include/ .
$ make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment