I have previously (a few months ago) managed to build my program with no problems, however I tried doing so today, with all code unchanged, and I presented with these errors. Is anyone able to tell me what I would need to do to fix this?
10:25:05: Starting: "/usr/bin/make"
g++ -o OMR main.o OMR.o svm.o score.o moc_OMR.o -L/usr/local/lib -lopencv_core -lopencv_imgcodecs -lopencv_highgui -lopencv_imgproc -lopencv_ml -lopencv_objdetect -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/ld: warning: libImath-2_2.so.12, needed by /usr/local/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libIlmImf-2_2.so.22, needed by /usr/local/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libIex-2_2.so.12, needed by /usr/local/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libHalf.so.12, needed by /usr/local/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libIlmThread-2_2.so.12, needed by /usr/local/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libavcodec.so.57, needed by /usr/local/lib/libopencv_videoio.so.3.3, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libavformat.so.57, needed by /usr/local/lib/libopencv_videoio.so.3.3, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libavutil.so.55, needed by /usr/local/lib/libopencv_videoio.so.3.3, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libswscale.so.4, needed by /usr/local/lib/libopencv_videoio.so.3.3, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libavresample.so.3, needed by /usr/local/lib/libopencv_videoio.so.3.3, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to av_write_frame@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
avcodec_flush_buffers@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avformat_free_context@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_reduce@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to av_rescale_q@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_write_trailer@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::ChannelList::insert(char const*, Imf_2_2::Channel const&)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_free@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avcodec_encode_video2@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to
Imf_2_2::hasChromaticities(Imf_2_2::Header const&)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avcodec_decode_video2@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
avcodec_get_context_defaults3@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to av_log_set_level@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to
Imf_2_2::InputFile::readPixels(int, int)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::InputFile::setFrameBuffer(Imf_2_2::FrameBuffer const&)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
avformat_get_riff_video_tags@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avformat_network_init@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
avcodec_close@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avformat_find_stream_info@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
avformat_open_input@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to av_register_all@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_packet_unref@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to av_frame_free@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to
Imf_2_2::Header::channels() const'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to av_frame_unref@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
avformat_get_mov_video_tags@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::InputFile::InputFile(char const*, int)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_opt_set@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::FrameBuffer::insert(char const*, Imf_2_2::Slice const&)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_image_get_buffer_size@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::chromaticities(Imf_2_2::Header const&)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_frame_get_buffer@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avformat_alloc_context@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_read_frame@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to av_dict_parse_string@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_frame_alloc@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avformat_write_header@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_dict_set@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::globalThreadCount()'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_image_fill_arrays@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avcodec_find_encoder@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to
Imf_2_2::InputFile::header() const'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to sws_getCachedContext@LIBSWSCALE_4'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_seek_frame@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::OutputFile::writePixels(int)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_lockmgr_register@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avcodec_open2@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_malloc@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avio_close@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_init_packet@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::Channel::Channel(Imf_2_2::PixelType, int, int, bool)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_mallocz@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avformat_close_input@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_guess_codec@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: 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_videoio.so.3.3: undefined reference to
avio_open@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::OutputFile::setFrameBuffer(Imf_2_2::FrameBuffer const&)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_guess_format@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::Header::dataWindow() const'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
sws_getContext@LIBSWSCALE_4'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avformat_new_stream@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to
half::_eLut'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::Header::channels()'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_sub_q@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::Header::~Header()'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to
Imf_2_2::OutputFile::OutputFile(char const, Imf_2_2::Header const&, int)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::ChannelList::findChannel(char const*) const'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_freep@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to avcodec_find_decoder@LIBAVCODEC_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_codec_get_tag@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to sws_scale@LIBSWSCALE_4'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
sws_freeContext@LIBSWSCALE_4'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_2::Header::Header(int, int, float, Imath_2_2::Vec2<float> const&, float, Imf_2_2::LineOrder, Imf_2_2::Compression)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to
av_dict_free@LIBAVUTIL_55'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to half::convert(int)'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to
Imf_2_2::Chromaticities::Chromaticities(Imath_2_2::Vec2<float> const&, Imath_2_2::Vec2<float> const&, Imath_2_2::Vec2<float> const&, Imath_2_2::Vec2<float> const&)'
/usr/bin/ld: /usr/local/lib/libopencv_videoio.so.3.3: undefined reference to av_codec_get_id@LIBAVFORMAT_57'
/usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to
Imf_2_2::OutputFile::~OutputFile()'
collect2: error: ld returned 1 exit status
make: ** [Makefile:288: OMR] Error 1
10:25:06: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project OMR (kit: Desktop)
When executing step "Make"