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

rebind error #3

Open
YoungHaulk opened this issue Jan 9, 2023 · 4 comments
Open

rebind error #3

YoungHaulk opened this issue Jan 9, 2023 · 4 comments

Comments

@YoungHaulk
Copy link

Thanks for your great work. When compilering the code, I got the follow error. Can you give me some suggestion? Thanks!

/opt/ros/noetic/include/ros/serialization.h:335:82: error: no class template named ‘rebind’ in ‘class std::allocator<celex5_msgs::Event_<std::allocator > >’
335 | typedef std::vector<T, typename ContainerAllocator::template rebind::other> VecType;
| ^~~~~~~
/opt/ros/noetic/include/ros/serialization.h:336:38: error: no class template named ‘rebind’ in ‘class std::allocator<celex5_msgs::Event_<std::allocator > >’
336 | typedef typename VecType::iterator IteratorType;
| ^~~~~~~~~~~~
/opt/ros/noetic/include/ros/serialization.h:337:44: error: no class template named ‘rebind’ in ‘class std::allocator<celex5_msgs::Event_<std::allocator > >’
337 | typedef typename VecType::const_iterator ConstIteratorType;

@kehanXue
Copy link
Owner

This problem looks like caused by ROS version. The ROS version melodic has been tested. ROS noetic is not promised.

@SureleG
Copy link

SureleG commented May 14, 2023

Hi,i also have the same question
/opt/ros/melodic/include/dynamic_reconfigure/Config.h:49:201: error: no class template named ‘rebind’ in ‘class std::allocator’
but the version of ROS is melodic

@msh003
Copy link

msh003 commented Jan 8, 2024

Hi,i also have the same question /opt/ros/melodic/include/dynamic_reconfigure/Config.h:49:201: error: no class template named ‘rebind’ in ‘class std::allocator’ but the version of ROS is melodic

Could you solve this issue?

@zeyulong
Copy link

zeyulong commented Feb 2, 2024

dv-runtime-1.2.5
need gcc >= 7.0, no need gcc >= 10.0
I success.

uninstall dv-runtime-dev

apt list --installed | grep -i dv-runtime-dev
sudo apt remove dv-runtime-dev
sudo apt-get purge dv-runtime-dev

download dv-runtime-1.2.5

https://gitlab.com/inivation/dv/dv-runtime/-/tree/1.2.5?ref_type=tags

build dv-runtime-1.2.5

cd dv-runtime-1.2.5
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make -j8
sudo make install

error

/dv-runtime-1.2.5/modules/calibration/calibration.cpp:50:63: error: ‘class cv::FileNode’ has no member named ‘string’; did you mean ‘isString’?

# dv-runtime-1.2.5/CmakeList.txt
set(OpenCV_DIR /usr/local/opencv/opencv345/share/OpenCV)  # example

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

5 participants