您的位置:首页 > 编程语言 > Qt开发

ubuntu 12.04 RoboCup 2D 仿真安装记录

2012-05-06 21:41 465 查看


更多信息,请访问glygo

ubuntu 12.04 RoboCup 2D 仿真安装记录

官方教程见:

http://sourceforge.net/apps/mediawiki/sserver/index.php?title=Installing_server_server_system

 还可以参考下这篇日志:http://blog.163.com/hanjiye123@126/blog/static/17011774320110109213799


以下是我按照教程安装robocup的记录,希望对各位有帮助。

一、下载必要的安装文件

    点下面的链接,分别下载好这几个包,记住下载目录。
rcssserver
rcssmonitor
rcsslogplayer (可选,用来重看比赛)

 点地一个链接出来这个页面,选download rcssserver-15.0.1.tar.gz 即可。

 点第二三个链接的时候,注意,不要再下载server了。进15.0.0的文件夹,下载linux版即可,mac不要下。         下载之后放一边,先把依赖包装好。

二、安装依赖环境

   主要几个依赖环境有:

        Flex/Bison
        Boost 1.32 or later
        Qt4
        Zlib (推荐的可选)

     具体:在终端输入:

          

sudo apt-get install flex
sudo apt-get install libqt4*
sudo apt-get install zlib*
sudo apt-get install libboost*


       前三个都算比较顺利,用复旦的软件源很快就安装好了。就是boost比较蛋疼。直接按照上述命令输入,会显 示各种冲突,无法安装,源里面同时存在新旧两个版本的boost,要我一个个打,实在不愿意,所以就直接去下载一个包装上。

下载地址:http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.bz2/download

说明网页:http://www.boost.org/users/history/version_1_49_0.html

下载好了,解压缩,里面有个index.html ,是说明文件,打开来看看。

摘录最重要的如下:

=========================================================================

Issue the following commands in the shell (don't type $; that represents the shell's prompt):

这个,打开来有好多选项,貌似没太大影响,直接不打--help,过了。

$cdpath/to/boost_1_49_0$./bootstrap.sh --help


Select your configuration options and invoke ./bootstrap.sh again without the --help option. Unless you have write
permission in your system's /usr/local/ directory, you'll probably want to at least use

$./bootstrap.sh--prefix=path/to/installation/prefix ///这个也可以忽略


to install somewhere else. Also, consider using the --show-libraries and --with-libraries=library-name-list options
to limit the long wait you'll experience if you build everything. Finally,

$./b2 install


will leave Boost binaries in the lib/ subdirectory of your installation prefix. You will also find a copy of the Boost headers
in the include/ subdirectory of the installation prefix, so you can henceforth use that directory as an #include path in place of the Boost root directory.

==================================================================================== 

然后再试试: 

sudo apt-get install libboost*


如果提示有版本冲突,只要有一个版本装上就好了。





三、安装主程序。

然后就可以装那三个包了。方法大同小异

rcssserver

$ tar xzvf rcssserver-15.x.x.tar.gz
$ cd rcssserver-15.x.x
$ ./configure$ make$ su# make install (or, sudo make install)


rcssmonitor

$ tar xzvf rcssmonitor-156.x.x.tar.gz
$ cd rcssmonitor-15.x.x$ ./configure
$ make$ su# make install (or, sudo make install)


If your system does not support Qt4 library, please try to use the frameview monitor. In this case, you need to download rcssmonitor_frameview-14.0.0.tar.gz.

$ tar xzvf rcssmonitor_frameview-15.0.0.tar.gz
$ cd rcssmonitor_frameview-150.0$ ./configure$ make
$ su# make install (or, sudo make install)


If you encounter the error massage such as "cannot find -lXpm", please confirm that libXpm is installed on your system or try the following
option:

$ ./configure LDFLAGS="-L/usr/X11R6/lib"


If you encounter the error massage such as "cannot find xxxx.h", you may need to install related development packages prepared for your
system.

rcsslogplayer

$ tar xzvf rcsslogplayer-14.x.x.tar.gz
$ cd rcsslogplayer-14.x.x$ ./configure$ make
$ su# make install (or, sudo make install)


If your system does not support Qt4 library, please try to use the classic logplayer. In this case, you need to add the following options
to the configure script:

$ ./configure --disable-qt4 --enable-classic


Starting the soccer simulator

If you installed the soccer server system successfully, you can start the whole simulation system via 'rcsoccersim' command.

$ rcsoccersim


效果如图:



暂时只是装好,未进行测试。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息