catkin_make error "Invoking "make -j8 -l8" failed"

asked 2021-01-10 18:08:48 -0600

FurkanEdizkan gravatar image

updated 2021-01-11 15:24:28 -0600

Orhan gravatar image

Hello good people, I am relatively new to ROS,

I am trying to compile my workspace with a cloned repository from

(https://github.com/aniskoubaa/ros_ess...)

When I invoke catkin_make I keep getting an error

~/catkin_ws$ catkin_make
...
[ 91%] Built target scan_subscriber_cpp
[ 94%] Built target add_two_ints_client
[ 97%] Built target add_two_ints_server
/usr/bin/ld: warning: libopencv_imgcodecs.so.4.2, needed by /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.4.2.0, may conflict with libopencv_imgcodecs.so.4.5
/usr/bin/ld: warning: libopencv_imgproc.so.4.5, needed by /usr/local/lib/libopencv_imgcodecs.so.4.5.1, may conflict with libopencv_imgproc.so.4.2
/usr/bin/ld: warning: libIlmImf-2_2.so.22, needed by /usr/local/lib/libopencv_imgcodecs.so.4.5.1, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_core.so.4.5, needed by /usr/local/lib/libopencv_imgcodecs.so.4.5.1, may conflict with libopencv_core.so.4.2
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::ChannelList::insert(char const*, Imf_2_2::Channel const&)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::hasChromaticities(Imf_2_2::Header const&)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::InputFile::readPixels(int, int)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::InputFile::setFrameBuffer(Imf_2_2::FrameBuffer const&)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::Header::channels() const'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::InputFile::InputFile(char const*, int)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::FrameBuffer::insert(char const*, Imf_2_2::Slice const&)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::chromaticities(Imf_2_2::Header const&)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::globalThreadCount()'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::InputFile::header() const'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::OutputFile::writePixels(int)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::Channel::Channel(Imf_2_2::PixelType, int, int, bool)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::FrameBuffer::begin()'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::Slice::Slice(Imf_2_2::PixelType, char*, unsigned long, unsigned long, int, int, double, bool, bool)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::OutputFile::setFrameBuffer(Imf_2_2::FrameBuffer const&)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::Header::dataWindow() const'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::Header::channels()'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so.4.5.1: undefined reference to `Imf_2_2::Header::~Header()'
/usr ...
(more)
edit retag flag offensive close merge delete

Comments

Please update this question and provide the full error message. As you've written the question it's impossible to determine what might be wrong.

jarvisschultz gravatar image jarvisschultz  ( 2021-01-11 11:09:57 -0600 )edit

I edited and added the full message to the question sir, thank you

FurkanEdizkan gravatar image FurkanEdizkan  ( 2021-01-11 14:42:04 -0600 )edit
1

Looks like you installed libopencv 4.5 (maybe compiled from source?) You need to uninstall or hide it.

Orhan gravatar image Orhan  ( 2021-01-11 15:33:31 -0600 )edit

Yes i think you are right sir, I had opencv installed before so it probably not working properly for this case. I am trying to remove it fully but it seems it is rather a long process I still find opencv files even after purge. After if it works i will post a solution if any other person face same issue.

FurkanEdizkan gravatar image FurkanEdizkan  ( 2021-01-13 06:36:26 -0600 )edit