ROS Package Compilation libgdal.so Issue

Hello,

I installed ROS Melodic to our system after upgrading to Drive Software 10 by following the steps from this link: http://wiki.ros.org/melodic/Installation/Ubuntu. I successfully completed the steps. Then, I tried to compile Basler pylon-ROS-camera(https://github.com/basler/pylon-ros-camera) package with “catkin_make” command, but the compilation finished with the errors below:

//usr/lib/libgdal.so.20: undefined reference to `xercesc_3_2::XMLString::transcode(char16_t const*, xercesc_3_2::MemoryManager*)'
//usr/lib/libgdal.so.20: undefined reference to `xercesc_3_2::XSModel::getElementDeclaration(char16_t const*, char16_t const*)'
//usr/lib/libgdal.so.20: undefined reference to `xercesc_3_2::DOMImplementationRegistry::getDOMImplementation(char16_t const*)'
//usr/lib/libgdal.so.20: undefined reference to `xercesc_3_2::XSModel::getComponentsByNamespace(xercesc_3_2::XSConstants::COMPONENT_TYPE, char16_t const*)'
//usr/lib/libgdal.so.20: undefined reference to `xercesc_3_2::InputSource::setEncoding(char16_t const*)'
//usr/lib/libgdal.so.20: undefined reference to `xercesc_3_2::XMLString::release(char16_t**, xercesc_3_2::MemoryManager*)'
//usr/lib/libgdal.so.20: undefined reference to `xercesc_3_2::InputSource::setPublicId(char16_t const*)'
//usr/lib/libgdal.so.20: undefined reference to `xercesc_3_2::InputSource::setSystemId(char16_t const*)'
collect2: error: ld returned 1 exit status

When I checked the forum, I realized that someone else is experiencing similar problems. Link to the post: https://devtalk.nvidia.com/default/topic/1068379/general/ros-with-driveworks-on-xavier-compilation-and-runtime-issues/post/5411387/#5411387. Is there any update for the solution of libgdal.so compilation issue?

Best regards

Hi mert.colak,

I replied in the other topic. You can check on your side too. Thanks!

terry.shi, in that topic, pointed out that even running “gdalinfo” command gets the same undefined symbol issue.

Hi mert.colak,

We provided a resolution at https://devtalk.nvidia.com/default/topic/1069642/general/libgdal-so-has-undefined-symbol/post/5419173/#5419173. Please take a visit. Thanks!

Hi VickNV,

Thank you it solved my problem.