c++ - OpenTissue boost 绑定(bind)问题

标签 c++ svn boost cmake

我想安装 OpenTissue 物理模拟库,它需要 boost。 third_party/include 目录中有一个 .bat 文件,用于检索所需的 boost 绑定(bind)。我已经成功运行了脚本,然后是 CMake。 但是,CMake 的“Configure”声明:“无法找到 boost ”,即使它位于脚本作者认为的目录中。之后,我尝试手动设置 BOOST_BINDING_PATH,如下所述:http://www.opentissue.org/mediawiki/index.php/Boost_bindings .但是,我仍然无法让 CMake 注册 boost 绑定(bind)。

有人成功过吗?

操作系统:Windows 8.1
OpenTissue 检索自:http://www.opentissue.org/svn/OpenTissue/sandbox
CMake:2.8.12.2

最佳答案

如果您知道 Boost 在哪里,您可以在运行 CMake 时传递 BOOST_INCLUDE_DIRBOOST_LIBRARY_DIR,如下所示:

cmake -DBOOST_INCLUDE_DIR='path_to_boost_headers' -DBOOST_LIBRARY_DIR='path_to_boost_libraries'

关于c++ - OpenTissue boost 绑定(bind)问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23980160/

相关文章:

c++ - 在头文件中声明对象 C++

java - 前瞻性思维 : Library Dependency handling in the workplace

c++ - 为什么使用基于 boost 的库时生成的预编译文件如此大?

c++ - 将 ptime 转换为 std::string

c++ - 关于std::move()在成员重载中的使用问题

svn - 让 TortoiseSVN 将文件视为未更改

python - hg 转换,Subversion python 绑定(bind)错误

c++ - 根据运行时决策组合不同的迭代器

c++ - boost::asio UDP "gather"操作

c++ - 无法在头文件中使用自定义对象?