Receive an undefined reference error when make teleop_nao_ni
When trying to rosmake the nao_openni package I receive the following error:
Linking CXX executable ../bin/teleop_nao_ni
/opt/ros/electric/stacks/robot_model/urdf/lib/liburdf.so: error: undefined reference to 'operator<<(std::basic_ostream<char, std::char_traits<char=""> >&, TiXmlNode const&)'
collect2: ld returned 1 exit status
This error only occurs on making the teleop_nao_ni executable. Anyone have any suggestions on what I can do to fix the liburdf.so error?
Note: All the dependencies for the package compile fine, the paths are correct (ros_package_path, pythonpath, pythonhome, ros_workspace) and the object file compiles so there shouldn't be an error in the cpp file.