Closed osrf-migration closed 5 years ago
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
One thing to check is if this failure occurs with clang on Ubuntu.
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
I just confirmed that the build fails with clang on ubuntu, but it also gave an extra error message with a clue about how to fix it:
error: cannot cast
'ignition::rendering::v1::OgreDepthCamera' to its protected base class 'const
std::enable_shared_from_this<ignition::rendering::v1::BaseObject>'
if (auto __base = __enable_shared_from_this_base(_M_refcount, __p))
^
...
include/ignition/rendering/base/BaseDepthCamera.hh:43:7: note: constrained by protected inheritance
here
protected virtual BaseCamera<T>,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I'm testing inheriting with public
instead of protected
in d320c7365e0e6f474b6ddfd2a109552f7b95dca6
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
There is a compilation error for clang / macOS in
OgreScene.cc
related to theDepthCamera
class since pull request #93. I haven't tested with clang on Ubuntu yet.The clearest way to see the error is by adding the following
static_assert
:This passes on Ubuntu with gcc, but fails on macOS with clang:
cc @JChoclin