Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing library dependencies when building static libs #1698

Closed
zachlewis opened this issue Oct 5, 2022 · 2 comments
Closed

Missing library dependencies when building static libs #1698

zachlewis opened this issue Oct 5, 2022 · 2 comments
Labels
Build Issue Issues related to build or environment problems on any platform. To Close temp label to help triage closable issues for review

Comments

@zachlewis
Copy link
Contributor

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.

@remia
Copy link
Collaborator

remia commented Oct 7, 2022

Thanks for raising that and sharing the OIIO fix Zach, I think it's something that was already mentioned in other places, including #1581 and would be good to fix for the upcoming release.

@doug-walker
Copy link
Collaborator

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

@carolalynn carolalynn added the Build Issue Issues related to build or environment problems on any platform. label Feb 7, 2024
@carolalynn carolalynn added the To Close temp label to help triage closable issues for review label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Issue Issues related to build or environment problems on any platform. To Close temp label to help triage closable issues for review
Projects
None yet
Development

No branches or pull requests

4 participants