Created
June 5, 2013 17:45
-
-
Save jpmens/5715765 to your computer and use it in GitHub Desktop.
Build Mosquitto 1.2 on OSX Lion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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