Motion-Project / motionplus

MotionPlus Home Page: https://motion-project.github.io/
GNU General Public License v3.0
319 stars 40 forks source link

Ubuntu 24.04 Beta / FFmpeg 7 - still not compiling #141

Closed axeljerabek closed 7 months ago

axeljerabek commented 7 months ago

Did you read the guide?

Yes

What is the base version number of MotionPlus being used?

0.1.x

What was the install method?

Built from source code

What is base architecture?

x86/x64

What is the distro being used?

Ubuntu

Disto version number

24.04 LTS

Camera/Sound type(s) being used?

Network camera with RTSP

Describe the issue/problem and steps to reproduce

The first bug was solved. There seems to be a bug with opencv still:

g++ -std=c++17 -o motionplus alg.o alg_sec.o conf.o dbse.o draw.o event.o exif.o jpegutils.o libcam.o logger.o motionplus.o motion_loop.o movie.o netcam.o picture.o rotate.o sound.o util.o video_v4l2.o video_common.o video_loopback.o webu.o webu_file.o webu_html.o webu_json.o webu_post.o webu_stream.o webu_mpegts.o -pthread -ljpeg -lmicrohttpd -lwebpmux -lwebp -lcamera -lcamera-base -lavutil -lavformat -lavcodec -lswscale -lavdevice -L/usr/local/lib -lopencv_gapi -lopencv_stitching -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dnn_superres -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_hfs -lopencv_img_hash -lopencv_intensity_transform -lopencv_line_descriptor -lopencv_mcc -lopencv_quality -lopencv_rapid -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_superres -lopencv_optflow -lopencv_surface_matching -lopencv_tracking -lopencv_highgui -lopencv_datasets -lopencv_text -lopencv_plot -lopencv_videostab -lopencv_videoio -lopencv_wechat_qrcode -lopencv_xfeatures2d -lopencv_shape -lopencv_ml -lopencv_ximgproc -lopencv_video -lopencv_xobjdetect -lopencv_objdetect -lopencv_calib3d -lopencv_imgcodecs -lopencv_features2d -lopencv_dnn -lopencv_flann -lopencv_xphoto -lopencv_photo -lopencv_imgproc -lopencv_core -L/usr/lib/x86_64-linux-gnu/ -lmariadb -lpulse -pthread -lpulse-simple -lasound -lfftw3 /usr/bin/ld: Warnung: libIlmImf-2_5.so.25, benötigt von /usr/local/lib/libopencv_imgcodecs.so, nicht gefunden (versuchen Sie mit using -rpath oder -rpath-link) /usr/bin/ld: Warnung: libSvtAv1Enc.so.0, benötigt von /lib/x86_64-linux-gnu/libavfilter.so.9, nicht gefunden (versuchen Sie mit using -rpath oder -rpath-link) /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::Header::Header(int, int, float, Imath_2_5::Vec2 const&, float, Imf_2_5::LineOrder, Imf_2_5::Compression)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::InputFile::header() const' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::Chromaticities::Chromaticities(Imath_2_5::Vec2 const&, Imath_2_5::Vec2 const&, Imath_2_5::Vec2 const&, Imath_2_5::Vec2 const&)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::globalThreadCount()' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::OutputFile::writePixels(int)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::hasChromaticities(Imf_2_5::Header const&)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::Channel::Channel(Imf_2_5::PixelType, int, int, bool)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::Header::channels() const' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::Header::compression()' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::InputFile::InputFile(char const, int)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::InputFile::readPixels(int, int)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::FrameBuffer::begin()' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::FrameBuffer::end()' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::Header::dataWindow() const' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::OutputFile::~OutputFile()' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::Header::~Header()' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::chromaticities(Imf_2_5::Header const&)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::InputFile::setFrameBuffer(Imf_2_5::FrameBuffer const&)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::OutputFile::OutputFile(char const, Imf_2_5::Header const&, int)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::Header::channels()' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::ChannelList::insert(char const, Imf_2_5::Channel const&)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::FrameBuffer::insert(char const, Imf_2_5::Slice const&)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::ChannelList::findChannel(char const) const' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to Imf_2_5::Slice::Slice(Imf_2_5::PixelType, char, unsigned long, unsigned long, int, int, double, bool, bool)' /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_5::OutputFile::setFrameBuffer(Imf_2_5::FrameBuffer const&)' collect2: error: ld returned 1 exit status make[2]: [Makefile:453: motionplus] Fehler 1 make[2]: Verzeichnis „/home/axel/dev/motionplus/src“ wird verlassen make[1]: [Makefile:567: all-recursive] Fehler 1 make[1]: Verzeichnis „/home/axel/dev/motionplus“ wird verlassen make: *** [Makefile:411: all] Fehler 2

I have to check that with opencv it seems.

Relevant MotionPlus log output (at log_level 8)

none
Mr-Dave commented 7 months ago

Closing. These are all link issues with Opencv. You probably need to wait till 24.04 is officially released.

axeljerabek commented 7 months ago

Thought so. Should be out in the upcoming days. Thanks! :)