Archived issue #0029112
Configuration, Image_VideoRecorder - compilation fails on Ubuntu with libavutil 54.x (FFmpeg 2.7.6)
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.
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.
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.
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
[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
Fix is pushed to CR29112, please review. Common testing is not needed as fix concerns only compilation on specific platform.
+// this macro ais defined in headers of older versions of libaviutil
Please fix misprints ais->is, libaviutil->avutil.
Otherwise looks fine.
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Comments are corrected
> 0029112: Visualization - compilation fails on Ubuntu with libaviutil 54.x (FFmpeg 2.7.6)
The commit description still contains misprint.
The commit description still contains misprint.
Could you clarify what I should do?
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
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
[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
Corrected and rebased on current master, please consider for integration
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
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
Branch [archived branch] has been deleted by Commenter 2.
[revision removed]
[revision removed]
Branch [archived branch] has been deleted by Commenter 2.
[revision removed]
[revision removed]
Related records