在Windows上构建boost语言环境库

时间:2011-02-19 12:33:30

标签: boost cmake locale building

我正在尝试构建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 :: locale的开箱即用的cmake脚本。任何帮助表示赞赏

2 个答案:

答案 0 :(得分:0)

实际上这些错误消息足够清楚。您需要指出以下内容:提升线程库位置,ICU包含目录等。

答案 1 :(得分:0)

仔细阅读安装说明:

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 ..