aniskoubaa / ros_essentials_cpp

155 stars 153 forks source link

catkin_make error #5

Open ashfaqayaaz98 opened 4 years ago

ashfaqayaaz98 commented 4 years ago

/home/ashfaqayaaz/catkin_ws/src/ros_essentials_cpp/src/topic03_perception/cpp/open_copy.cpp:1:10: fatal error: highgui.h: No such file or directory 1 | #include | ^~~ compilation terminated.

Invoking "make -j4 -l4" failed

VineetTambe commented 3 years ago

I am getting a similar error:


Traceback (most recent call last):
  File "/opt/ros/melodic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 43, in <module>
    import genmsg.template_tools
  File "/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
    import em
ImportError: No module named em
ros_essentials_cpp/CMakeFiles/ros_essentials_cpp_generate_messages_cpp.dir/build.make:70: recipe for target '/home/vineet/catkin_ws/devel/include/ros_essentials_cpp/FibonacciGoal.h' failed
make[2]: *** [/home/vineet/catkin_ws/devel/include/ros_essentials_cpp/FibonacciGoal.h] Error 1
CMakeFiles/Makefile2:1591: recipe for target 'ros_essentials_cpp/CMakeFiles/ros_essentials_cpp_generate_messages_cpp.dir/all' failed
make[1]: *** [ros_essentials_cpp/CMakeFiles/ros_essentials_cpp_generate_messages_cpp.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1 -l1" failed

Has anyone found a solution to this ?

VineetTambe commented 3 years ago

import e

The solution is to install the "empy" and the "pyyaml" packages if not installed already

pip install empy
pip install pyyaml
Ruiji-Liu commented 3 years ago

same error

SalmaEl-gohary commented 3 years ago