macOS - Makefile generation error on master


Patrick Hodoul
 
Edited

Hi,

I'm a newcomer to the project and for the first time, I tried to compile OSL on macOS. My current configuration is:
  • OpenEXR -> 3.0.3
  • OpenImageIO -> 2.2.14.0_3
  • Imath -> 3.0.3
  • Apple Clang 12.0.0
  • ninja 1.10.1
  • cmake 3.20.1
I did the usual steps:
  1. git clone https://github.com/AcademySoftwareFoundation/OpenShadingLanguage.git osl_1
  2. cd osl_1
  3. mkdir build
  4. cd build
  5. cmake -GNinja -DCMAKE_CXX_STANDARD=14 ../.

As you can notice there is nothing fancy. But the makefile generation fails:

-- Found Boost 107600 

-- Found ZLIB 1.2.11 

-- Found OpenEXR 3.0.3 

CMake Warning at src/cmake/checked_find_package.cmake:89 (find_package):

  Found package configuration file:

 

    /usr/local/lib/cmake/OpenImageIO/OpenImageIOConfig.cmake

 

  but it set OpenImageIO_FOUND to FALSE so package "OpenImageIO" is

  considered to be NOT FOUND.  Reason given by package:

 

  OpenImageIO could not be found because dependency Imath could not be found.

 

Call Stack (most recent call first):

  src/cmake/externalpackages.cmake:114 (checked_find_package)

  CMakeLists.txt:142 (include)

 

-- OpenImageIO library not found 

--     Try setting OpenImageIO_ROOT ? 

--     Maybe this will help:  src/build-scripts/build_OpenImageIO.bash 

CMake Error at src/cmake/checked_find_package.cmake:148 (message):

  OpenImageIO is required, aborting.

Call Stack (most recent call first):

  src/cmake/externalpackages.cmake:114 (checked_find_package)

  CMakeLists.txt:142 (include)

-- Configuring incomplete, errors occurred!


Any ideas?

Join osl-dev@lists.aswf.io to automatically receive all group messages.