Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm-linux-gnueabihf-gcc交叉编译的时候Could NOT find Libev (missing: LIBEV_LIBRARY) (found version "4.22") #118

Open
BigHero47 opened this issue Jul 8, 2023 · 2 comments

Comments

@BigHero47
Copy link

执行cmake .. && make install
结果出现
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Libev (missing: LIBEV_LIBRARY) (found version "4.22")
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindLibev.cmake:25 (find_package_handle_standard_args)
src/CMakeLists.txt:7 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/eddie/tool/rtty/rtty-8.1.0/CMakeFiles/CMakeOutput.log".

Libev已经安装,在CMakeLists.txt里面也添加了路径,请问这个错误该如何解决

@guangjieMVP
Copy link

请问兄弟你解决了么?我就算在CMakeList里设置LIBEV_LIBRARY和LIBEV_INCLUDE_DIR编译都还是说找不到libev

@guangjieMVP
Copy link

根据/rtty-v8.1.0/CROSS_COMPILE.md说编译根本不行
这样就可以:
cmake . -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc -DCMAKE_FIND_ROOT_PATH="/home/xgj/workspace/V2X_4G_RSU/toolchain/arm-linux-gnueabi/bin" -DLIBEV_INCLUDE_DIR="/home/xgj/workspace/lib_3th/tmp/rtty/include" -DLIBEV_LIBRARY="/home/xgj/workspace/lib_3th/tmp/
rtty/lib/libev.so"

DESTDIR=/home/xgj/workspace/lib_3th/tmp/rtty
make install

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

No branches or pull requests

2 participants