openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.25k stars 1.42k forks source link

Build error from Yocto Kirkstone #1299

Open bchoineubility opened 9 months ago

bchoineubility commented 9 months ago

Hi,

I am building OpenSceneGraph-3.6.5 with Yocto which use ffmpeg-5.0.1. When I provide dependency for ffmpeg, it occurred compile error with following logs.

git/src/osgPlugins/ffmpeg/FFmpegPacket.hpp:45:17: error: 'av_free_packet' was not declared in this scope; did you mean 'av_new_packet'?
.
.
.

git/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.hpp:91:25: error: 'AVPicture' has not been declared

I think osgPlugins for ffmpeg is not upgrade with ffmpeg version up.

BR, Mark

robertosfield commented 9 months ago

3.6.5 predates the changes to ffmpeg which have broken compatibility.

There is a PR that I haven't had a chance to review and merge which you could try out. #1281.