RenderKit / oidn

Intel® Open Image Denoise library
https://www.openimagedenoise.org/
Apache License 2.0
1.77k stars 164 forks source link

Unable to compile Open Image Denoise #57

Closed Amir-Arsalan closed 4 years ago

Amir-Arsalan commented 4 years ago

I am trying to compile Open Image Denoise as follow:

cmake_d="-D CMAKE_BUILD_TYPE=Release"
cmake_d="$cmake_d -D CMAKE_INSTALL_PREFIX=testDir/"
cmake_d="$cmake_d -D WITH_EXAMPLE=OFF"
cmake_d="$cmake_d -D WITH_TEST=OFF"
cmake_d="$cmake_d -D OIDN_STATIC_LIB=ON"
cmake $cmake_d ../
make -j10 && make install
make clean

but I get the following error:

Unpacking OpenImageDenoise-1.1.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:35 (if):
  if given arguments:

    "3.5.1" "VERSION_GREATER_EQUAL" "3.13.0"

  Unknown arguments specified

The error seems to be saying that VERSION_GREATER_EQUAL does not exist. Additionally, despite the fact that CMake version on my machine is 3.10.x as validated via cmake --version, OIDN still somehow thinks that I have CMake 3.5.1 installed. Anyways, I did sudo apt remove --purge cmake and installed newer versions of CMake to see if I can compile OIDN. I tried compiling OIDN using CMake 3.16.4, CMake 3.12.4 and CMake 3.5.1 but I still get same error. Can someone tell me what I'm doing wrong here?

Note that this is happening is despite the fact that I've been compiling Open Image Denoise for the past 6 months without any issue. I just haven't tried compiling it in the past 3 months. So it is likely that something has changed within the past 3 months or so.

Please advise.

Amir-Arsalan commented 4 years ago

Apparently Blender's dependency installation file (1install_deps.sh`) installs CMake version 3.5.1.