OpenColorIO icon indicating copy to clipboard operation
OpenColorIO copied to clipboard

Missing library dependencies when building static libs

Open zachlewis opened this issue 3 years ago • 2 comments

I'm having trouble building static OpenImageIO libs against static OpenColorIO builds.

CMake Error at /sw/dev/zlewis/packages/OpenColorIO/2.2.0.dev21/platform-linux/arch-x86_64/python-3.8/.shared-0/lib64/cmake/OpenColorIO/OpenColorIOTargets.cmake:61 (set_target_properties):
  The link interface of target "OpenColorIO::OpenColorIO" contains:

    expat::expat

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /sw/dev/zlewis/packages/OpenColorIO/2.2.0.dev21/platform-linux/arch-x86_64/python-3.8/.shared-0/lib64/cmake/OpenColorIO/OpenColorIOConfig.cmake:12 (include)
  src/cmake/modules/FindOpenColorIO.cmake:31 (find_package)
  src/cmake/checked_find_package.cmake:127 (find_package)
  src/cmake/externalpackages.cmake:177 (checked_find_package)
  CMakeLists.txt:151 (include)

@lgritz recently merged a PR that seems to address a very similar issue when building other libraries against OIIO.

zachlewis avatar Oct 05 '22 16:10 zachlewis

Thanks for raising that and sharing the OIIO fix Zach, I think it's something that was already mentioned in other places, including https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1581 and would be good to fix for the upcoming release.

remia avatar Oct 07 '22 18:10 remia

@zachlewis , could you please try this again with OCIO 2.2.1? We think this should be fixed.

doug-walker avatar Jan 06 '23 04:01 doug-walker