Re: questions about errors in rosdep and roscore

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: questions about errors in rosdep and roscore

Alexander Shavykin
On 12/31/09, Brian Gerkey <[hidden email]> wrote:

>
> On Dec 24, 2009, at 8:37 AM, Alexander Shavykin wrote:
>
>> I have just installed ROS for the first time on Debian 5.0. as s
>> Kitchen Sink Install: (Recommended, includes tutorials and various
>> packages)
>> 1. I have a question connecting with Tutorial: "Building a ROS
>> Package"
>> When i try to run    $rosdep install turtlesim
>> I got next errors:
>>
>> alex@pc-shavykin:~$ rosdep install turtesim
>> rosdep: couldn't find package [turtesim]
>> alex@pc-shavykin:~$ rosdep install turtlesim
>> rosdep: couldn't find a way to satisfy rosdep [boost] on
>> OS/distro [debian] version [5.0]. This rosdep was defined in
>> /home/alex/ros/ros/rosdep.yaml   If you are able to edit that file
>> so the rosdep can
>> be satsified on your OS/distro, please send us a patch!
>>
>> rosdep: couldn't find a way to satisfy rosdep [boost] on
>> OS/distro [debian] version [5.0]. This rosdep was defined in
>> /home/alex/ros/ros/rosdep.yaml   If you are able to edit that file
>> so the rosdep can
>> be satsified on your OS/distro, please send us a patch!
>
> As the message says, rosdep doesn't know how to install boost on your
> debian 5.0 system.  You can try overriding the system identification
> that rosdep looks up, to make it use an installation method that's
> defined for a similar system.  Looking at ros/rosdep.yaml, we have
> definitions for squeeze/sid, lenny, and 3.1.  Take whichever is most
> similar to 5.0 and set ROSDEP_OS_VERSION, e.g., if 5.0 is similar to
> lenny:
>    export ROSDEP_OS_VERSION=lenny
>
> Then try the 'rosdep install' command again.  Note that this approach
> only makes sense if one of our existing system definitions is close
> enough to your system.
>
>> 2. And also when i try to run "roscore" there are another errors.
>>
>> alex@pc-shavykin:~$ roscore
>> ... logging to /home/alex/.ros/log/b54b7504-f08c-11de-
>> b140-0017a4e1c57c/roslaunch-pc-shavykin-3289.log
>>
>> ... loading XML file [/home/alex/ros/ros/tools/roslaunch/roscore.xml]
>> Added core node of type [rosout/rosout] in namespace [/]
>> started roslaunch server http://pc-shavykin:45455/
>>
>> SUMMARY
>> ========
>>
>> NODES
>>
>> starting new master (master configured for auto start)
>> process[master]: started with pid [3321]
>> ROS_MASTER_URI=http://pc-shavykin:11311/
>>
>> setting /run_id to b54b7504-f08c-11de-b140-0017a4e1c57c
>>
>> ERROR: rosout is not built. Please run 'rosmake rosout'
>> failed to start core service [/rosout]
>> [master] killing on exit
>> exiting...
>
> Looks like rosout was not made.  Looks like the bootstrap make step
> either wasn't run or didn't complete.  Try that again:
>
> cd $ROS_ROOT
> make
>
> brian.
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> ros-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ros-users
>


Hello, Brian.
I continue to fight with errors:)
i have done as you wrote:

cd $ROS_ROOT
make

And then i got next
alex@pc-shavykin:~$ cd $ROS_ROOT
alex@pc-shavykin:~/ros/ros$ make
cd /home/alex/ros/ros/tools/rospack && make
make[1]: Entering directory `/home/alex/ros/ros/tools/rospack'
mkdir -p bin
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/ros/ros/tools/rospack/build
cd build && make
make[2]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[3]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
[ 62%] Built target rospack
make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
[ 75%] Built target rospackexe
make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
[ 87%] Built target rosstack
make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
[100%] Built target rosstackexe
make[3]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
make[2]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
make[1]: Leaving directory `/home/alex/ros/ros/tools/rospack'
rosmake gtest pycrypto paramiko roslaunch rosout rostest
[ rosmake ] Detected rosout not built, adding it to the build
[ rosmake ] Packages requested are: ['gtest', 'pycrypto', 'paramiko',
'roslaunch', 'rosout', 'rostest', 'rosout']
[ rosmake ] Logging to directory
[ rosmake ] /home/alex/.ros/rosmake/rosmake_output-20100116-152619
[ rosmake ] Expanded args ['gtest', 'pycrypto', 'paramiko',
'roslaunch', 'rosout', 'rostest', 'rosout'] to:
['gtest', 'pycrypto', 'paramiko', 'roslaunch', 'rosout', 'rostest', 'rosout']
[ rosmake ] Checking rosdeps compliance for system dependencies gtest,
pycrypto, paramiko, rosout, rostest, rosout.  This may take a few
seconds.
[ rosmake ] Rosdep couldn't check scripts: The following scripts were
not tested:
if [ ! -f /opt/ros/lib/liblog4cxx.so.10 ] ; then
  mkdir -p ~/ros/ros-deps
  cd ~/ros/ros-deps
  wget --tries=10
