c++ - 制作rcssbase时增加错误

标签 c++ boost robocup

我正在尝试安装 rcssbase。当我“./configure”时没有问题发生。但是当我想“制造”这个错误时:

loader.cpp: 在静态成员函数‘static boost::filesystem3::path rcss::lib::Loader::stripDirName(const boost::filesystem3::path&)’中: loader.cpp:158:38: 错误:请求从‘boost::filesystem3::path’到非标量类型‘std::string {aka std::basic_string}’的转换

boost::filesystem::path
Loader::stripDirName( const boost::filesystem::path & filename )
{
    std::string rval = filename.leaf(); //this is the 158th line
    return rval;
}

最佳答案

您的错误与 libboost 库有关,对于这些具有如此多依赖项的应用程序,最好使用 apt 包管理器。

您可以将 rcssserver 存储库添加到您在 ubuntu 中的存储库

如果您的 ubuntu 版本 <= 12.10,请执行以下步骤:

1) 你可以在这里找到存储库: https://launchpad.net/~gnurubuntu/+archive/rubuntu

2) 现在您在上一步中找到的地址到您的 /etc/sources.list 文件

3) 现在输入 sudo apt-get update

4) sudo apt-get install rcssserver rcsslogplayer rcssmonitor

关于c++ - 制作rcssbase时增加错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20020340/

相关文章:

C++\Win32 有关所有驱动器的信息 : hard drives, USB 驱动器、磁盘驱动器、软盘驱动器等

c++ - 将可变长度参数传递给函数 C++

c++ - 使用 cmake 和 mingw 在 mac OSX 上交叉编译 dll

c++ - boost::circular_buffer 如何处理覆盖移位

linux - sudo make 返回错误

c++ - 使用C++ 11基于范围的正确方法是什么?

c++ - boost Asio Peek 和完成条件

ubuntu - 如何在不知道安装路径的情况下卸载boost

c++ - 配置 : error: *** -lm not found! **