Error when building the catkin workspace
I'm trying to build from source, I'm on Linux, using Debian distribution and I have the bullseye version. Here is the error I got when trying to build the catkin workspace as explain in the tutorial for building from source: [ 11%] Building CXX object src/rviz/CMakeFiles/rviz.dir/ogrehelpers/camerabase.cpp.o /home/adelie/roscatkinws/src/rviz/src/rviz/ogrehelpers/applyvisibilitybits.cpp: In function ‘void rviz::applyVisibilityBits(uint32t, Ogre::SceneNode*)’: /home/adelie/roscatkinws/src/rviz/src/rviz/ogrehelpers/applyvisibilitybits.cpp:44:35: error: variable ‘Ogre::SceneNode::ObjectIterator objit’ has initializer but incomplete type 44 | Ogre::SceneNode::ObjectIterator objit = node->getAttachedObjectIterator(); | ^~~~~~ /home/adelie/roscatkinws/src/rviz/src/rviz/ogrehelpers/applyvisibilitybits.cpp:44:76: warning: ‘Ogre::SceneNode::ObjectIterator Ogre::SceneNode::getAttachedObjectIterator()’ is deprecated [-Wdeprecated-declarations] 44 | ::SceneNode::ObjectIterator obj_it = node->getAttachedObjectIterator(); | ^
In file included from /home/adelie/roscatkinws/src/rviz/src/rviz/ogrehelpers/applyvisibilitybits.cpp:33: /usr/local/include/OGRE/OgreSceneNode.h:226:40: note: declared here 226 | OGREDEPRECATED ObjectIterator getAttachedObjectIterator(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/adelie/roscatkinws/src/rviz/src/rviz/ogrehelpers/applyvisibilitybits.cpp:44:76: error: invalid use of incomplete type ‘Ogre::SceneNode::ObjectIterator’ {aka ‘class Ogre::VectorIteratorstd::vector<Ogre::MovableObject* >’} 44 | ::SceneNode::ObjectIterator objit = node->getAttachedObjectIterator(); | ^
In file included from /usr/local/include/OGRE/OgreRenderable.h:37,
from /usr/local/include/OGRE/OgreShadowCaster.h:32,
from /usr/local/include/OGRE/OgreMovableObject.h:36,
from /home/adelie/roscatkinws/src/rviz/src/rviz/ogrehelpers/applyvisibilitybits.cpp:32:
/usr/local/include/OGRE/OgreMaterial.h:45:33: note: declaration of ‘Ogre::SceneNode::ObjectIterator’ {aka ‘class Ogre::VectorIteratorstd::vector<Ogre::MovableObject* >’}
45 | template
In file included from /usr/local/include/OGRE/OgreSceneNode.h:34, from /home/adelie/roscatkinws/src/rviz/src/rviz/ogrehelpers/applyvisibilitybits.cpp:33: /usr/local/include/OGRE/OgreNode.h:477:43: note: declared here 477 | OGREDEPRECATED ChildNodeIterator getChildIterator(void); | ^~~~~~~~~~~~~~~~ /home/adelie/roscatkinws/src/rviz/src/rviz/ogrehelpers/applyvisibilitybits.cpp:51:72: error: invalid use of incomplete type ‘Ogre::Node::ChildNodeIterator’ {aka ‘class Ogre::VectorIteratorstd::vector<Ogre::Node* >’} 51 | Ogre::SceneNode::ChildNodeIterator childit = node->getChildIterator(); | ^
In file included from /usr/local/include/OGRE/OgreRenderable.h:37,
from /usr/local/include/OGRE/OgreShadowCaster.h:32,
from /usr/local/include/OGRE/OgreMovableObject.h:36,
from /home/adelie/roscatkinws/src/rviz/src/rviz/ogrehelpers/applyvisibilitybits.cpp:32:
/usr/local/include/OGRE/OgreMaterial.h:45:33: note: declaration of ‘Ogre::Node::ChildNodeIterator’ {aka ‘class Ogre::VectorIteratorstd::vector<Ogre::Node* >’}
45 | template
Reproduce this error by running: ==> cd /home/adelie/roscatkinws/buildisolated/rviz && /home/adelie/roscatkinws/installisolated/env.sh make -j4 -l4
Command failed, exiting.
Asked by adede on 2023-06-14 14:52:29 UTC
Comments