编译没有提升的asio库

lil*_*lzz 5 c++ boost boost-asio

我正在尝试编译没有boost库的asio. http://think-async.com/Asio/Documentation

所以我做了

 ./configure --prefix=/raspberry/asio/product
Run Code Online (Sandbox Code Playgroud)

我收到了错误

checking boost/noncopyable.hpp usability... no
checking boost/noncopyable.hpp presence... no
checking for boost/noncopyable.hpp... no
Can't find boost headers. Please check the location of the boost
distribution and rerun configure using the --with-boost=DIR option.
Run Code Online (Sandbox Code Playgroud)

我认为这个asio不需要提升.

所以,接下来我用boost来抓取asio库并抓住boost文件夹并放入asio(非boost)文件夹.

但它仍然给我同样的错误.

小智 10

./configure --prefix=/raspberry/asio/product --without-boost
Run Code Online (Sandbox Code Playgroud)


wal*_*lyk 0

构建 ASIO 需要 boost 标头。将 boost 安装到系统上是最简单的方法,但您也可以进行本地安装(在您的目录之一中)并指向它。