OpenCV library stdlib.h missing in colcon build of kobuki sim
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. Thanks in advance!