squarerobot / bagger

ROS node for programmatic control of multiple rosbag record processes
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Race condition building messages #1

Closed tfoote closed 6 years ago

tfoote commented 6 years ago

The message dependencies have not been declared and this is causing a race condition when building the messages.

It's passing for 32bit http://build.ros.org/view/Kbin_uX32/job/Kbin_uX32__bagger__ubuntu_xenial_i386__binary/

But failing on 64bit systems. http://build.ros.org/view/Kbin_uX32/job/Kbin_uX64__bagger__ubuntu_xenial_amd64__binary/

You need to use the add_dependencies method in CMake to ensure the message headers are generated before the target is attempted to be built.

Some good resources; https://answers.ros.org/question/73048/first-compile-with-messages-messages-not-found/ https://answers.ros.org/question/192758/messages-not-being-generated-before-dependent-package/ https://answers.ros.org/question/188982/message-headers-wont-build-first/

brenden-gibbons commented 6 years ago

Thanks for pointing this out!