Electric compile error in code that compiles with Diamondback: "rospack.h:195: error: ‘rospack_tinyxml’ has not been declared"
When compiling some packges that compile on diamondback I get the following set of compile errors:
In file included from /home/somervil/Projects/rdk2project/stacks/re2rosUtil/re2_ros_util/include/re2_ros_util/Factory.h:30,
from /home/somervil/Projects/rdk2project/stacks/re2arm/re2_arm_driver/src/driver_common/Driver.cpp:27:
/opt/ros/electric/ros/tools/rospack/include/rospack/rospack.h:195: error: ‘rospack_tinyxml’ has not been declared
/opt/ros/electric/ros/tools/rospack/include/rospack/rospack.h:195: error: ISO C++ forbids declaration of ‘TiXmlElement’ with no type
/opt/ros/electric/ros/tools/rospack/include/rospack/rospack.h:195: error: expected ‘;’ before ‘*’ token
/opt/ros/electric/ros/tools/rospack/include/rospack/rospack.h:210: error: ‘rospack_tinyxml’ has not been declared
/opt/ros/electric/ros/tools/rospack/include/rospack/rospack.h:210: error: ISO C++ forbids declaration of ‘TiXmlDocument’ with no type
/opt/ros/electric/ros/tools/rospack/include/rospack/rospack.h:210: error: expected ‘;’ before ‘manifest’
I'll be answering this shortly myself. I'm just asking it for posterity, and to provide the solution to others.