http://pr.willowgarage.com/downloads/apache-log4cxx-0.10.0-wg_patched.tar.gz
  tar xzf apache-log4cxx-0.10.0-wg_patched.tar.gz
  cd apache-log4cxx-0.10.0
  ./configure --prefix=/opt/ros
  make
  sudo make install
fi

if [ ! -f /opt/ros/lib/libboost_date_time-gcc43-mt*-1_37.a ] ; then
  mkdir -p ~/ros/ros-deps
  cd ~/ros/ros-deps
  wget --tries=10 http://pr.willowgarage.com/downloads/boost_1_37_0.tar.gz
  tar xzf boost_1_37_0.tar.gz
  cd boost_1_37_0
  ./configure --prefix=/opt/ros
  make
  sudo make install
fi


[ rosmake ] Rosdep check passed all system dependencies in packages
[ rosmake ] Prebuilding rospack
[ rosmake ] Prebuilding gtest
[ rosmake ] Prebuilding genmsg_cpp
[ rosmake ] [ 3 of 14  Completed ]
[rosmake-0] >>> pycrypto >>> [ make ]
[ rosmake ] [ 3 of 14  Completed ]
[rosmake-1] >>> roslib >>> [ make ]
[rosmake-0] <<< pycrypto <<< [PASS] [ 0.06 seconds ]
[ rosmake ] [ 4 of 14  Completed ]
[rosmake-0] >>> paramiko >>> [ make ]
[rosmake-0] <<< paramiko <<< [PASS] [ 0.04 seconds ]
[ rosmake ] [ 5 of 14  Completed ]
[rosmake-0] >>> roslang >>> [ make ]
[rosmake-0] <<< roslang <<<  No Makefile in package roslang

