View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0032871 | Community | OCCT:Configuration | public | 2022-03-14 09:32 | 2024-08-22 17:25 |
Reporter | kgv | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | new | Resolution | open | ||
Product Version | 7.6.0 | ||||
Target Version | Unscheduled | ||||
Summary | 0032871: Configuration, Media_FormatContext - compilation fails with FFmpeg 5.0 | ||||
Description | Compilation fails with FFmpeg-5.0 https://bugs.gentoo.org/834422 FAILED: src/TKService/CMakeFiles/TKService.dir/__/Media/Media_FormatContext.cxx.o /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_FFMPEG -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_TK -DHAVE_XLIB -DOCC_CONVERT_SIGNALS -DTKService_EXPORTS -I/usr/include/freetype2 -I/var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.1/work/occt-V7_6_1_build/include/opencascade -std=c++0x -O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check -fexceptions -fPIC -Wall -Wextra -fPIC -MD -MT src/TKService/CMakeFiles/TKService.dir/__/Media/Media_FormatContext.cxx.o -MF src/TKService/CMakeFiles/TKService.dir/__/Media/Media_FormatContext.cxx.o.d -o src/TKService/CMakeFiles/TKService.dir/__/Media/Media_FormatContext.cxx.o -c /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.1/work/occt-V7_6_1/src/Media/Media_FormatContext.cxx /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.1/work/occt-V7_6_1/src/Media/Media_FormatContext.cxx: In member function ‘TCollection_AsciiString Media_FormatContext::StreamInfo(unsigned int, AVCodecContext*) const’: /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.1/work/occt-V7_6_1/src/Media/Media_FormatContext.cxx:413:25: error: ‘const AVStream’ {aka ‘const struct AVStream’} has no member named ‘codec’ 413 | aCodecCtx = aStream.codec; | ||||
Tags | No tags attached. | ||||
Test case number | |||||
|
@edman007 do you have the same issue and it is has impact on your project? |
|
@dpasukhi yup, working now |
|
@dpasukhi I mean yes, I still have this issue, I was adding the note because I'm going to try and patch it to get it working with the latest ffmpeg and see if anyone else has this issue |
|
My only impacts though so far is I can't build with ffmpeg at all, I'm not sure that I need ffmpeg, using it right now without ffmpeg |
|
@edman007 do you work on win or linux? If you needs to play audio - you need that lib. But by default, OCCT has no audio actions on XCAF. You will need to create your own solution based on OCCT functionality. |
|
@dpasukhi I'm on Linux, using it for FreeCAD and KiCad, not sure I need audio though Anyways, I looked at the code and some bug reports, I think ffmpeg 4.x is the last version that Opencascade will build with. The latest ffmpeg is 7.x, 4.x is so old that I don't think any modern system has it anymore. And the reason it's failing to build is the APIs opencascade were already very deprecated in 4.x, and they started deleting them in 5.x. most of the ffmpeg code needs to be updated to use the newer APIs to get a sccessful ffmpeg build. That's why the Gentoo bug has resolved as just marking it incompatible with anything other than ffmpeg 4. There have been multiple releases of opencascade since then and no updates to the ffmpeg support. |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-03-14 09:32 | kgv | New Issue | |
2022-03-14 09:32 | kgv | Assigned To | => kgv |
2022-03-14 09:33 | kgv | Summary | Configuration - compilation fails with FFmpeg 5.0 => Configuration, Media_FormatContext - compilation fails with FFmpeg 5.0 |
2022-03-14 09:33 | kgv | Relationship added | child of 0030612 |
2022-10-19 15:55 |
|
Assigned To | kgv => vpozdyayev |
2022-10-24 10:39 |
|
Target Version | 7.7.0 => 7.8.0 |
2023-08-01 15:09 | dpasukhi | Target Version | 7.8.0 => Unscheduled |
2024-08-22 11:22 | dpasukhi | Note Added: 0116541 | |
2024-08-22 16:20 | edman007 | Note Added: 0116542 | |
2024-08-22 16:23 | edman007 | Note Added: 0116543 | |
2024-08-22 16:27 | edman007 | Note Added: 0116544 | |
2024-08-22 16:48 | dpasukhi | Note Added: 0116545 | |
2024-08-22 17:25 | edman007 | Note Added: 0116546 |