linux - sudo make 返回错误

标签 linux robocup

我正在安装 robocup 模拟器并按照此链接中的这些步骤操作 installing robocup steps这是我在监视器目录中编写以下命令时发现的 sudo make

/usr/bin/ld: cannot find -laudio
/usr/bin/ld: cannot find -lXt
/usr/bin/ld: cannot find -lpng
/usr/bin/ld: cannot find -lgobject-2.0
/usr/bin/ld: cannot find -lSM
/usr/bin/ld: cannot find -lICE
/usr/bin/ld: cannot find -lXi
/usr/bin/ld: cannot find -lXrender
/usr/bin/ld: cannot find -lfreetype
/usr/bin/ld: cannot find -lfontconfig
collect2: ld returned 1 exit status
make[2]: *** [rcssmonitor] Error 1
make[2]: Leaving directory `/home/mostafa/Desktop/robocup simulator/rcssmonitor-15.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mostafa/Desktop/robocup simulator/rcssmonitor-15.1.0'
make: *** [all] Error 2

这是我在基本目录中编写相同命令 sudo make 时的输出

loader.cpp: In static member function ‘static boost::filesystem3::path  rcss::lib::Loader::stripDirName(const boost::filesystem3::path&)’:
loader.cpp:158:38: error: conversion from ‘boost::filesystem3::path’ to non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
make[4]: *** [loader.lo] Error 1
make[4]: Leaving directory `/home/mostafa/Desktop/robocup simulator/rcssbase-12.1.3/rcssbase/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mostafa/Desktop/robocup simulator/rcssbase-12.1.3/rcssbase/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mostafa/Desktop/robocup simulator/rcssbase-12.1.3/rcssbase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mostafa/Desktop/robocup simulator/rcssbase-12.1.3'
make: *** [all] Error 2

这是我在调用相同命令 sudo make

时在服务器目录中得到的内容
/usr/bin/ld: cannot find -lrcssclangparser
collect2: ld returned 1 exit status
make[3]: *** [rcssserver] Error 1
make[3]: Leaving directory `/home/mostafa/Desktop/robocup simulator/rcssserver-15.2.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mostafa/Desktop/robocup simulator/rcssserver-15.2.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mostafa/Desktop/robocup simulator/rcssserver-15.2.2'
make: *** [all] Error 2

make安装完美

最佳答案

试试这个

sudo apt-get install libaudio-dev libpng-dev libxi-dev libglib2.0-dev libfontconfig-dev libxrender-dev

我知道已经晚了:D 我希望你没有放弃 robocup ;)

关于linux - sudo make 返回错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22183327/

相关文章:

c++ - 如何在 Ubuntu 14.04 中安装 Qt 3.3.8

c - ffmpeg - 转换时不允许操作错误

linux - 监视 Linux 中进程的磁盘访问总大小

linux - 在启动树莓派时运行两个程序

linux - `missing-syscalls' 内核编译时出错

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

CMake 链接错误( undefined reference )