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

OpenCV library stdlib.h missing in colcon build of kobuki sim #428

Open
mwwoodm opened this issue Jan 6, 2021 · 0 comments
Open

OpenCV library stdlib.h missing in colcon build of kobuki sim #428

mwwoodm opened this issue Jan 6, 2021 · 0 comments

Comments

@mwwoodm
Copy link

mwwoodm commented Jan 6, 2021

I'm following the getting-started-with-ubuntu course of the AWS RoboMaker tutorial available at https://github.com/aws-robotics/aws-r... and am following the below sequence of commands to setup the turtlebot and bobuki simulators:

  cd ~/ros_workspace/src
  git clone https://github.com/turtlebot/turtlebot 
  git clone https://github.com/yujinrobot/kobuki 
  cd .. 
  rosdep install --from-paths src --ignore-src -r -y 
  colcon build

However during the colcon build command, there seems to be an issue with stdlib.h in OpenCV when building the Kobuki Desktop. The error message follows:

--- stderr: OpenCV
In file included from /usr/include/c++/7/bits/stl_algo.h:59:0, from /usr/include/c++/7/algorithm:62, from /home/mwwoodm/ros_workspace/src/kobuki_desktop/opencv-3.1.0/modules/core/include/opencv2/core/base.hpp:53, from /home/mwwoodm/ros_workspace/src/kobuki_desktop/opencv-3.1.0/modules/core/include/opencv2/core.hpp:54, from /home/mwwoodm/ros_workspace/src/kobuki_desktop/opencv-3.1.0/modules/core/include/opencv2/core/utility.hpp:52, from /home/mwwoodm/ros_workspace/build/OpenCV/modules/core/precomp.hpp:49: /usr/include/c++/7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h> ^~~~~~~~~~ compilation terminated. make[2]: * [modules/core/precomp.hpp.gch/opencv_core_Release.gch] Error 1 make[1]: * [modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all] Error 2

make: * [all] Error 2
Failed <<< OpenCV [26.1s, exited with code 2] Aborted <<< kobuki_node [1min 6s]

I'd appreciate thoughts on steps that I could take to fix this error.
I've tried installing OpenCV via apt:

  sudo apt-get update
  sudo apt install python3-opencv
  cd ros_workspace
  colcon build

But this did not fix the issue with stdlib.h

Thanks in advance!

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

1 participant