【问题标题】:sudo make is returning errorssudo make 返回错误
【发布时间】:2014-03-04 21:22:00
【问题描述】:

我正在安装 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 安装完美

【问题讨论】:

  • 您是否安装了所有这些库,包括其软件包的开发版本?
  • 是 rcssbase-12.1.3, rcssserver-15.1.0, rcssmonitor-15.2.2 我需要其他文件吗?
  • 音频、xt、png 等...所有cannot find -lwhatever 的东西。
  • 我对它们一无所知...请帮助我执行命令?

标签: linux robocup


【解决方案1】:

试试这个

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

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

【讨论】:

    【解决方案2】:

    1...

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

    2...

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

    3...

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

    【讨论】:

      猜你喜欢
      • 2012-08-07
      • 2019-03-27
      • 2011-06-10
      • 2018-09-30
      • 1970-01-01
      • 1970-01-01
      • 2016-12-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多