Open OgreTransporter opened 2 years ago
Thank you for the heads up. I'll add a check for LIBXML_XPTR_LOCS_ENABLED
combined with a check for LIBXML_VERSION
once a new libxml2 version with this feature is released. Versions up to 2.9.14 do not include this definition yet.
Should be fixed by 471b85768127ca68d75271a41dbad1fc19fe9245.
The problem in line 56 https://github.com/roboticslibrary/rl/blob/102896d1e39459609731b7b250a1fbf40dafed7b/src/rl/xml/Object.h#L56
can be quickly understood by looking at the definition of
XPATH_LOCATIONSET
in libxml2:#define XPATH_LOCATIONSET 7
https://gitlab.gnome.org/GNOME/libxml2/-/blob/670701075b969962db1b869507318e81e96910d1/include/libxml/xpath.h#L120This means
::XPATH_LOCATIONSET
becomes::7
, which of course cannot be compiled.See deprecation explaination: https://gitlab.gnome.org/GNOME/libxml2/-/commit/670701075b969962db1b869507318e81e96910d1
TODO: Remove/Replace XPointer locations support