ros-drivers/usb_cam

Invoking "make -j2 -l2" failed

MARHEM602 opened this issue · 4 comments

Hello, I have a problem with the package. I can gitclone the package but I have this problem when I catkin_make my work area.
I'm on Ros melodic on ubuntu 18.04 on linux.
Thanks in advance

image

@MARHEM602 you are compiling your workspace using by default a C++11 compiler. std::make_unique is implemented in STL for C++14. Try to add -DCMAKE_CXX_FLAGS="-std=c++14" in your invocation or use a newer compiler.

I updated my G++ and ran the command :
catkin_make -DCMAKE_CXX_FLAGS="-std=c++14"

But I still have the same problem

Incremental compiling prevents changing the standard. Try to remove build and devel subdirectories and recompile the entire workspace

image
I'm going to update Opencv, I'll contact you as soon as I'm done. Thank you