Kazen-Renderer / rez-packages

vfx reference platform standard
GNU General Public License v3.0
5 stars 2 forks source link

Error when compiling OpenEXR #2

Closed ZhongLingXiao closed 3 years ago

ZhongLingXiao commented 3 years ago

I also tested openexr compilation locally and still have the same issue. Please check this pull request #1

-- Downloading... done
-- extracting...
     src='/Users/zhonglingxiao/Desktop/test/rez-packages/libs/openexr/2.4.3/build/platform-osx/arch-x86_64/openexr/src/v2.4.3.tar.gz'
     dst='/Users/zhonglingxiao/Desktop/test/rez-packages/libs/openexr/2.4.3/build/platform-osx/arch-x86_64/openexr/src/openexr'
-- extracting... [tar xfz]
cmake -E tar: error: truncated gzip input
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 37%] No update step for 'openexr'
[ 50%] No patch step for 'openexr'
[ 62%] Performing configure step for 'openexr'
-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configure ILMBASE Version: 2.4.3 Lib API: 24.0.2
-- Setting build type to 'Release' as none was specified.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Looking for include file ucontext.h
-- Looking for include file ucontext.h - not found
CMake Error at OpenEXR/CMakeLists.txt:21 (include):
  include could not find load file:

    config/ParseConfigure.cmake

CMake Warning at OpenEXR/CMakeLists.txt:23 (project):
  VERSION keyword not followed by a value or was followed by a value that
  expanded to nothing.

CMake Error at OpenEXR/CMakeLists.txt:34 (include):
  include could not find load file:

    config/OpenEXRSetup.cmake

CMake Error at OpenEXR/CMakeLists.txt:41 (add_subdirectory):
  add_subdirectory given source "config" which is not an existing directory.

CMake Error at OpenEXR/CMakeLists.txt:45 (include):
  include could not find load file:

    config/LibraryDefine.cmake

CMake Error at OpenEXR/IlmImf/CMakeLists.txt:29 (openexr_define_library):
  Unknown CMake command "openexr_define_library".

-- Configuring incomplete, errors occurred!
See also "/Users/zhonglingxiao/Desktop/test/rez-packages/libs/openexr/2.4.3/build/platform-osx/arch-x86_64/openexr/src/openexr-build/CMakeFiles/CMakeOutput.log".
See also "/Users/zhonglingxiao/Desktop/test/rez-packages/libs/openexr/2.4.3/build/platform-osx/arch-x86_64/openexr/src/openexr-build/CMakeFiles/CMakeError.log".
make[2]: *** [openexr/src/openexr-stamp/openexr-configure] Error 1
make[1]: *** [CMakeFiles/openexr.dir/all] Error 2
make: *** [all] Error 2
23:10:18 ERROR    BuildError: The cmake build system failed.
ZhongLingXiao commented 3 years ago

This problem is due to:

The ASWF version of OpenEXR had updated source code structure: move ILMBase path out of OpenEXR, but the cmake file has not been updated, resulting in the wrong include path of cmake.

The missing file should look like ILMBase/config/ParseConfigure.cmake instead of config/ParseConfigure.cmake