lopter/homebrew-lightsd

Issue installing on Mojave 10.14.5 - libevent event2/util.h not found

danhealy opened this issue · 1 comments

Trying to install this fresh on an up to date macbook, and getting this error:

$ brew install lightsd
==> Installing lightsd from lopter/lightsd
==> Downloading https://downloads.lightsd.io/releases/lightsd-1.2.1.tar.gz
Already downloaded: /Users/dan/Library/Caches/Homebrew/downloads/4229d371744dffe3dcdfe65c11dfe9df543813ec0a236773e5fd73fbff989f93--lightsd-1.2.1.tar.gz
==> cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/lightsd/1.2.1_1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VE
==> make install
Last 15 lines from /Users/dan/Library/Logs/Homebrew/lightsd/02.make:
1 error generated.
make[2]: *** [lifx/CMakeFiles/lifx.dir/discovery.c.o] Error 1
[  6%] Built target time_monotonic
make[2]: *** [lifx/CMakeFiles/lifx.dir/bulb.c.o] Error 1
1 error generated.
make[2]: *** [lifx/CMakeFiles/lifx.dir/tagging.c.o] Error 1
1 error generated.
make[2]: *** [lifx/CMakeFiles/lifx.dir/gateway.c.o] Error 1
/tmp/lightsd-20190602-6645-5a2xhp/lightsd-1.2.1/lifx/wire_proto.c:32:10: fatal error: 'event2/util.h' file not found
#include <event2/util.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [lifx/CMakeFiles/lifx.dir/wire_proto.c.o] Error 1
make[1]: *** [lifx/CMakeFiles/lifx.dir/all] Error 2
make: *** [all] Error 2

Just guessing: libevent 2.1.10 and cmake 3.14.5 were installed whereas the readme indicates libevent ≥ 2.0.19 and CMake ≥ 2.8.9 are required, are these incompatible?

This issue is present on Catalina as well.