简体   繁体   English

sudo make返回错误

[英]sudo make is returning errors

I am installing the robocup simulator and followed these steps in this link installing robocup steps and this is what I find when I write the following command sudo make in monitor directory 我正在安装robocup模拟器,并在此链接中按照以下步骤安装robocup步骤 ,这是我在监视器目录中编写以下命令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

and this is the output when I write the same command sudo make in base directory 这是我在基目录中编写相同命令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

and this is what I get in server directory when calling the same command sudo make 这是我在调用相同命令sudo make时在服务器目录中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 is installed perfectly make安装完美

try this 尝试这个

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

I know it's late :DI hope you didn't given up robocup ;) 我知道现在已经很晚了:DI希望你没有放弃robocup;)

1... 1 ...

sudo add-apt-repository ppa:gnurubuntu/rubuntu && sudo apt-get update

2... 2 ...

sudo apt-get install libboost-all-dev build-essential rcsoccersim inkscape qt-sdk eclipse monodevelop openjdk-7-jre openjdk-7-jdk

3... 3 ...

sudo apt-get update && sudo apt-get upgrade

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM