Try setting OpenEXR_ROOT and/or Imath_ROOT?

> On Apr 12, 2022, at 10:42 PM, Nicholas Yue <yue.nicho...@gmail.com> wrote:
> 
> build.sh
> ```
> #!/bin/sh                                                                     
>                                                                               
>                                                        
> rm -f CMakeCache.txt
> export Ptex_ROOT=$HOME/systems/ptex/head
> export TBB_ROOT=$HOME/systems/TBB/2021.3.0
> cmake VERBOSE=1 \
>     -D ALWAYS_PREFER_CONFIG=ON \
>     -D BUILD_TESTING=OFF \
>     -D BUILD_SHARED_LIBS=ON \
>     -D PYTHON_EXECUTABLE=/usr/bin/python \
>     -D Qt5_DIR=$HOME/Qt5.14.0/5.14.0/gcc_64/lib/cmake/Qt5 \
>     -D pybind11_ROOT=$HOME/systems/pybind11/2.5.0 \
>     -D USE_PYTHON=ON \
>     -D CMAKE_BUILD_TYPE=Release \
>     -D CMAKE_INSTALL_PREFIX=$HOME/systems/oiio/head-py2 \
>     -G "Eclipse CDT4 - Ninja" \
>     ../oiio_git
> ```
> 
> output
> ```
> -- The CXX compiler identification is GNU 7.5.0
> -- The C compiler identification is GNU 7.5.0
> -- Found Eclipse version 4.15 ()
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++ - skipped
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working C compiler: /usr/bin/cc - skipped
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Configuring OpenImageIO 2.4.1.0
> -- CMake 3.21.2
> -- CMake system           = Linux-5.4.0-107-generic
> -- CMake system name      = Linux
> -- Project source dir     = /data1/nyue/projects/oiio/oiio_git
> -- Project build dir      = /data1/nyue/projects/oiio/build-py2
> -- Project install prefix = /home/nyue/systems/oiio/head-py2
> -- Configuration types    = 
> -- Build type             = Release
> -- CMAKE_UNITY_BUILD_MODE = 
> -- CMAKE_UNITY_BUILD_BATCH_SIZE = 
> -- Setting Namespace to: OpenImageIO_v2_4_1
> -- CMAKE_CXX_COMPILER     = /usr/bin/c++
> -- CMAKE_CXX_COMPILER_ID  = GNU
> -- Building with C++14, downstream minimum C++14
> -- clang-format found: /usr/bin/clang-format
> -- 
> -- * Checking for dependencies...
> -- *   - Missing a dependency 'Package'?
> -- *     Try cmake -DPackage_ROOT=path or set environment var 
> Package_ROOT=path
> -- *     For many dependencies, we supply src/build-scripts/build_Package.bash
> -- *   - To exclude an optional dependency (even if found),
> -- *     -DUSE_Package=OFF or set environment var USE_Package=OFF 
> -- 
> -- Could NOT find Boost (missing: Boost_DIR)
> -- Found Boost 106501 
> -- Could NOT find ZLIB (missing: ZLIB_DIR)
> -- Found ZLIB 1.2.11 
> -- Could NOT find TIFF (missing: TIFF_DIR)
> -- Found TIFF 4.0.9 
> -- Could NOT find OpenEXR (missing: OpenEXR_DIR)
> -- Could NOT find Imath (missing: Imath_DIR)
> -- Could NOT find IlmBase (missing: IlmBase_DIR)
> -- Could NOT find OpenEXR (missing: OpenEXR_DIR)
> -- OpenEXR library not found 
> --     Try setting OpenEXR_ROOT ? 
> --     Maybe this will help:  src/build-scripts/build_openexr.bash 
> CMake Error at src/cmake/checked_find_package.cmake:177 (message):
>   OpenEXR is required, aborting.
> Call Stack (most recent call first):
>   src/cmake/externalpackages.cmake:98 (checked_find_package)
>   CMakeLists.txt:148 (include)
> 
> 
> -- Configuring incomplete, errors occurred!
> See also "/data1/nyue/projects/oiio/build-py2/CMakeFiles/CMakeOutput.log".
> See also "/data1/nyue/projects/oiio/build-py2/CMakeFiles/CMakeError.log".
> ```
> 
> 
> On Tue, 12 Apr 2022 at 22:34, Larry Gritz <l...@larrygritz.com 
> <mailto:l...@larrygritz.com>> wrote:
> With OpenEXR/Imath 3.x, there is no "IlmBase".
> 
> OIIO's search for those looks for Imath first (if it exists, it's 3.x we're 
> dealing with), and if not then it looks for IlmBase and other 2.x components.
> 
> I don't recognize those output statements... that's not what current OIIO 
> should print. Can you show us an entire cmake config step output with 
> VERBOSE=1? I'm having trouble understanding where those come from (we don't 
> use Imath_DIR, for example).
> 
> 
> 
>> On Apr 12, 2022, at 9:00 AM, Nicholas Yue <yue.nicho...@gmail.com 
>> <mailto:yue.nicho...@gmail.com>> wrote:
>> 
>> Hi,
>> 
>>   I am attempting to build oiio from the head
>> 
>>   I plan to build it with OpenEXR and Imath 3.1.4
>> 
>>   During configuration of oiio, I see the following
>> 
>> ```
>> -- Could NOT find Imath (missing: Imath_DIR)
>> -- Could NOT find IlmBase (missing: IlmBase_DIR)
>> -- Could NOT find OpenEXR (missing: OpenEXR_DIR)
>> ```
>> 
>>   Is IlmBase still a requirement or is it safe to ignore it for now ?
>> 
>> Cheers
>> -- 
>> Nicholas Yue
>> https://www.linkedin.com/in/nicholasyue/ 
>> <https://www.linkedin.com/in/nicholasyue/>
>> _______________________________________________
>> Oiio-dev mailing list
>> Oiio-dev@lists.openimageio.org <mailto:Oiio-dev@lists.openimageio.org>
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
>> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
> 
> --
> Larry Gritz
> l...@larrygritz.com <mailto:l...@larrygritz.com>
> 
> 
> 
> 
> 
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org <mailto:Oiio-dev@lists.openimageio.org>
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
> 
> 
> -- 
> Nicholas Yue
> https://www.linkedin.com/in/nicholasyue/ 
> <https://www.linkedin.com/in/nicholasyue/>
> _______________________________________________
> 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

Reply via email to