Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable YARP options that depend on ffmpeg #1284

Closed
wants to merge 2 commits into from
Closed

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Oct 6, 2022

Fix #1071 .

cc @S-Dafarra

@traversaro traversaro requested a review from Nicogene October 6, 2022 13:43
@traversaro
Copy link
Member Author

traversaro commented Oct 6, 2022

On conda we are fortunatly still installing ffmpeg 4.4, as there is a compilation error with ffmpeg 5 (see robotology/yarp#2885).

For ffmpeg 4, instead we have a linking error:

ffmpegPortmonitor.obj : error LNK2019: unresolved external symbol av_freep referenced in function "protected: int __cdecl FfmpegMonitorObject::compress(class yarp
::sig::Image *,struct AVPacket *)" (?compress@FfmpegMonitorObject@@IEAAHPEAVImage@sig@yarp@@PEAUAVPacket@@@Z) [C:\src\yarp\builddev\src\portmonitors\image_compres
sion_ffmpeg\yarp_pm_image_compression_ffmpeg.vcxproj]
ffmpegPortmonitor.obj : error LNK2019: unresolved external symbol av_buffer_create referenced in function "public: virtual class yarp::os::Things & __cdecl Ffmpeg
MonitorObject::update(class yarp::os::Things &)" (?update@FfmpegMonitorObject@@UEAAAEAVThings@os@yarp@@AEAV234@@Z) [C:\src\yarp\builddev\src\portmonitors\image_co
mpression_ffmpeg\yarp_pm_image_compression_ffmpeg.vcxproj]
ffmpegPortmonitor.obj : error LNK2019: unresolved external symbol av_buffer_default_free referenced in function "public: virtual class yarp::os::Things & __cdecl
FfmpegMonitorObject::update(class yarp::os::Things &)" (?update@FfmpegMonitorObject@@UEAAAEAVThings@os@yarp@@AEAV234@@Z) [C:\src\yarp\builddev\src\portmonitors\im
age_compression_ffmpeg\yarp_pm_image_compression_ffmpeg.vcxproj]
ffmpegPortmonitor.obj : error LNK2019: unresolved external symbol av_frame_alloc referenced in function "protected: int __cdecl FfmpegMonitorObject::compress(clas
s yarp::sig::Image *,struct AVPacket *)" (?compress@FfmpegMonitorObject@@IEAAHPEAVImage@sig@yarp@@PEAUAVPacket@@@Z) [C:\src\yarp\builddev\src\portmonitors\image_c
ompression_ffmpeg\yarp_pm_image_compression_ffmpeg.vcxproj]
ffmpegPortmonitor.obj : error LNK2019: unresolved external symbol av_frame_free referenced in function "protected: int __cdecl FfmpegMonitorObject::compress(class
 yarp::sig::Image *,struct AVPacket *)" (?compress@FfmpegMonitorObject@@IEAAHPEAVImage@sig@yarp@@PEAUAVPacket@@@Z) [C:\src\yarp\builddev\src\portmonitors\image_co
mpression_ffmpeg\yarp_pm_image_compression_ffmpeg.vcxproj]
ffmpegPortmonitor.obj : error LNK2019: unresolved external symbol av_opt_set referenced in function "protected: int __cdecl FfmpegMonitorObject::setCommandLinePar
ams(void)" (?setCommandLineParams@FfmpegMonitorObject@@IEAAHXZ) [C:\src\yarp\builddev\src\portmonitors\image_compression_ffmpeg\yarp_pm_image_compression_ffmpeg.v
cxproj]
ffmpegPortmonitor.obj : error LNK2019: unresolved external symbol av_image_alloc referenced in function "protected: int __cdecl FfmpegMonitorObject::compress(clas
s yarp::sig::Image *,struct AVPacket *)" (?compress@FfmpegMonitorObject@@IEAAHPEAVImage@sig@yarp@@PEAUAVPacket@@@Z) [C:\src\yarp\builddev\src\portmonitors\image_c
ompression_ffmpeg\yarp_pm_image_compression_ffmpeg.vcxproj]
C:\src\yarp\builddev\lib\yarp\Release\yarp_pm_image_compression_ffmpeg.dll : fatal error LNK1120: 7 unresolved externals [C:\src\yarp\builddev\src\portmonitors\im
age_compression_ffmpeg\yarp_pm_image_compression_ffmpeg.vcxproj]

@traversaro
Copy link
Member Author

For ffmpeg 4, instead we have a linking error:

Fixed by robotology/yarp#2886 .

@traversaro
Copy link
Member Author

Unfortunatly, yarp does not support ffmpeg 5, so enabling this is problematic at the moment. Closing until robotology/yarp#2885 is fixed.

@traversaro traversaro closed this Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable h264 and ffmpeg support on YARP in the superbuild?
2 participants