【问题标题】:building boost locale library on Windows在 Windows 上构建 boost 语言环境库
【发布时间】:2011-02-19 12:33:29
【问题描述】:

我正在尝试构建 boost::locale 库 (http://cppcms.sourceforge.net/boost_locale/html/tutorial.html#a5771bce93e200c36f7cd9dfd0e5deaa),该库仍在审核中以集成到 boost 但 cmake 命令抛出以下内容:

   D:\lib\boost_locale_v2.92\build>cmake ..
-- Looking for ICU libraries
-- Looking for iconv
-- Looking for Boost
CMake Error: The following variables are used in this project, but they are se
to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake fi
s:
BOOST_THREAD
    linked by target "boost_locale-static" in directory D:/lib/boost_locale_v2
2
ICU_DATA
    linked by target "boost_locale-static" in directory D:/lib/boost_locale_v2
2
ICU_I18N
    linked by target "boost_locale-static" in directory D:/lib/boost_locale_v2
2
ICU_INCLUDE_DIR
   used as include directory in directory D:/lib/boost_locale_v2.92
ICU_UC
    linked by target "boost_locale-static" in directory D:/lib/boost_locale_v2
2

-- Configuring incomplete, errors occurred!

我有 ICU 和 boost,但不知道如何为 boost::locale 修改开箱即用的 cmake 脚本。任何帮助表示赞赏

【问题讨论】:

    标签: boost cmake locale building


    【解决方案1】:

    其实这些错误信息已经够清楚了。您需要指出是什么:boost 线程库位置、ICU 包含目录等。

    【讨论】:

      【解决方案2】:

      仔细阅读安装说明:

      http://cppcms.sourceforge.net/boost_locale/html/building_boost_locale.html

      您需要提供:

      cmake -DCMAKE_INCLUDE_PATH=/path/to/boost/include;path/to/icu/include -DCMAKE_LIBRARY_PATH=/path/to/icu/lib ..
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-08-14
        • 2010-09-23
        • 2011-12-18
        • 2023-03-22
        • 1970-01-01
        • 2015-08-22
        相关资源
        最近更新 更多