Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

libevhtp-1.2.18 doesn't build against libevent 2.1.8-stable #135

Open
deadeyegoodwin opened this issue May 6, 2019 · 1 comment
Open

Comments

@deadeyegoodwin
Copy link

deadeyegoodwin commented May 6, 2019

Details

Building on Ubuntu 16.04.

The problem seems to be that libevent creates its configuration files with name prefix "Libevent" (like LibeventConfig.cmake), but evhtp uses "find_package(LibEvent REQUIRED)" here https://github.com/criticalstack/libevhtp/blob/1.2.18/CMakeLists.txt#L57.

It should be "find_package(Libevent REQUIRED)". Note the lower-case 'e'.

Steps or code to reproduce the problem.

cmake will fail saying it can't find LIBEVENT_INCLUDE_DIR and other libevent artifacts.

  • edit CMakeLists.txt to have "find_package(Libevent REQUIRED)"
  • cd build && cmake -DLibevent_DIR=/tmp/libevent_install/lib/cmake/libevent .. && make

Builds correctly...

Version

1.2.18

@deadeyegoodwin
Copy link
Author

There is also another LibEvent that needs to be changed to Libevent in CMakeLists.txt.
Here: https://github.com/criticalstack/libevhtp/blob/1.2.18/CMakeLists.txt#L60

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant