ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

compile errors after update (ros::console)

asked 2014-01-27 00:04:19 -0600

jringel77 gravatar image

updated 2014-04-20 14:09:34 -0600

ngrennan gravatar image

After last update i ran into a few compile errors. Before the weekend everything was working fine, but after the update i can't compile anymore.

What can i do?

This is the output:

Linking CXX executable ../bin/ardrone_driver
  CMakeFiles/ardrone_driver.dir/src/ardrone_driver.cpp.o: In function `ARDroneDriver::readCovParams(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::array<double, 9ul>&)':
  /home/jeroen/ROS/packages/ardrone_autonomy/src/ardrone_driver.cpp:313: undefined reference to `ros::console::print(ros::console::FilterBase*, log4cxx::Logger*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
  /home/jeroen/ROS/packages/ardrone_autonomy/src/ardrone_driver.cpp:296: undefined reference to `ros::console::print(ros::console::FilterBase*, log4cxx::Logger*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
  /home/jeroen/ROS/packages/ardrone_autonomy/src/ardrone_driver.cpp:290: undefined reference to `ros::console::print(ros::console::FilterBase*, log4cxx::Logger*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
  /home/jeroen/ROS/packages/ardrone_autonomy/src/ardrone_driver.cpp:307: undefined reference to `ros::console::print(ros::console::FilterBase*, log4cxx::Logger*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
  /home/jeroen/ROS/packages/ardrone_autonomy/src/ardrone_driver.cpp:302: undefined reference to `ros::console::print(ros::console::FilterBase*, log4cxx::Logger*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
  CMakeFiles/ardrone_driver.dir/src/ardrone_driver.cpp.o:/home/jeroen/ROS/packages/ardrone_autonomy/src/ardrone_driver.cpp:324: more undefined references to `ros::console::print(ros::console::FilterBase*, log4cxx::Logger*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)' follow
  collect2: ld returned 1 exit status
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2014-01-27 00:06:47 -0600

Wolf gravatar image

Try:

sudo apt-get install -f

sudo apt-get autoremove

together with erasing build dirs and rebuilding in your workspace by (in the catkin_ws folder:)

rm -r devel
rm -r build
catkin_make

(See http://answers.ros.org/question/121266/undefined-symbol/?answer=121291#post-id-121291)

edit flag offensive delete link more

Comments

thanks solved!

jringel77 gravatar image jringel77  ( 2014-01-27 00:16:55 -0600 )edit

Thanks a lot, solved

Adnan Munawar gravatar image Adnan Munawar  ( 2014-02-28 18:30:30 -0600 )edit

it is not working for me... any further suggestions?

kargas gravatar image kargas  ( 2014-03-24 04:27:12 -0600 )edit

@kargas what kind of errors do you get? undefined ref to what?

Wolf gravatar image Wolf  ( 2014-03-24 05:05:55 -0600 )edit

its kinda different ... /home/user/hydro_ws/src/openni_camera/src/nodelets/driver.cpp: In member function ‘void openni_camera::DriverNodelet::onInitImpl()’: /home/user/hydro_ws/src/openni_camera/src/nodelets/driver.cpp:149:3: error: ‘LoggerPtr’ is not a member of ‘log4cxx’ /home/user/hydro_ws/src/openni_camera/src/nodelets/driver.cpp:149:22: error: expected ‘;’ before ‘logger_ccp’ /home/user/hydro_ws/src/openni_camera/src/nodelets/driver.cpp:150:3: error: ‘LoggerPtr’ is not a member of ‘log4cxx’ /home/user/hydro_ws/src/openni_camera/src/nodelets/driver.cpp:150:22: error: expected ‘;’ before ‘logger_cim’ /home/user/hydro_ws/src/openni_camera/src/nodelets/driver.cpp:151:3: error: ‘logger_ccp’ was not declared in this scope /home/user/hydro_ws/src/openni_camera/src/nodelets/driver.cpp:152:3: error: ‘logger_cim’ was not declared in this scope /home/user/hydro_ws/src/openni_camera/src/nodelets/driver.cpp:157:3: error: ‘LoggerPtr’ is not a member of ‘log4cxx’ /home/user/hydro_ws/src/openni_

kargas gravatar image kargas  ( 2014-03-24 05:20:23 -0600 )edit

Plz create a separate thread and past the the parts of your nodelets/driver.cpp which cause the error (around line 150...)

Wolf gravatar image Wolf  ( 2014-03-24 05:28:13 -0600 )edit

will do Wolf thanks for your concern

kargas gravatar image kargas  ( 2014-03-24 05:30:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-01-27 00:04:19 -0600

Seen: 1,823 times

Last updated: Jan 27 '14