fxbox / foxbox

The FoxBox daemon
Mozilla Public License 2.0
29 stars 29 forks source link

Fails to build on OSX #565

Open samgiles opened 7 years ago

samgiles commented 7 years ago

STR:

brew install libev
brew install openssl
git clone git@github.com:fxbox/foxbox.git && cd foxbox
cargo build
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
checking Enabled libev.... checking for libev support... checking for x86_64-apple-darwin-pkg-config... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBEV... no
checking ev.h usability... no
checking ev.h presence... no
checking for ev.h... no

--- stderr
configure: WARNING: Failed to find openssl/ssl.h so OpenSSL will not be used.
    If it is installed you can try the --with-openssl=DIR argument
configure: error: libev not found
thread 'main' panicked at 'Failed to run libpagekite/configure', /Users/sam/.cargo/git/checkouts/pagekite-rs-22b083423686e593/5a260ae903ff5d4192aefb6fab8c894a447bfd00/build.rs:61
note: Run with `RUST_BACKTRACE=1` for a backtrace.
samgiles commented 7 years ago

This is fixed upstream using: https://github.com/fabricedesre/pagekite-rs/pull/1

For some reason, despite ld -v -help indicating that /usr/local/lib is in fact a library search path, it was still necessary to explicitly use export LIBRARY_PATH=/usr/local/lib. Which is annoying.