Closed traversaro closed 3 weeks ago
PR that fixes a similar problem in Gazebo Classic: https://github.com/osrf/gazebo/pull/3195 .
At the moment I am not working on this, so anyone that wants to work on this is welcome. Note that Ubuntu 24.04 probably will only ship with ffmpeg 5, and not with ffmpeg 4.
It interesting to note that the image_compression_ffmpeg
portmonitor instead compiles fine with both ffmpeg 5 and 6, so that one can compile fine with recent ffmpeg.
I do not know if it is related to this issue or not but I am having a compilation error as below when the option ENABLE_yarpcar_portmonitor
is ON
: (https://github.com/ami-iit/element_haptic-gloves/issues/159#issuecomment-1805295330)
[ 50%] Building CXX object src/portmonitors/image_compression_ffmpeg/CMakeFiles/yarp_pm_image_compression_ffmpeg.dir/ffmpegPortmonitor.cpp.o
[ 50%] Linking CXX shared module ../../../lib/yarp/yarp_pm_image_compression_ffmpeg.so
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libswscale.a(hscale_fast_bilinear_simd.o): relocation R_X86_64_32S against `.text.unlikely' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[5]: *** [src/portmonitors/image_compression_ffmpeg/CMakeFiles/yarp_pm_image_compression_ffmpeg.dir/build.make:118: lib/yarp/yarp_pm_image_compression_ffmpeg.so] Error 1
make[4]: *** [CMakeFiles/Makefile2:5623: src/portmonitors/image_compression_ffmpeg/CMakeFiles/yarp_pm_image_compression_ffmpeg.dir/all] Error 2
make[3]: *** [Makefile:156: all] Error 2
make[2]: *** [CMakeFiles/YARP.dir/build.make:85: src/YARP/CMakeFiles/YCMStamp/YARP-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:1083: CMakeFiles/YARP.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
No, that error is different. Can you open a new issue describing the environment in which you are experiencing this problem?
We decided to deprecate devices ffmpeg_grabber
and ffmpeg_writer
.
The compilation of these plugins has been disabled and they will be removed in the near future.
For a yarp device with compatible functionalities, please use opencv_grabber
Compilation error:
Warning when compiling against ffmpeg 4.4, that are mostly related to deprecations that are errors on yarp 5.0 :