I'm suspecting that you have remnants of multiple, divergent, versions of OpenEXR installed.
Can you possibly gather all the .cmake files in /usr/local/lib/cmake/OpenEXR and attach them? > On Jan 14, 2023, at 12:55 PM, Jed Smith <jedy...@gmail.com> wrote: > > Greetings! > I was hoping to get some help with a perplexing error. I am trying to compile > OpenImageIO on MacOS Intel x86_64 on macOS v10.15.7. > > I have need to compile against OpenEXR v2.4.1. I have successfully compiled > OpenEXR and installed it to /usr/local. > > When trying to invoke a cmake build on OpenImageIO v2.4.1, I get the > following warning: > > CMake Warning at src/cmake/modules/FindOpenEXR.cmake:43 (find_package): > Found package configuration file: > > /usr/local/lib/cmake/OpenEXR/OpenEXRConfig.cmake > > but it set OpenEXR_FOUND to FALSE so package "OpenEXR" is considered to be > NOT FOUND. Reason given by package: > > The following imported targets are referenced, but are missing: > IlmBase::Iex IlmBase::Half IlmBase::Imath IlmBase::IlmThread > > And then at the end, the following error: > -- Configuring done > CMake Error at /usr/local/lib/cmake/OpenEXR/OpenEXRConfig.cmake:68 > (set_target_properties): > The link interface of target "OpenEXR::IlmImf" contains: > > IlmBase::Iex > > 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): > src/cmake/modules/FindOpenEXR.cmake:43 (find_package) > src/cmake/checked_find_package.cmake:127 (find_package) > src/cmake/externalpackages.cmake:96 (checked_find_package) > CMakeLists.txt:162 (include) > > I have tried going back in time all the way to openimageio v2.1.20, and this > version does successfully find the openexr libraries. However there are other > issues.. and I need a newer version of OpenImageIO. I believe it is somehow > related to the new logic in src/cmake/modules/FindOpenEXR.cmake to handle > finding OpenEXR > v3.0? But I'm kindof at a dead-end here. > > Full cmake log attached if it's useful. Any help would be appreciated! > <oiio-2.4.7.1_compile_log_macos.log>_______________________________________________ > Oiio-dev mailing list > Oiio-dev@lists.openimageio.org > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org -- Larry Gritz l...@larrygritz.com
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org