0

我正在尝试构建 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 脚本。任何帮助表示赞赏

4

2 回答 2

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 ..
于 2011-02-22T19:54:51.273 回答
0

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

于 2011-02-19T17:31:23.157 回答