Skip to content

Manually rebuild for ffmpeg 8 - #126

Closed
traversaro wants to merge 3 commits into
conda-forge:mainfrom
traversaro:patch-1
Closed

Manually rebuild for ffmpeg 8#126
traversaro wants to merge 3 commits into
conda-forge:mainfrom
traversaro:patch-1

Conversation

@traversaro

@traversaro traversaro commented Nov 11, 2025

Copy link
Copy Markdown

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

@traversaro

Copy link
Copy Markdown
Author

@conda-forge-admin, please rerender

@traversaro traversaro mentioned this pull request Nov 11, 2025
@conda-forge-admin

Copy link
Copy Markdown
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

@traversaro

Copy link
Copy Markdown
Author
[81/140] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o
FAILED: [code=1] src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o 
$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DEMBED_PLUGINS=1 -DFMT_HEADER_ONLY=1 -DOIIO_FFMPEG_VERSION=\"7.0\" -DOIIO_FREETYPE_VERSION=\"2.14.1\" -DOIIO_INTERNAL=1 -DOIIO_OPENEXR_CORE_DEFAULT=1 -DOIIO_OpenCV_VERSION=\"\" -DOIIO_PYTHON_VERSION=\"3.10.19\" -DOIIO_QT_VERSION=\"\" -DOIIO_TBB_VERSION=\"2021.13.0\" -DOIIO_USE_EXR_C_API=1 -DOpenImageIO_EXPORTS -DUSE_BOOST_FILESYSTEM -DUSE_FFMPEG -DUSE_FREETYPE=1 -DUSE_GIF -DUSE_HEIF=1 -DUSE_JPEG_TURBO=1 -DUSE_LIBRAW=1 -DUSE_OPENJPEG -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I$PREFIX/include/openjpeg-2.5 -I/OpenEXR -I$SRC_DIR/build/include/OpenImageIO -I$SRC_DIR/build/include -I$SRC_DIR/build/src/include -I$SRC_DIR/src/include -isystem $PREFIX/include/Imath -isystem $PREFIX/include/OpenEXR -isystem $PREFIX/include/webp -isystem $PREFIX/include/freetype2 -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/openimageio-split-2.5.18.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -DGIFLIB_MAJOR=5 -O3 -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -Wall -Wno-unused-local-typedefs -Wno-unused-result -Wno-aligned-new -Wno-noexcept-type -fno-math-errno -Wno-deprecated-declarations -MD -MT src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o -MF src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o.d -o src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o -c $SRC_DIR/src/ffmpeg.imageio/ffmpeginput.cpp
$SRC_DIR/src/ffmpeg.imageio/ffmpeginput.cpp: In member function 'virtual bool OpenImageIO_v2_5::FFmpegInput::close()':
$SRC_DIR/src/ffmpeg.imageio/ffmpeginput.cpp:602:9: error: 'avcodec_close' was not declared in this scope; did you mean 'avio_close'?
  602 |         avcodec_close(m_codec_context);
      |         ^~~~~~~~~~~~~
      |         avio_close
[82/140] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/fits.imageio/fitsinput.cpp.o
[83/140] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/fits.imageio/fitsoutput.cpp.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/opt/conda/lib/python3.12/site-packages/conda_build/build.py", line 2570, in build
    utils.check_call_env(
  File "/opt/conda/lib/python3.12/site-packages/conda_build/utils.py", line 410, in check_call_env
    return _func_defaulting_env_to_os_environ("call", *popenargs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/conda_build/utils.py", line 386, in _func_defaulting_env_to_os_environ
    raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['/bin/bash', '-o', 'errexit', '/home/conda/feedstock_root/build_artifacts/openimageio-split_1762858720546/work/conda_build.sh']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/conda/bin/conda-build", line 11, in <module>
    sys.exit(execute())
             ^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/conda_build/cli/main_build.py", line 622, in execute
    api.build(
  File "/opt/conda/lib/python3.12/site-packages/conda_build/api.py", line 211, in build

That -DOIIO_FFMPEG_VERSION=\"7.0\" seems wrong.

@traversaro

traversaro commented Nov 11, 2025

Copy link
Copy Markdown
Author

Probably we need to backport AcademySoftwareFoundation/OpenImageIO#4870 or update first and then run the migration, that itself requires #125 (comment) .

@h-vetinari

Copy link
Copy Markdown
Member

This has now happened naturally through #138 plus rerendering:

@h-vetinari h-vetinari closed this May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants