Skip to content

Commit

Permalink
Avoid symbol redefition to fix armel builds (#457)
Browse files Browse the repository at this point in the history
* Avoid symbol redefiniition on armel builds

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
  • Loading branch information
j-rivero committed Oct 13, 2021
1 parent 43f53aa commit e61ff3c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions include/ignition/rendering/Storage.hh
Expand Up @@ -294,6 +294,10 @@ namespace ignition
public: virtual ~StoreWrapper() { }
};

// armhf failed to build with this code. It can not be removed for the rest
// of arches to keep ABI but should be removed in major versions unreleased
// see https://github.com/ignitionrobotics/ign-rendering/pull/457
#ifndef __ARM_PCS_VFP
template class Store<Scene>;
template class Store<Node>;
template class Store<Light>;
Expand All @@ -303,6 +307,7 @@ namespace ignition
template class Store<SubMesh>;
template class Map<Material>;
template class CompositeStore<Node>;
#endif

/// \def SceneStore
/// \brief Store of Scene
Expand Down
7 changes: 6 additions & 1 deletion ogre/include/ignition/rendering/ogre/OgreStorage.hh
Expand Up @@ -34,7 +34,11 @@ namespace ignition
namespace rendering
{
inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
//

// armhf failed to build with this code. It can not be removed for the rest
// of arches to keep ABI but should be removed in major versions unreleased
// see https://github.com/ignitionrobotics/ign-rendering/pull/457
#ifndef __ARM_PCS_VFP
template class BaseSceneStore<OgreScene>;
template class BaseNodeStore<OgreNode>;
template class BaseLightStore<OgreLight>;
Expand All @@ -43,6 +47,7 @@ namespace ignition
template class BaseGeometryStore<OgreGeometry>;
template class BaseSubMeshStore<OgreSubMesh>;
template class BaseMaterialMap<OgreMaterial>;
#endif

typedef BaseSceneStore<OgreScene> OgreSceneStore;
typedef BaseNodeStore<OgreNode> OgreNodeStore;
Expand Down
7 changes: 6 additions & 1 deletion ogre2/include/ignition/rendering/ogre2/Ogre2Storage.hh
Expand Up @@ -33,14 +33,19 @@ namespace ignition
namespace rendering
{
inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
//

// armhf failed to build with this code. It can not be removed for the rest
// of arches to keep ABI but should be removed in major versions unreleased
// see https://github.com/ignitionrobotics/ign-rendering/pull/457
#ifndef __ARM_PCS_VFP
template class BaseGeometryStore<Ogre2Geometry>;
template class BaseLightStore<Ogre2Light>;
template class BaseNodeStore<Ogre2Node>;
template class BaseSceneStore<Ogre2Scene>;
template class BaseSensorStore<Ogre2Sensor>;
template class BaseSubMeshStore<Ogre2SubMesh>;
template class BaseVisualStore<Ogre2Visual>;
#endif

typedef BaseGeometryStore<Ogre2Geometry> Ogre2GeometryStore;
typedef BaseLightStore<Ogre2Light> Ogre2LightStore;
Expand Down

0 comments on commit e61ff3c

Please sign in to comment.