我试图在 Ubuntu 14.04.5 上安装 rcssserver,在 ./configure 之后,我编写命令“sudo make”,然后收到一堆描述和错误行。有人可以告诉我如何安装它吗?提前致谢
make all-recursive
make[1]: Entering directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1'
Making all in .
make[2]: Entering directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1'
make[2]: Leaving directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1'
Making all in libltdl
make[2]: Entering directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/libltdl'
make all-am
make[3]: Entering directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/libltdl'
make[3]: Leaving directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/libltdl'
make[2]: Leaving directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/libltdl'
Making all in rcssbase
make[2]: Entering directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/rcssbase'
Making all in error
make[3]: Entering directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/rcssbase/error'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/rcssbase/error'
Making all in lib
make[3]: Entering directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/rcssbase/lib'
Making all in .
make[4]: Entering directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/rcssbase/lib'
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../libltdl -I/usr/include -W -I./src -g -O2 -MT loader.lo -MD -MP -MF .deps/loader.Tpo -c -o loader.lo loader.cpp
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../libltdl -I/usr/include -W -I./src -g -O2 -MT loader.lo -MD -MP -MF .deps/loader.Tpo -c loader.cpp -fPIC -DPIC -o .libs/loader.o
loader.cpp: In static member function ‘static boost::filesystem::path rcss::lib::Loader::stripDirName(const boost::filesystem::path&)’:
loader.cpp:158:38: error: conversion from ‘boost::filesystem::path’ to non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
std::string rval = filename.leaf();
^
make[4]: *** [loader.lo] Error 1
make[4]: Leaving directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/rcssbase/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/rcssbase/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1/rcssbase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ehsan/Downloads/rcss-sf/rcssbase-12.1.1'
make: *** [all] Error 2
答案1
打开终端并运行以下命令:
sudo apt-add-repository ppa:gnurubuntu/rubuntu sudo apt-get update
这将根据您的 Ubuntu 版本自动将一个条目添加到您的源列表中。
安装服务器和监控器:
sudo apt-get install rcssserver rcssmonitor