<bdo id='tVgiC'></bdo><ul id='tVgiC'></ul>
<legend id='tVgiC'><style id='tVgiC'><dir id='tVgiC'><q id='tVgiC'></q></dir></style></legend>
    <tfoot id='tVgiC'></tfoot>
    <i id='tVgiC'><tr id='tVgiC'><dt id='tVgiC'><q id='tVgiC'><span id='tVgiC'><b id='tVgiC'><form id='tVgiC'><ins id='tVgiC'></ins><ul id='tVgiC'></ul><sub id='tVgiC'></sub></form><legend id='tVgiC'></legend><bdo id='tVgiC'><pre id='tVgiC'><center id='tVgiC'></center></pre></bdo></b><th id='tVgiC'></th></span></q></dt></tr></i><div id='tVgiC'><tfoot id='tVgiC'></tfoot><dl id='tVgiC'><fieldset id='tVgiC'></fieldset></dl></div>
  • <small id='tVgiC'></small><noframes id='tVgiC'>

      1. CMake 无法找到 BOOST 库

        时间:2023-07-20

          <i id='SGBtA'><tr id='SGBtA'><dt id='SGBtA'><q id='SGBtA'><span id='SGBtA'><b id='SGBtA'><form id='SGBtA'><ins id='SGBtA'></ins><ul id='SGBtA'></ul><sub id='SGBtA'></sub></form><legend id='SGBtA'></legend><bdo id='SGBtA'><pre id='SGBtA'><center id='SGBtA'></center></pre></bdo></b><th id='SGBtA'></th></span></q></dt></tr></i><div id='SGBtA'><tfoot id='SGBtA'></tfoot><dl id='SGBtA'><fieldset id='SGBtA'></fieldset></dl></div>
            <tbody id='SGBtA'></tbody>
        1. <small id='SGBtA'></small><noframes id='SGBtA'>

            <tfoot id='SGBtA'></tfoot>

            1. <legend id='SGBtA'><style id='SGBtA'><dir id='SGBtA'><q id='SGBtA'></q></dir></style></legend>
                  <bdo id='SGBtA'></bdo><ul id='SGBtA'></ul>
                • 本文介绍了CMake 无法找到 BOOST 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我尝试了所有类似的方法:

                  I tried everything like:

                  1. 配置环境变量
                  2. 重新构建
                  3. 从源代码重新安装 BOOST
                  4. sudo apt-get install libboost-all-dev

                  但仍然出现以下错误:

                  CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (message):
                   Unable to find the requested Boost libraries.
                  
                   Unable to find the Boost header files.  Please set BOOST_ROOT to the root
                   directory containing Boost or BOOST_INCLUDEDIR to the directory containing
                   Boost's headers.
                  Call Stack (most recent call first):
                     CMakeLists.txt:147 (find_package)
                  
                  
                  CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (message):
                  Unable to find the requested Boost libraries.
                  
                  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
                  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
                  Boost's headers.
                  

                  boost 源代码目录:/usr/local/src/boost_1_45_0Boost 库路径:/usr/local/libBoost 头文件:/usr/local/include/boost

                  Source code directory for boost: /usr/local/src/boost_1_45_0 Boost Library path: /usr/local/lib Boost Header file: /usr/local/include/boost

                  这是bashrc文件:

                  BOOST_ROOT="/usr/local/src/boost_1_45_0"
                  Boost_LIBRARY_DIRS="/usr/local/lib"
                  BOOST_INCLUDEDIR="/usr/local/src/boost_1_45_0"
                  

                  如何解决这些错误?我错过了什么吗?

                  How to solve these Errors? Am i missing something?

                  cmake -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN -DBOOST_ROOT=/usr/local/src/boost_1_45_0 -DBOOST_INCLUDEDIR=/usr/local/include/boost -DBOOST_LIBRARYDIR=/usr/local/lib -DPYTHON_LIBRARIES=/usr/local/lib/python2.7 -DPYTHON_INCLUDE_DIRS=/usr/include/python2.7 -DCMA-DRDK_BUILD_PYTHON_WRAPPERS=
                  

                  推荐答案

                  尝试使用以下库完成 cmake 过程:

                  Try to complete cmake process with following libs:

                  sudo apt-get install cmake libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev
                  

                  这篇关于CMake 无法找到 BOOST 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:boost.asio 和文件 i/o 有什么关系? 下一篇:跨平台等价于windows事件

                  相关文章

                    <tfoot id='slHnM'></tfoot>

                      <small id='slHnM'></small><noframes id='slHnM'>

                      <legend id='slHnM'><style id='slHnM'><dir id='slHnM'><q id='slHnM'></q></dir></style></legend>
                        <bdo id='slHnM'></bdo><ul id='slHnM'></ul>
                    1. <i id='slHnM'><tr id='slHnM'><dt id='slHnM'><q id='slHnM'><span id='slHnM'><b id='slHnM'><form id='slHnM'><ins id='slHnM'></ins><ul id='slHnM'></ul><sub id='slHnM'></sub></form><legend id='slHnM'></legend><bdo id='slHnM'><pre id='slHnM'><center id='slHnM'></center></pre></bdo></b><th id='slHnM'></th></span></q></dt></tr></i><div id='slHnM'><tfoot id='slHnM'></tfoot><dl id='slHnM'><fieldset id='slHnM'></fieldset></dl></div>