OVITO Forum

OVITO => Support Forum => Topic started by: vernieri on April 16, 2019, 04:20:36 PM

Title: error during compilation
Post by: vernieri on April 16, 2019, 04:20:36 PM
Hi,

I just want to share:

I tried to compile ovito from source at gitlab and I got the following error:

/home/vernieri/build/ovito-src/src/core/utilities/io/video/VideoEncoder.cpp:165:27: error: ‘CODEC_FLAG_GLOBAL_HEADER’ was not declared in this scope
   _codecContext->flags |= CODEC_FLAG_GLOBAL_HEADER;
                           ^~~~~~~~~~~~~~~~~~~~~~~~
/home/vernieri/build/ovito-src/src/core/utilities/io/video/VideoEncoder.cpp:165:27: note: suggested alternative: ‘AV_CODEC_FLAG_GLOBAL_HEADER’
   _codecContext->flags |= CODEC_FLAG_GLOBAL_HEADER;
                           ^~~~~~~~~~~~~~~~~~~~~~~~

Then I did what the compiler suggested: changed the ‘CODEC_FLAG_GLOBAL_HEADER’ to ‘AV_CODEC_FLAG_GLOBAL_HEADER’ in VideoEncoder.cpp and everything went ok.

I hope this helps
Title: Re: error during compilation
Post by: Alexander Stukowski on April 17, 2019, 06:50:56 PM
Thanks for letting us know.

Could you please also give us some info on the environment in which you have been building Ovito. Like the OS name and version, and the version of the Libav library on your system.

Thanks.