[ rosmake ] [ 6 of 14  Completed ]
[rosmake-0] >>> xmlrpcpp >>> [ make ]
[rosmake-0] <<< xmlrpcpp <<< [PASS] [ 0.81 seconds ]
[rosmake-1] <<< roslib <<< [PASS] [ 1.45 seconds ]
[ rosmake ] [ 8 of 14  Completed ]
[rosmake-1] >>> rospy >>> [ make ]
[ rosmake ] [ 8 of 14  Completed ]
[rosmake-0] >>> rosconsole >>> [ make ]
[rosmake-1] <<< rospy <<< [PASS] [ 0.82 seconds ]
[ rosmake ] Last 40 lines
{-------------------------------------------------------------------------------
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp: At
global scope:
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:57:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:57:
error: expected constructor, destructor, or type conversion before
‘g_level_lookup’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
error: expected `{' before ‘AppenderSkeleton’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
error: function definition does not declare parameters
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp: In
function ‘void ros::console::do_initialize()’:
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:141:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:141:
error: expected `;' before ‘ros_logger’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:142:
error: ‘ros_logger’ was not declared in this scope
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:142:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:144:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:144:
error: expected `;' before ‘roscpp_superdebug’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:145:
error: ‘roscpp_superdebug’ was not declared in this scope
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:145:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:150:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:157:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:161:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:161:
error: expected `;' before ‘logger’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:162:
error: ‘logger’ was not declared in this scope
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:162:
error: invalid use of incomplete type ‘class
ros::console::ROSConsoleStdioAppender’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
error: forward declaration of ‘class
ros::console::ROSConsoleStdioAppender’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp: At
global scope:
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: variable or field ‘print’ declared void
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: ‘log4cxx’ has not been declared
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: ‘logger’ was not declared in this scope
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: expected primary-expression before ‘const’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: expected primary-expression before ‘const’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:182:
error: expected primary-expression before ‘const’
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:182:
error: expected primary-expression before ‘...’ token
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:257:
error: expected `}' at end of input
  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:257:
error: expected `}' at end of input
  make[4]: *** [CMakeFiles/rosconsole.dir/src/rosconsole/rosconsole.o] Ошибка 1
  make[4]: Leaving directory `/home/alex/ros/ros/core/rosconsole/build'
  make[3]: *** [CMakeFiles/rosconsole.dir/all] Ошибка 2
  make[3]: Leaving directory `/home/alex/ros/ros/core/rosconsole/build'
  make[2]: *** [all] Error 2
  make[2]: Leaving directory `/home/alex/ros/ros/core/rosconsole/build'
  make[1]: *** [all] Error 2
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package rosconsole written to:
[ rosmake ]    /home/alex/.ros/rosmake/rosmake_output-20100116-152619/rosconsole/build_output.log
[rosmake-0] <<< rosconsole <<< [FAIL] [ 2.32 seconds ]
[ rosmake ] Halting due to failure in package rosconsole.
[ rosmake ].
[ rosmake ] Summary output to directory
[ rosmake ] /home/alex/.ros/rosmake/rosmake_output-20100116-152619
make: *** [minimal] Error 255

So it goes.)
I don't know what to do next.

Thank you.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
ros-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ros-users
Reply | Threaded
Open this post in threaded view
|

Re: [ros-users] questions about errors in rosdep and roscore

tfoote
Alex,
You need to install log4cxx.


I'm not sure what OS you're running, what exactly were the steps to get you where you are.  But I expect that

rosdep install roslib 

Should work for you. 

Or if that fails on Ubuntu 8.10 or earlier you can use the script in the middle of your error message to do it manually. 
Or on 9.04 or later you can instlal liblog4cxx10-dev
On redhat distros you just need to isntall log4cxx-devel

Tully

On Sat, Jan 16, 2010 at 4:37 AM, Alexander Shavykin <[hidden email]> wrote:
On 12/31/09, Brian Gerkey <[hidden email]> wrote:
>
> On Dec 24, 2009, at 8:37 AM, Alexander Shavykin wrote:
>
>> I have just installed ROS for the first time on Debian 5.0. as s
>> Kitchen Sink Install: (Recommended, includes tutorials and various
>> packages)
>> 1. I have a question connecting with Tutorial: "Building a ROS
>> Package"
>> When i try to run    $rosdep install turtlesim
>> I got next errors:
>>
>> alex@pc-shavykin:~$ rosdep install turtesim
>> rosdep: couldn't find package [turtesim]
>> alex@pc-shavykin:~$ rosdep install turtlesim
>> rosdep: couldn't find a way to satisfy rosdep [boost] on
>> OS/distro [debian] version [5.0]. This rosdep was defined in
>> /home/alex/ros/ros/rosdep.yaml   If you are able to edit that file
>> so the rosdep can
>> be satsified on your OS/distro, please send us a patch!
>>
>> rosdep: couldn't find a way to satisfy rosdep [boost] on
>> OS/distro [debian] version [5.0]. This rosdep was defined in
>> /home/alex/ros/ros/rosdep.yaml   If you are able to edit that file
>> so the rosdep can
>> be satsified on your OS/distro, please send us a patch!
>
> As the message says, rosdep doesn't know how to install boost on your
> debian 5.0 system.  You can try overriding the system identification
> that rosdep looks up, to make it use an installation method that's
> defined for a similar system.  Looking at ros/rosdep.yaml, we have
> definitions for squeeze/sid, lenny, and 3.1.  Take whichever is most
> similar to 5.0 and set ROSDEP_OS_VERSION, e.g., if 5.0 is similar to
> lenny:
>    export ROSDEP_OS_VERSION=lenny
>
> Then try the 'rosdep install' command again.  Note that this approach
> only makes sense if one of our existing system definitions is close
> enough to your system.
>
>> 2. And also when i try to run "roscore" there are another errors.
>>
>> alex@pc-shavykin:~$ roscore
>> ... logging to /home/alex/.ros/log/b54b7504-f08c-11de-
>> b140-0017a4e1c57c/roslaunch-pc-shavykin-3289.log
>>
>> ... loading XML file [/home/alex/ros/ros/tools/roslaunch/roscore.xml]
>> Added core node of type [rosout/rosout] in namespace [/]
>> started roslaunch server http://pc-shavykin:45455/
>>
>> SUMMARY
>> ========
>>
>> NODES
>>
>> starting new master (master configured for auto start)
>> process[master]: started with pid [3321]
>> ROS_MASTER_URI=http://pc-shavykin:11311/
>>
>> setting /run_id to b54b7504-f08c-11de-b140-0017a4e1c57c
>>
>> ERROR: rosout is not built. Please run 'rosmake rosout'
>> failed to start core service [/rosout]
>> [master] killing on exit
>> exiting...
>
> Looks like rosout was not made.  Looks like the bootstrap make step
> either wasn't run or didn't complete.  Try that again:
>
> cd $ROS_ROOT
> make
>
>       brian.
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> ros-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ros-users
>


Hello, Brian.
I continue to fight with errors:)
i have done as you wrote:

cd $ROS_ROOT
make

And then i got next
alex@pc-shavykin:~$ cd $ROS_ROOT
alex@pc-shavykin:~/ros/ros$ make
cd /home/alex/ros/ros/tools/rospack && make
make[1]: Entering directory `/home/alex/ros/ros/tools/rospack'
mkdir -p bin
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/ros/ros/tools/rospack/build
cd build && make
make[2]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[3]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
[ 62%] Built target rospack
make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
[ 75%] Built target rospackexe
make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
[ 87%] Built target rosstack
make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
[100%] Built target rosstackexe
make[3]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
make[2]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
make[1]: Leaving directory `/home/alex/ros/ros/tools/rospack'
rosmake gtest pycrypto paramiko roslaunch rosout rostest
[ rosmake ] Detected rosout not built, adding it to the build
[ rosmake ] Packages requested are: ['gtest', 'pycrypto', 'paramiko',
'roslaunch', 'rosout', 'rostest', 'rosout']
[ rosmake ] Logging to directory
[ rosmake ] /home/alex/.ros/rosmake/rosmake_output-20100116-152619
[ rosmake ] Expanded args ['gtest', 'pycrypto', 'paramiko',
'roslaunch', 'rosout', 'rostest', 'rosout'] to:
['gtest', 'pycrypto', 'paramiko', 'roslaunch', 'rosout', 'rostest', 'rosout']
[ rosmake ] Checking rosdeps compliance for system dependencies gtest,
pycrypto, paramiko, rosout, rostest, rosout.  This may take a few
seconds.
[ rosmake ] Rosdep couldn't check scripts: The following scripts were
not tested:
if [ ! -f /opt/ros/lib/liblog4cxx.so.10 ] ; then
 mkdir -p ~/ros/ros-deps
 cd ~/ros/ros-deps
 wget --tries=10
http://pr.willowgarage.com/downloads/apache-log4cxx-0.10.0-wg_patched.tar.gz
 tar xzf apache-log4cxx-0.10.0-wg_patched.tar.gz
 cd apache-log4cxx-0.10.0
 ./configure --prefix=/opt/ros
 make
 sudo make install
fi

if [ ! -f /opt/ros/lib/libboost_date_time-gcc43-mt*-1_37.a ] ; then
 mkdir -p ~/ros/ros-deps
 cd ~/ros/ros-deps
 wget --tries=10 http://pr.willowgarage.com/downloads/boost_1_37_0.tar.gz
 tar xzf boost_1_37_0.tar.gz
 cd boost_1_37_0
 ./configure --prefix=/opt/ros
 make
 sudo make install
fi


[ rosmake ] Rosdep check passed all system dependencies in packages
[ rosmake ] Prebuilding rospack
[ rosmake ] Prebuilding gtest
[ rosmake ] Prebuilding genmsg_cpp
[ rosmake ] [ 3 of 14  Completed ]
[rosmake-0] >>> pycrypto >>> [ make ]
[ rosmake ] [ 3 of 14  Completed ]
[rosmake-1] >>> roslib >>> [ make ]
[rosmake-0] <<< pycrypto <<< [PASS] [ 0.06 seconds ]
[ rosmake ] [ 4 of 14  Completed ]
[rosmake-0] >>> paramiko >>> [ make ]
[rosmake-0] <<< paramiko <<< [PASS] [ 0.04 seconds ]
[ rosmake ] [ 5 of 14  Completed ]
[rosmake-0] >>> roslang >>> [ make ]
[rosmake-0] <<< roslang <<<  No Makefile in package roslang

[ rosmake ] [ 6 of 14  Completed ]
[rosmake-0] >>> xmlrpcpp >>> [ make ]
[rosmake-0] <<< xmlrpcpp <<< [PASS] [ 0.81 seconds ]
[rosmake-1] <<< roslib <<< [PASS] [ 1.45 seconds ]
[ rosmake ] [ 8 of 14  Completed ]
[rosmake-1] >>> rospy >>> [ make ]
[ rosmake ] [ 8 of 14  Completed ]
[rosmake-0] >>> rosconsole >>> [ make ]
[rosmake-1] <<< rospy <<< [PASS] [ 0.82 seconds ]
[ rosmake ] Last 40 lines
{-------------------------------------------------------------------------------
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp: At
global scope:
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:57:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:57:
error: expected constructor, destructor, or type conversion before
‘g_level_lookup’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
error: expected `{' before ‘AppenderSkeleton’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
error: function definition does not declare parameters
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp: In
function ‘void ros::console::do_initialize()’:
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:141:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:141:
error: expected `;' before ‘ros_logger’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:142:
error: ‘ros_logger’ was not declared in this scope
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:142:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:144:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:144:
error: expected `;' before ‘roscpp_superdebug’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:145:
error: ‘roscpp_superdebug’ was not declared in this scope
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:145:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:150:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:157:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:161:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:161:
error: expected `;' before ‘logger’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:162:
error: ‘logger’ was not declared in this scope
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:162:
error: invalid use of incomplete type ‘class
ros::console::ROSConsoleStdioAppender’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
error: forward declaration of ‘class
ros::console::ROSConsoleStdioAppender’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp: At
global scope:
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: variable or field ‘print’ declared void
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: ‘log4cxx’ has not been declared
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: ‘logger’ was not declared in this scope
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: expected primary-expression before ‘const’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
error: expected primary-expression before ‘const’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:182:
error: expected primary-expression before ‘const’
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:182:
error: expected primary-expression before ‘...’ token
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:257:
error: expected `}' at end of input
 /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:257:
