学习韦东山老师的Linux应用开发实验班的JSON部分,在编译JSON包的过程中
报错命令:
./configure --host=arm-buildroot-linux-gnueabihf -prefix=$PWD/tmp
错误信息:
checking for libev support... checking for arm-buildroot-linux-gnueabihf-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBEV... no
checking ev.h usability... no
checking ev.h presence... no
checking for ev.h... no
configure: error: libev not found
但是我把libev编译出来的头文件以及库文件都放到了,编译链指定的目录下了
并且也有尝试过手动指定文件路径,也还是报错找不到libev
偶然看到有一篇文章是说执行configure找不到编译链可能是因为权限问题,我就加上了管理员权限就成功解决了。
解决方案:
sudo ./configure --host=arm-buildroot-linux-gnueabihf -prefix=$PWD/tmp
希望本篇文章对你有帮助!!