DiscussionsIssue archiveOCCT:Configuration

Archived issue #0029112

Configuration, Image_VideoRecorder - compilation fails on Ubuntu with libavutil 54.x (FFmpeg 2.7.6)

Open CASCADEOCCT:Configurationclosed13 public notes

Search issues

Description

Compilation of current OCCT master fails on Ubuntu 15 with FFmpeg 2.7.6 and libaviutil 54.27.100: the headers of the latter define macro PixelFormat which clashes with name of the field of the structure Image_VideoParams.

A side note is that structure Image_VideoParams is defined in the same header with another class (Image_VideoRecorder.hxx) while by existing convention it should be placed in its own header.

Steps to reproduce

Build on Ubuntu 15 with default FFmpeg.
Note that Ubuntu 15.04/15.10 are not LTS releases and their support has been stopped a long time ago.

Public activity

13 archived notes

Participants are labeled by their role within this record.

01Commenter 3
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Fri Sep 15 08:35:07 2017 +0300

    0029112: Visualization - compilation fails on Ubuntu with libaviutil 54.x (FFmpeg 2.7.6)
    
    Offending macro is undefined to allow compilation with libaviutil 54.x
02Commenter 2
Fix is pushed to CR29112, please review. Common testing is not needed as fix concerns only compilation on specific platform.
03Commenter 2
+// this macro ais defined in headers of older versions of libaviutil

Please fix misprints ais->is, libaviutil->avutil.
Otherwise looks fine.
04Commenter 3
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
05Commenter 5
Comments are corrected
06Commenter 2
> 0029112: Visualization - compilation fails on Ubuntu with libaviutil 54.x (FFmpeg 2.7.6)
The commit description still contains misprint.
07Commenter 1
Could you clarify what I should do?
08Commenter 3
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
09Commenter 3
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Fri Sep 15 08:35:07 2017 +0300

    0029112: Visualization - compilation fails on Ubuntu with libavutil 54.x (FFmpeg 2.7.6)
    
    Offending macro is undefined to allow compilation with libavutil 54.x
10Commenter 10
Corrected and rebased on current master, please consider for integration
11Commenter 1
Combination -
OCCT branch : [archived branch] [revision removed]
Products branch : [archived branch]
was compiled on Linux, MacOS and Windows platforms and tested on optimize mode.

http://jenkins-test-10.nnov.opencascade.com/view/CR29112_1-master-INV/

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
No differences that require special attention

Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
12Commenter 3
Branch [archived branch] has been deleted by Commenter 2.

[revision removed]
13Commenter 3
Branch [archived branch] has been deleted by Commenter 2.

[revision removed]

Related records