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

您好,cmake错误 #25

Open
ericjing83 opened this issue Apr 11, 2024 · 1 comment
Open

您好,cmake错误 #25

ericjing83 opened this issue Apr 11, 2024 · 1 comment

Comments

@ericjing83
Copy link

您好大神,我向您求助

我的系统:debian10.13
我提前下载并编译了libev,make install的位置是/usr/local/libev-4.33/install
然后,我用这个命令下载了您的库以及依赖库:git clone --branch v3.14.1 --recursive https://github.com/zhaojh329/libuhttpd.git
然后,我解压了库,并创建了build文件夹,我cd到了这里:/usr/local/libuhttpd/build
然后,我尝试用:cmake ..
我看到了如下的错误:
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Libev (missing: LIBEV_LIBRARY LIBEV_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindLibev.cmake:25 (find_package_handle_standard_args)
CMakeLists.txt:20 (find_package)

我尝试了手动添加环境变量:export LIBEV_LIBRARY=/usr/local/libev-4.33/install/lib,然后,再次执行cmake ..
还是遇到了相同的错误。
请您指正,如何正确进行cmake?非常感谢。

@ericjing83
Copy link
Author

您好,我现在已经知道了我安装的libev的库的位置(包括lib和include),我想跳过上面这段调用cmake的功能搜索libev,因为这样搜索好像有bug导致找不到。请教大神,如何跳过cmake搜索libev的步骤,直接在cmake的时候设置LIBEV_LIBRARY和 LIBEV_INCLUDE_DIR?

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

1 participant