AcademySoftwareFoundation / AcademySoftwareFoundation/xstudio

Cmake error when building openColorIio due to missing Imath.pc

Open
#137 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
773
Forks
129
Avg merge
9d 1m
Merged PRs (30d)
10

Description

I'm getting an error when Cmake tried to build openColorIo as it can't find Imath.pc.

C:/Development/XStudio/xstudio/build/vcpkg/downloads/tools/msys2/9272adbcaf19caef/mingw64/bin/pkg-config.exe
17:25:12:654 1> [CMake] --exists OpenColorIO failed with error code: 1
17:25:12:654 1> [CMake]
17:25:12:654 1> [CMake] ENV{PKG_CONFIG_PATH}: "C:/Development/XStudio/xstudio/build/vcpkg/packages/opencolorio_x64-windows/lib/pkgconfig;C:/Development/XStudio/xstudio/build/vcpkg/packages/opencolorio_x64-windows/share/pkgconfig;C:/Development/XStudio/xstudio/build/vcpkg_installed/x64-windows/lib/pkgconfig;C:/Development/XStudio/xstudio/build/vcpkg_installed/x64-windows/share/pkgconfig"
17:25:12:654 1> [CMake] output: Package Imath was not found in the pkg-config search path.
17:25:12:654 1> [CMake]
17:25:12:654 1> [CMake] Perhaps you should add the directory containing `Imath.pc'
17:25:12:654 1> [CMake]
17:25:12:654 1> [CMake] to the PKG_CONFIG_PATH environment variable
17:25:12:654 1> [CMake]
17:25:12:654 1> [CMake] Package 'Imath', required by 'OpenColorIO', not found
17:25:12:654 1> [CMake] Call Stack (most recent call first):
17:25:12:654 1> [CMake] scripts/cmake/vcpkg_fixup_pkgconfig.cmake:196 (z_vcpkg_fixup_pkgconfig_check_files)
17:25:12:654 1> [CMake] buildtrees/versioning_/versions/opencolorio/661b43b1d2c452e40476bbb64bb6e68dfc437c7b/portfile.cmake:68 (vcpkg_fixup_pkgconfig)
17:25:12:654 1> [CMake] scripts/ports.cmake:206 (include)

Tried adding imath as a dependency in vcpkg.json, but no dice.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with vcpkg.json and the OpenColorIO portfile at buildtrees/versioning_/versions/opencolorio/661b43b1d2c452e40476bbb64bb6e68dfc437c7b/portfile.cmake, then inspect scripts/cmake/vcpkg_fixup_pkgconfig.cmake around the reported call. Reproduce the Windows build and trace why Imath.pc is absent from PKG_CONFIG_PATH; done means the OpenColorIO port configures without the missing-package error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.