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

Gunter, Walter E Walter.Gunter at dematic.com
Fri Sep 16 13:44:12 EDT 2016


Okay. I made some changes to my cmake and am getting different errors, but still make me think I am not cross compiling:
Should those be my cross compile toolchain instead of /usr/bin/c++ ??


-- The CXX compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done

-----Original Message-----
From: Michael Ellery [mailto:mellery451 at gmail.com] 
Sent: Thursday, September 15, 2016 11:13 AM
To: Gunter, Walter E; cmake at cmake.org
Subject: Re: [CMake] after running cmake, getting an error cannot find -levent

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