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

CTL cmake does not find required dependencies when using apt-get install libilmbase-dev libopenexr-dev #117

Closed
michaeldsmith opened this issue Jan 13, 2023 · 1 comment · Fixed by #118

Comments

@michaeldsmith
Copy link
Collaborator

The recent PR #115 has significantly simplified the CTL build system, this is a great improvement. But unfortunately, now CTL cmake can't find the required dependencies in Ubuntu when using the apt-get package manager to install libilmbase-dev and libopenexr-dev (apt-get -y install libilmbase-dev libopenexr-dev), which used to work before PR #115

one workaround that seems to resolve the issue is to change the following lines in \CTL\CMakeLists.txt from:

find_package(OpenEXR 3 CONFIG QUIET)
if(OpenEXR_FOUND)
  message(STATUS "Found OpenEXR ${OpenEXR_VERSION}")
else()
  find_package(OpenEXR 2 CONFIG REQUIRED)
endif()

to

find_package(OpenEXR 3 CONFIG QUIET)
if(OpenEXR_FOUND)
  message(STATUS "Found OpenEXR ${OpenEXR_VERSION}")
else()
  find_package(IlmBase REQUIRED)
  find_package(OpenEXR 2 REQUIRED)
endif()


@waebbl
Copy link
Contributor

waebbl commented Jan 13, 2023

You could be right, and I had this line in my changes as well, at first. On my machine, OpenEXR-2.5.8 looks for IlmBase using a find_package or find_dependency call, so this wasn't needed and I dropped it. It shouldn't hurt to query for both packages anyway.

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 a pull request may close this issue.

2 participants