Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin build err:PointVisual.cpp:9: /usr/include/OGRE/OgreVector3.h: In member function 'Ogre::Vector3 Ogre::Vector3::perpendicular() const': /usr/include/OGRE/OgreVector3.h:582:20: error: implicitly-declared 'constexpr Ogre::Vector3::Vector3(const Ogre::Vector3&)' is deprecated [-Werror=deprecated-copy] #17

Open
dbdxnuliba opened this issue Sep 28, 2022 · 4 comments

Comments

@dbdxnuliba
Copy link

ROS:noetic
ubuntu:20.04
when catkin build -j3

[ 50%] Linking C shared library /home/taimi/ref/ws_quad_ctrl/devel/lib/libosqp.so
In file included from /usr/include/OGRE/OgreMatrix3.h:33,
from /usr/include/OGRE/OgreNode.h:34,
from /usr/include/OGRE/OgreSceneNode.h:33,
from /usr/include/OGRE/OgreSceneManager.h:37,
from /home/taimi/ref/ws_quad_ctrl/src/whole_body_state_rviz_plugin-master/src/PointVisual.cpp:9:
/usr/include/OGRE/OgreVector3.h: In member function 'Ogre::Vector3 Ogre::Vector3::perpendicular() const':
/usr/include/OGRE/OgreVector3.h:582:20: error: implicitly-declared 'constexpr Ogre::Vector3::Vector3(const Ogre::Vector3&)' is deprecated [-Werror=deprecated-copy]
582 | return perp;
| ^~~~
/usr/include/OGRE/OgreVector3.h:134:25: note: because 'Ogre::Vector3' has user-provided 'Ogre::Vector3& Ogre::Vector3::operator=(const Ogre::Vector3&)'
134 | inline Vector3& operator = ( const Vector3& rkVector )
| ^~~~~~~~
/usr/include/OGRE/OgreVector3.h: In member function 'Ogre::Quaternion Ogre::Vector3::getRotationTo(const Ogre::Vector3&, const Ogre::Vector3&) const':
/usr/include/OGRE/OgreVector3.h:661:27: error: implicitly-declared 'constexpr Ogre::Vector3::Vector3(const Ogre::Vector3&)' is deprecated [-Werror=deprecated-copy]
661 | Vector3 v0 = *this;
| ^~~~
/usr/include/OGRE/OgreVector3.h:134:25: note: because 'Ogre::Vector3' has user-provided 'Ogre::Vector3& Ogre::Vector3::operator=(const Ogre::Vector3&)'
134 | inline Vector3& operator = ( const Vector3& rkVector )
| ^~~~~~~~
/usr/include/OGRE/OgreVector3.h:662:26: error: implicitly-declared 'constexpr Ogre::Vector3::Vector3(const Ogre::Vector3&)' is deprecated [-Werror=deprecated-copy]
662 | Vector3 v1 = dest;
| ^~~~
/usr/include/OGRE/OgreVector3.h:134:25: note: because 'Ogre::Vector3' has user-provided 'Ogre::Vector3& Ogre::Vector3::operator=(const Ogre::Vector3&)'
134 | inline Vector3& operator = ( const Vector3& rkVector )
| ^~~~~~~~
/usr/include/OGRE/OgreVector3.h:670:36: error: implicitly-declared 'constexpr Ogre::Quaternion::Quaternion(const Ogre::Quaternion&)' is deprecated [-Werror=deprecated-copy]
670 | return Quaternion::IDENTITY;
| ^~~~~~~~
In file included from /usr/include/OGRE/OgreVector3.h:33,
image

@dbdxnuliba
Copy link
Author

it's ok now ,by use https://github.com/loco-3d/whole_body_state_rviz_plugin
you can close the issue

@LiuYiKai6
Copy link

Hello! I met the same issue, but this does not work for me.
Do you do any other thing to fix it?

it's ok now ,by use https://github.com/loco-3d/whole_body_state_rviz_plugin you can close the issue

@yoggi56
Copy link

yoggi56 commented Jun 23, 2023

Paste this line to CMakeList.txt in the node whole_body_state_rviz_plugin:
set(CMAKE_CXX_FLAGS "-std=c++14 -Wno-unused-parameter -Wno-deprecated-copy -Wno-unused-but-set-parameter" CACHE STRING "" FORCE)

@BIT-XLJ
Copy link

BIT-XLJ commented Oct 28, 2023

Paste this line to CMakeList.txt in the node whole_body_state_rviz_plugin: set(CMAKE_CXX_FLAGS "-std=c++14 -Wno-unused-parameter -Wno-deprecated-copy -Wno-unused-but-set-parameter" CACHE STRING "" FORCE)

really helpful!Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants