Open meerfrau opened 1 year ago
Hi @meerfrau , Can you tell us a little more about how you are building? Which instruction set you are following?
I think typically you would not set OpenImageIO_INCLUDE_DIR directly, but rather rely on it being set by the OpenImageIOConfig.cmake config.
you can try install OpenImageIO to /home/tom/OpenImageIO for somewhere and set CMAKE_PREFIX_PATH to the installation dir.
I met the same problem. I just run cmake -B build .
under openmoonray project root directory. I using Archlinux , Imath 3.1.12 and openimageio 2.5.15.0, all install by the pacman.
I think it fail in find_package(OpenImageIO REQUIRED)
, but I try this on other project in my computer, it works, so it must be something wrong with cmake path setting staff.
I think I fix the problem, see the file openmoonray/CMakeLists.txt in line 15:
set(ENV{PATH} "${CUDAToolkit_ROOT}/bin:$ENV{PATH}")
if CUDATookit_ROOT
is not set, this will put /bin
into the first position in the PATH
. In my computer, even this is soft link to /usr/bin
, cmake will still think it's start from /bin
. Then, it will try to use find_package modules from /lib
, instead of /usr/lib
. Again, even /lib
is soft link to /usr/lib
, the find_package of OpenImageIO will gave the OpenImageIO_INCLUDE_DIR
as /include
instead of /usr/include
. In my setup, path /include
dose not exist, so there is an error of set_and_check
I've got oiio headers present at /usr/include/OpenImageIO/ . So OpenImageIO_INCLUDE_DIR should be
/usr/include
like I've set it, or not?