【问题标题】:compiling asio library without boost在没有boost的情况下编译asio库
【发布时间】:2013-08-08 21:48:20
【问题描述】:

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

原来如此

 ./configure --prefix=/raspberry/asio/product

我得到了错误

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.

我认为这个 asio 不需要 boost。

所以,接下来我抓取带有 boost 的 asio 库并抓取 boost 文件夹并放入 asio(non boost) 文件夹中。

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

【问题讨论】:

  • 您要配置和构建什么? Asio 库只是头文件,没有什么要编译的。

标签: c++ boost boost-asio


【解决方案1】:
./configure --prefix=/raspberry/asio/product --without-boost

【讨论】:

    【解决方案2】:

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

    【讨论】:

    • 在构建 asio 时如何指向 boost build? ./configure --prefix=/asio/product --xxx=/asio_boost/compiled/include。什么是--xxx?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-23
    • 2014-04-14
    • 2020-03-25
    • 1970-01-01
    • 2011-08-09
    • 1970-01-01
    相关资源
    最近更新 更多