[CMake] after running cmake, getting an error cannot find -levent

Michael Ellery mellery451 at gmail.com
Thu Sep 15 13:13:12 EDT 2016


that seems to refer to libevent and the linker is not finding it - so you probably need to build/install that lib for your toolchain. It doesn’t look like there is a standard finder module for libevent currently, but if there were then find_package(LibEvent) would have likely alerted you when running cmake.

-Mike

> On Sep 15, 2016, at 10:03 AM, Gunter, Walter E <Walter.Gunter at dematic.com> wrote:
> 
> Subject: after running cmake, getting an error cannot find -levent
>  
> I am cross-compiling for an arm, and can run cmake successfully, but when I run make, I am getting the following:
>  
> /opt/toolchains/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -levent
>  
> I tried adding –levent to COMPILE_FLAGS, but that didn’t work either.
>  
> set(COMPILE_FLAGS "-lrt –levent -Wall -lpthread")
>  
> Thoughts?
>  
>  
> Walter E. Gunter, Jr.
>  
> -- 
> 
> Powered by www.kitware.com
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
> 
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake



More information about the CMake mailing list