View Issue Details

IDProjectCategoryView StatusLast Update
0030965Open CASCADEOCCT:Configurationpublic2022-10-24 10:38
Reporterabv Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product Version7.4.0 
Target Version7.8.0 
Summary0030965: Configuration - compilation error when building with FFmpeg 2.8
DescriptionWhen building OCCT (7.4.0.beta2) with Clang 6.0 on Ubuntu 16.04, I get these errors:

[ 32%] Building CXX object src/TKService/CMakeFiles/TKService.dir/__/Media/Media_CodecContext.cxx.o
/home/abv/occt/src/Media/Media_CodecContext.cxx:93:60: error: no member named 'codecpar' in 'AVStream'
  if (avcodec_parameters_to_context (myCodecCtx, theStream.codecpar) < 0)
                                                 ~~~~~~~~~ ^
/home/abv/occt/src/Media/Media_CodecContext.cxx:104:98: error: no member named 'codecpar' in 'AVStream'
  const AVCodecID aCodecId = theCodecId != AV_CODEC_ID_NONE ? (AVCodecID )theCodecId : theStream.codecpar->code...
                                                                                       ~~~~~~~~~ ^
/home/abv/occt/src/Media/Media_CodecContext.cxx:116:17: error: no member named 'codecpar' in 'AVStream'
  if (theStream.codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
      ~~~~~~~~~ ^
/home/abv/occt/src/Media/Media_CodecContext.cxx:146:17: error: no member named 'codecpar' in 'AVStream'
  if (theStream.codecpar->codec_type == AVMEDIA_TYPE_VIDEO
      ~~~~~~~~~ ^
/home/abv/occt/src/Media/Media_CodecContext.cxx:241:20: error: use of undeclared identifier
      'avcodec_send_packet'
  const int aRes = avcodec_send_packet (myCodecCtx, thePacket->Packet());
                   ^
/home/abv/occt/src/Media/Media_CodecContext.cxx:264:21: error: use of undeclared identifier
      'avcodec_receive_frame'
  const int aRes2 = avcodec_receive_frame (myCodecCtx, theFrame->ChangeFrame());
                    ^
6 errors generated.

I have FFmpeg 2.8.15-0ubuntu0.16.04.1
TagsNo tags attached.
Test case number

Activities

kgv

2019-09-16 14:42

developer   ~0087136

OCCT requires FFmpeg 3.1 or later, which is specified in requirements:
https://dev.opencascade.org/doc/overview/html/index.html#OCCT_OVW_SECTION_5

abv

2019-09-18 08:26

manager   ~0087241

I see; then I suppose CMake scripts should report error if older version is found

Issue History

Date Modified Username Field Change
2019-09-14 14:42 abv New Issue
2019-09-14 14:42 abv Assigned To => kgv
2019-09-16 14:42 kgv Note Added: 0087136
2019-09-16 14:42 kgv Assigned To kgv => abv
2019-09-16 14:42 kgv Status new => feedback
2019-09-18 08:26 abv Note Added: 0087241
2019-09-18 08:26 abv Assigned To abv => apn
2019-09-18 08:26 abv Status feedback => assigned
2019-09-18 08:26 abv Category OCCT:Visualization => OCCT:Configuration
2019-09-18 08:26 abv Summary Visualization - compilation error when building with FFmpeg 2.8 => Configuration - compilation error when building with FFmpeg 2.8
2020-09-11 15:37 utverdov Assigned To apn => inv
2020-09-11 15:40 utverdov Target Version 7.5.0 => 7.6.0
2020-09-11 16:01 kgv Product Version => 7.4.0
2020-09-11 17:08 bugmaster Assigned To inv => bugmaster
2021-09-03 14:13 bugmaster Target Version 7.6.0 => 7.7.0
2022-10-24 10:38 szy Target Version 7.7.0 => 7.8.0