error: expected `}' at end of input
 make[4]: *** [CMakeFiles/rosconsole.dir/src/rosconsole/rosconsole.o] Ошибка 1
 make[4]: Leaving directory `/home/alex/ros/ros/core/rosconsole/build'
 make[3]: *** [CMakeFiles/rosconsole.dir/all] Ошибка 2
 make[3]: Leaving directory `/home/alex/ros/ros/core/rosconsole/build'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/home/alex/ros/ros/core/rosconsole/build'
 make[1]: *** [all] Error 2
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package rosconsole written to:
[ rosmake ]    /home/alex/.ros/rosmake/rosmake_output-20100116-152619/rosconsole/build_output.log
[rosmake-0] <<< rosconsole <<< [FAIL] [ 2.32 seconds ]
[ rosmake ] Halting due to failure in package rosconsole.
[ rosmake ].
[ rosmake ] Summary output to directory
[ rosmake ] /home/alex/.ros/rosmake/rosmake_output-20100116-152619
make: *** [minimal] Error 255

So it goes.)
I don't know what to do next.

Thank you.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
ros-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ros-users



--
Tully Foote
Systems Engineer
Willow Garage, Inc.
[hidden email]
(650) 475-2827

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
ros-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ros-users
Reply | Threaded
Open this post in threaded view
|

Re: [ros-users] questions about errors in rosdep and roscore

Alexander Shavykin
Hi, Tully.
Thanks for the help.
I have OS Debian lenny 5.0

I partially cope with errors. i did
<<rosdep install roslib
and it helped me.

<<roscore   and  <<rosdep install turtesim
work well.

But there is another error
when i run
alex@pc-shavykin:~$ rosmake beginner_tutorials
i got
[ rosmake ] Packages requested are: ['beginner_tutorials']
[ rosmake ] Logging to directory
[ rosmake ] /home/alex/.ros/rosmake/rosmake_output-20100125-173206
[ rosmake ] Expanded args ['beginner_tutorials'] to:
[]
[ rosmake ] WARNING: The following args could not be parsed as stacks
or packages: ['beginner_tutorials']
[ rosmake ] ERROR: No arguments could be parsed into valid package or
stack names.

What should i do?

Thank you.

On 1/23/10, Tully Foote <[hidden email]> wrote:

> Alex,
> You need to install log4cxx.
>
>
> I'm not sure what OS you're running, what exactly were the steps to get you
> where you are.  But I expect that
>
> rosdep install roslib
>
> Should work for you.
>
> Or if that fails on Ubuntu 8.10 or earlier you can use the script in the
> middle of your error message to do it manually.
> Or on 9.04 or later you can instlal liblog4cxx10-dev
> On redhat distros you just need to isntall log4cxx-devel
>
> Tully
>
> On Sat, Jan 16, 2010 at 4:37 AM, Alexander Shavykin
> <[hidden email]>wrote:
>
>> On 12/31/09, Brian Gerkey <[hidden email]> wrote:
>> >
>> > On Dec 24, 2009, at 8:37 AM, Alexander Shavykin wrote:
>> >
>> >> I have just installed ROS for the first time on Debian 5.0. as s
>> >> Kitchen Sink Install: (Recommended, includes tutorials and various
>> >> packages)
>> >> 1. I have a question connecting with Tutorial: "Building a ROS
>> >> Package"
>> >> When i try to run    $rosdep install turtlesim
>> >> I got next errors:
>> >>
>> >> alex@pc-shavykin:~$ rosdep install turtesim
>> >> rosdep: couldn't find package [turtesim]
>> >> alex@pc-shavykin:~$ rosdep install turtlesim
>> >> rosdep: couldn't find a way to satisfy rosdep [boost] on
>> >> OS/distro [debian] version [5.0]. This rosdep was defined in
>> >> /home/alex/ros/ros/rosdep.yaml   If you are able to edit that file
>> >> so the rosdep can
>> >> be satsified on your OS/distro, please send us a patch!
>> >>
>> >> rosdep: couldn't find a way to satisfy rosdep [boost] on
>> >> OS/distro [debian] version [5.0]. This rosdep was defined in
>> >> /home/alex/ros/ros/rosdep.yaml   If you are able to edit that file
>> >> so the rosdep can
>> >> be satsified on your OS/distro, please send us a patch!
>> >
>> > As the message says, rosdep doesn't know how to install boost on your
>> > debian 5.0 system.  You can try overriding the system identification
>> > that rosdep looks up, to make it use an installation method that's
>> > defined for a similar system.  Looking at ros/rosdep.yaml, we have
>> > definitions for squeeze/sid, lenny, and 3.1.  Take whichever is most
>> > similar to 5.0 and set ROSDEP_OS_VERSION, e.g., if 5.0 is similar to
>> > lenny:
>> >    export ROSDEP_OS_VERSION=lenny
>> >
>> > Then try the 'rosdep install' command again.  Note that this approach
>> > only makes sense if one of our existing system definitions is close
>> > enough to your system.
>> >
>> >> 2. And also when i try to run "roscore" there are another errors.
>> >>
>> >> alex@pc-shavykin:~$ roscore
>> >> ... logging to /home/alex/.ros/log/b54b7504-f08c-11de-
>> >> b140-0017a4e1c57c/roslaunch-pc-shavykin-3289.log
>> >>
>> >> ... loading XML file [/home/alex/ros/ros/tools/roslaunch/roscore.xml]
>> >> Added core node of type [rosout/rosout] in namespace [/]
>> >> started roslaunch server http://pc-shavykin:45455/
>> >>
>> >> SUMMARY
>> >> ========
>> >>
>> >> NODES
>> >>
>> >> starting new master (master configured for auto start)
>> >> process[master]: started with pid [3321]
>> >> ROS_MASTER_URI=http://pc-shavykin:11311/
>> >>
>> >> setting /run_id to b54b7504-f08c-11de-b140-0017a4e1c57c
>> >>
>> >> ERROR: rosout is not built. Please run 'rosmake rosout'
>> >> failed to start core service [/rosout]
>> >> [master] killing on exit
>> >> exiting...
>> >
>> > Looks like rosout was not made.  Looks like the bootstrap make step
>> > either wasn't run or didn't complete.  Try that again:
>> >
>> > cd $ROS_ROOT
>> > make
>> >
>> >       brian.
>> >
>> >
>> ------------------------------------------------------------------------------
>> > This SF.Net email is sponsored by the Verizon Developer Community
>> > Take advantage of Verizon's best-in-class app development support
>> > A streamlined, 14 day to market process makes app distribution fast and
>> easy
>> > Join now and get one step closer to millions of Verizon customers
>> > http://p.sf.net/sfu/verizon-dev2dev
>> > _______________________________________________
>> > ros-users mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/ros-users
>> >
>>
>>
>> Hello, Brian.
>> I continue to fight with errors:)
>> i have done as you wrote:
>>
>> cd $ROS_ROOT
>> make
>>
>> And then i got next
>> alex@pc-shavykin:~$ cd $ROS_ROOT
>> alex@pc-shavykin:~/ros/ros$ make
>> cd /home/alex/ros/ros/tools/rospack && make
>> make[1]: Entering directory `/home/alex/ros/ros/tools/rospack'
>> mkdir -p bin
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to:
>> /home/alex/ros/ros/tools/rospack/build
>> cd build && make
>> make[2]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
>> make[3]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
>> make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
>> make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
>> [ 62%] Built target rospack
>> make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
>> make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
>> [ 75%] Built target rospackexe
>> make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
>> make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
>> [ 87%] Built target rosstack
>> make[4]: Entering directory `/home/alex/ros/ros/tools/rospack/build'
>> make[4]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
>> [100%] Built target rosstackexe
>> make[3]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
>> make[2]: Leaving directory `/home/alex/ros/ros/tools/rospack/build'
>> make[1]: Leaving directory `/home/alex/ros/ros/tools/rospack'
>> rosmake gtest pycrypto paramiko roslaunch rosout rostest
>> [ rosmake ] Detected rosout not built, adding it to the build
>> [ rosmake ] Packages requested are: ['gtest', 'pycrypto', 'paramiko',
>> 'roslaunch', 'rosout', 'rostest', 'rosout']
>> [ rosmake ] Logging to directory
>> [ rosmake ] /home/alex/.ros/rosmake/rosmake_output-20100116-152619
>> [ rosmake ] Expanded args ['gtest', 'pycrypto', 'paramiko',
>> 'roslaunch', 'rosout', 'rostest', 'rosout'] to:
>> ['gtest', 'pycrypto', 'paramiko', 'roslaunch', 'rosout', 'rostest',
>> 'rosout']
>> [ rosmake ] Checking rosdeps compliance for system dependencies gtest,
>> pycrypto, paramiko, rosout, rostest, rosout.  This may take a few
>> seconds.
>> [ rosmake ] Rosdep couldn't check scripts: The following scripts were
>> not tested:
>> if [ ! -f /opt/ros/lib/liblog4cxx.so.10 ] ; then
>>  mkdir -p ~/ros/ros-deps
>>  cd ~/ros/ros-deps
>>  wget --tries=10
>>
>> http://pr.willowgarage.com/downloads/apache-log4cxx-0.10.0-wg_patched.tar.gz
>>  tar xzf apache-log4cxx-0.10.0-wg_patched.tar.gz
>>  cd apache-log4cxx-0.10.0
>>  ./configure --prefix=/opt/ros
>>  make
>>  sudo make install
>> fi
>>
>> if [ ! -f /opt/ros/lib/libboost_date_time-gcc43-mt*-1_37.a ] ; then
>>  mkdir -p ~/ros/ros-deps
>>  cd ~/ros/ros-deps
>>  wget --tries=10 http://pr.willowgarage.com/downloads/boost_1_37_0.tar.gz
>>  tar xzf boost_1_37_0.tar.gz
>>  cd boost_1_37_0
>>  ./configure --prefix=/opt/ros
>>  make
>>  sudo make install
>> fi
>>
>>
>> [ rosmake ] Rosdep check passed all system dependencies in packages
>> [ rosmake ] Prebuilding rospack
>> [ rosmake ] Prebuilding gtest
>> [ rosmake ] Prebuilding genmsg_cpp
>> [ rosmake ] [ 3 of 14  Completed ]
>> [rosmake-0] >>> pycrypto >>> [ make ]
>> [ rosmake ] [ 3 of 14  Completed ]
>> [rosmake-1] >>> roslib >>> [ make ]
>> [rosmake-0] <<< pycrypto <<< [PASS] [ 0.06 seconds ]
>> [ rosmake ] [ 4 of 14  Completed ]
>> [rosmake-0] >>> paramiko >>> [ make ]
>> [rosmake-0] <<< paramiko <<< [PASS] [ 0.04 seconds ]
>> [ rosmake ] [ 5 of 14  Completed ]
>> [rosmake-0] >>> roslang >>> [ make ]
>> [rosmake-0] <<< roslang <<<  No Makefile in package roslang
>>
>> [ rosmake ] [ 6 of 14  Completed ]
>> [rosmake-0] >>> xmlrpcpp >>> [ make ]
>> [rosmake-0] <<< xmlrpcpp <<< [PASS] [ 0.81 seconds ]
>> [rosmake-1] <<< roslib <<< [PASS] [ 1.45 seconds ]
>> [ rosmake ] [ 8 of 14  Completed ]
>> [rosmake-1] >>> rospy >>> [ make ]
>> [ rosmake ] [ 8 of 14  Completed ]
>> [rosmake-0] >>> rosconsole >>> [ make ]
>> [rosmake-1] <<< rospy <<< [PASS] [ 0.82 seconds ]
>> [ rosmake ] Last 40 lines
>>
>> {-------------------------------------------------------------------------------
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp: At
>> global scope:
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:57:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:57:
>> error: expected constructor, destructor, or type conversion before
>> ‘g_level_lookup’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
>> error: expected `{' before ‘AppenderSkeleton’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
>> error: function definition does not declare parameters
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp: In
>> function ‘void ros::console::do_initialize()’:
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:141:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:141:
>> error: expected `;' before ‘ros_logger’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:142:
>> error: ‘ros_logger’ was not declared in this scope
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:142:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:144:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:144:
>> error: expected `;' before ‘roscpp_superdebug’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:145:
>> error: ‘roscpp_superdebug’ was not declared in this scope
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:145:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:150:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:157:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:161:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:161:
>> error: expected `;' before ‘logger’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:162:
>> error: ‘logger’ was not declared in this scope
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:162:
>> error: invalid use of incomplete type ‘class
>> ros::console::ROSConsoleStdioAppender’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:71:
>> error: forward declaration of ‘class
>> ros::console::ROSConsoleStdioAppender’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp: At
>> global scope:
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
>> error: variable or field ‘print’ declared void
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
>> error: ‘log4cxx’ has not been declared
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
>> error: ‘logger’ was not declared in this scope
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
>> error: expected primary-expression before ‘const’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:181:
>> error: expected primary-expression before ‘const’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:182:
>> error: expected primary-expression before ‘const’
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:182:
>> error: expected primary-expression before ‘...’ token
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:257:
>> error: expected `}' at end of input
>>  /home/alex/ros/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:257:
>> error: expected `}' at end of input
>>  make[4]: *** [CMakeFiles/rosconsole.dir/src/rosconsole/rosconsole.o]
>> Ошибка 1
>>  make[4]: Leaving directory `/home/alex/ros/ros/core/rosconsole/build'
>>  make[3]: *** [CMakeFiles/rosconsole.dir/all] Ошибка 2
>>  make[3]: Leaving directory `/home/alex/ros/ros/core/rosconsole/build'
>>  make[2]: *** [all] Error 2
>>  make[2]: Leaving directory `/home/alex/ros/ros/core/rosconsole/build'
>>  make[1]: *** [all] Error 2
>>
>> -------------------------------------------------------------------------------}
>> [ rosmake ] Output from build of package rosconsole written to:
>> [ rosmake ]
>>
>> /home/alex/.ros/rosmake/rosmake_output-20100116-152619/rosconsole/build_output.log
>> [rosmake-0] <<< rosconsole <<< [FAIL] [ 2.32 seconds ]
>> [ rosmake ] Halting due to failure in package rosconsole.
>> [ rosmake ].
>> [ rosmake ] Summary output to directory
>> [ rosmake ] /home/alex/.ros/rosmake/rosmake_output-20100116-152619
>> make: *** [minimal] Error 255
>>
>> So it goes.)
>> I don't know what to do next.
>>
>> Thank you.
>>
>>
>> ------------------------------------------------------------------------------
>> Throughout its 18-year history, RSA Conference consistently attracts the
>> world's best and brightest in the field, creating opportunities for
>> Conference
>> attendees to learn about information security's most important issues
>> through
>> interactions with peers, luminaries and emerging and established
>> companies.
>> http://p.sf.net/sfu/rsaconf-dev2dev
>> _______________________________________________
>> ros-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/ros-users
>>
>
>
>
> --
> Tully Foote
> Systems Engineer
> Willow Garage, Inc.
> [hidden email]
> (650) 475-2827
>

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
ros-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ros-users