[ros-users] Building ROS - rosconsole

Tully Foote tfoote at willowgarage.com
Thu Jul 22 18:46:54 UTC 2010


Sacha,
A quick glance suggests that you are missing the system dependency log4cxx.
 Can you send the full output logged
to  /home/hand/.ros/rosmake/rosmake_output-20100722-134408/rosconsole/build_output.log
 This snipit is missing the original errors.

Also, I highly recommend using cturtle instead of latest.  cturtle has had
more developer time recently than latest and consequently is more stable and
has more features.  I expect you'll find anything you need in latest also
exists in cturtle.

Tully

On Thu, Jul 22, 2010 at 5:53 AM, Sacha Aury <sacha at shadowrobot.com> wrote:

> Hi,
>
> I currently have a problem to build ROS (latest, which is the one I
> need)
> It is not my first install of ROS, and the last one I did was yesterday,
> without any problem.
>
> But today, it crashes when trying to compile rosconsole. Here is the
> log :
>
> [ rosmake ] [ make ] [ rosconsole: 16.67 sec ]
> [ 1 Active 9/14 Complete ][ rosmake ] Last 40 lines
>
> {-------------------------------------------------------------------------------
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:352:
> error: expected class-name before ‘{’ token
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:359:
> error: expected unqualified-id before ‘::’ token
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:359:
> error: expected ‘,’ or ‘...’ before ‘::’ token
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:
> In member function ‘virtual void
> ros::console::ROSConsoleStdioAppender::append()’:
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:361:
> error: ‘event’ was not declared in this scope
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:
> In function ‘void ros::console::do_initialize()’:
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:384:
> error: variable ‘log4cxx::LoggerPtr ros_logger’ has initializer but
> incomplete type
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:384:
> error: incomplete type ‘log4cxx::Logger’ used in nested name specifier
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:385:
> error: incomplete type ‘log4cxx::Level’ used in nested name specifier
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:387:
> error: variable ‘log4cxx::LoggerPtr roscpp_superdebug’ has initializer but
> incomplete type
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:387:
> error: incomplete type ‘log4cxx::Logger’ used in nested name specifier
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:388:
> error: incomplete type ‘log4cxx::Level’ used in nested name specifier
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:393:
> error: ‘log4cxx::PropertyConfigurator’ has not been declared
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:400:
> error: ‘log4cxx::PropertyConfigurator’ has not been declared
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:413:
> error: variable ‘log4cxx::LoggerPtr logger’ has initializer but incomplete
> type
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:413:
> error: incomplete type ‘log4cxx::Logger’ used in nested name specifier
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:
> In function ‘void ros::console::print(ros::console::FilterBase*,
> log4cxx::Logger*, ros::console::Level, const char*, int, const char*,
> const char*, ...)’:
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:492:
> error: variable ‘log4cxx::LoggerPtr logger_ptr’ has initializer but
> incomplete type
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:502:
> error: ‘struct ros::console::FilterParams’ has no member named ‘logger’
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:505:
> error: ‘struct ros::console::FilterParams’ has no member named ‘logger’
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:525:
> error: ‘log4cxx::spi’ has not been declared
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:
> In function ‘void ros::console::print(ros::console::FilterBase*,
> log4cxx::Logger*, ros::console::Level, const std::stringstream&, const
> char*, int, const char*)’:
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:548:
> error: variable ‘log4cxx::LoggerPtr logger_ptr’ has initializer but
> incomplete type
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:559:
> error: ‘struct ros::console::FilterParams’ has no member named ‘logger’
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:562:
> error: ‘struct ros::console::FilterParams’ has no member named ‘logger’
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:575:
> error: invalid use of incomplete type ‘struct log4cxx::Logger’
>  /home/hand/ros_test/ros/core/rosconsole/include/ros/console.h:64:
> error: forward declaration of ‘struct log4cxx::Logger’
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:575:
> error: ‘log4cxx::spi’ has not been declared
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:
> In function ‘void
> ros::console::checkLogLocationEnabledNoLock(ros::console::LogLocation*)’:
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:598:
> error: invalid use of incomplete type ‘struct log4cxx::Logger’
>  /home/hand/ros_test/ros/core/rosconsole/include/ros/console.h:64:
> error: forward declaration of ‘struct log4cxx::Logger’
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:
> In function ‘void
> ros::console::initializeLogLocation(ros::console::LogLocation*, const
> std::string&, ros::console::Level)’:
>  /home/hand/ros_test/ros/core/rosconsole/src/rosconsole/rosconsole.cpp:610:
> error: incomplete type ‘log4cxx::Logger’ used in nested name specifier
>  make[3]: *** [CMakeFiles/rosconsole.dir/src/rosconsole/rosconsole.o]
> Error 1
>  make[3]: Leaving directory
> `/home/hand/ros_test/ros/core/rosconsole/build'
>  make[2]: *** [CMakeFiles/rosconsole.dir/all] Error 2
>  make[2]: Leaving directory
> `/home/hand/ros_test/ros/core/rosconsole/build'
>  make[1]: *** [all] Error 2
>  make[1]: Leaving directory
> `/home/hand/ros_test/ros/core/rosconsole/build'
>
> -------------------------------------------------------------------------------}
> [ rosmake ] Output from build of package rosconsole written to:
> [ rosmake ]
>  /home/hand/.ros/rosmake/rosmake_output-20100722-134408/rosconsole/build_output.log
> [rosmake-0] Finished <<< rosconsole [FAIL] [ 16.67 seconds ]
> [ rosmake ] Halting due to failure in package rosconsole.
> [ rosmake ] Waiting for other threads to complete.
> [ rosmake ] Results:
> [ rosmake ] Built 10 packages with 1 failures.
> [ rosmake ] Summary output to directory
> [ rosmake ] /home/hand/.ros/rosmake/rosmake_output-20100722-134408
> Traceback (most recent call last):
>  File "/home/hand/rosinstall", line 326, in <module>
>    sys.exit(rosinstall_main(sys.argv) or 0)
>  File "/home/hand/rosinstall", line 319, in rosinstall_main
>    subprocess.check_call("source %s && rosmake rostest
> --rosdep-install" % (os.path.join(options.path, 'setup.sh')),
> shell=True, executable='/bin/bash')
>  File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
>    raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command
> 'source /home/hand/ros_test/setup.sh && rosmake rostest
> --rosdep-install' returned non-zero exit status 1
>
> I searched a little for the missing include, but did not find anything
> interesting.
>
> If someone knows how to fix it...
>
> Thanks
>
> Sacha
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>



-- 
Tully Foote
Systems Engineer
Willow Garage, Inc.
tfoote at willowgarage.com
(650) 475-2827
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100722/4d9af202/attachment-0003.html>


More information about the ros-users mailing list