MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030965Open CASCADE[OCCT] OCCT:Configurationpublic2019-09-14 14:422019-09-18 08:26
Reporterabv 
Assigned Toapn 
PrioritynormalSeverityminor 
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.5.0*Fixed in Version 
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
Attached Files

- Relationships

-  Notes
(0087136)
kgv (developer)
2019-09-16 14:42

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 [^]
(0087241)
abv (manager)
2019-09-18 08:26

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


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker