在 Windows 上构建 boost 语言环境库

发布于 2024-10-17 22:50:09 字数 1160 浏览 8 评论 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 脚本。任何帮助表示赞赏

I am trying to build the boost::locale library (http://cppcms.sourceforge.net/boost_locale/html/tutorial.html#a5771bce93e200c36f7cd9dfd0e5deaa) which is still in review for integration into boost but the cmake command throws up the following:

   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!

I have got ICU and boost but can't figure out how to modify the out-of-box cmake script for boost::locale. Any help is appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

合约呢 2024-10-24 22:50:09

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

Actually these error messages are clear enough. You need to point where is what: boost thread library location, ICU include directory, and others.

︶葆Ⅱㄣ 2024-10-24 22:50:09

仔细阅读安装说明:

http://cpcms.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 ..

Read the installation instructions carefully:

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

You need to provide:

cmake -DCMAKE_INCLUDE_PATH=/path/to/boost/include;path/to/icu/include -DCMAKE_LIBRARY_PATH=/path/to/icu/lib ..
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文