Autodesk / Aurora

Real-time GPU path tracing with an OpenUSD Hydra render delegate
Apache License 2.0
514 stars 34 forks source link

Build issues #35

Open Flamaros opened 3 months ago

Flamaros commented 3 months ago

It can be difficult to build Aurora, because some steps of the build process can conflict with our own environment settings,...

For the moment I found few workarounds, but now I have this build issue when building external dependencies: D:\AuroraExternals\boost\include\boost-1_78\boost/core/cmath.hpp(258,17): error C2039: '_copysign' n'est pas membre de 'std' [D:\AuroraExternals\build\USD-22.08-Aurora-v22.11\Release\pxr\usd\bin\sdfdump\sdfdump.vcxproj]

May you consider to put pre-compiled version in releases ?

pixnblox commented 3 months ago

It is possible that this issue is addressed with the recent release (v24.08)... can you check it?

Flamaros commented 3 months ago

I checked out the latest release v24.08 and try to rebuild all dependencies and I have exactly the same error.

So I tried with VS 2022 instead of 2019 and I have this error (with CMake):

STATUS: Installing OpenImageIO...
INFO: Downloading https://github.com/OpenImageIO/oiio/archive/refs/tags/v2.5.11.0.zip to d:\AuroraExternals\src\v2.5.11.0.zip
INFO: Extracting archive to d:\AuroraExternals\src\OpenImageIO-2.5.11.0
STATUS:     Applying OpenImageIO.patch ...
INFO: Running "git apply "D:\personnel\xbi\development\Aurora\Scripts\Patches\OpenImageIO.patch""
STATUS:     Done
INFO: Running "cmake -DCMAKE_INSTALL_PREFIX="d:\AuroraExternals\OpenImageIO" -DCMAKE_PREFIX_PATH="d:\AuroraExternals\glew;d:\AuroraExternals\glm;d:\AuroraExternals\USD;d:\AuroraExternals\libpng;d:\AuroraExternals\libtiff;d:\AuroraExternals\cxxopts;d:\AuroraExternals\uriparser;d:\AuroraExternals\OpenImageIO;d:\AuroraExternals\zlib;d:\AuroraExternals\miniz;d:\AuroraExternals\boost;d:\AuroraExternals\OpenEXR;d:\AuroraExternals\tinygltf;d:\AuroraExternals\gtest;d:\AuroraExternals\tinyexr;d:\AuroraExternals\MaterialX;d:\AuroraExternals\GLFW;d:\AuroraExternals\stb;d:\AuroraExternals\tinyobjloader;d:\AuroraExternals\libjpeg;d:\AuroraExternals\tbb;d:\AuroraExternals\Slang;d:\AuroraExternals\OpenSubdiv" -DCMAKE_BUILD_TYPE=Release -DCMAKE_DEBUG_POSTFIX="d" -G "Visual Studio 17 2022" -A x64  -DOIIO_BUILD_TOOLS=OFF -DOIIO_BUILD_TESTS=OFF -DBUILD_DOCS=OFF -DUSE_PYTHON=OFF -DSTOP_ON_WARNING=OFF -DUSE_PTEX=OFF -DBoost_NO_BOOST_CMAKE=On -DBoost_NO_SYSTEM_PATHS=True -DOPENEXR_ROOT="d:\AuroraExternals\OpenEXR" -DTBB_USE_DEBUG_BUILD=OFF "d:\AuroraExternals\src\OpenImageIO-2.5.11.0""
2024-08-27 14:33
cmake -DCMAKE_INSTALL_PREFIX="d:\AuroraExternals\OpenImageIO" -DCMAKE_PREFIX_PATH="d:\AuroraExternals\glew;d:\AuroraExternals\glm;d:\AuroraExternals\USD;d:\AuroraExternals\libpng;d:\AuroraExternals\libtiff;d:\AuroraExternals\cxxopts;d:\AuroraExternals\uriparser;d:\AuroraExternals\OpenImageIO;d:\AuroraExternals\zlib;d:\AuroraExternals\miniz;d:\AuroraExternals\boost;d:\AuroraExternals\OpenEXR;d:\AuroraExternals\tinygltf;d:\AuroraExternals\gtest;d:\AuroraExternals\tinyexr;d:\AuroraExternals\MaterialX;d:\AuroraExternals\GLFW;d:\AuroraExternals\stb;d:\AuroraExternals\tinyobjloader;d:\AuroraExternals\libjpeg;d:\AuroraExternals\tbb;d:\AuroraExternals\Slang;d:\AuroraExternals\OpenSubdiv" -DCMAKE_BUILD_TYPE=Release -DCMAKE_DEBUG_POSTFIX="d" -G "Visual Studio 17 2022" -A x64  -DOIIO_BUILD_TOOLS=OFF -DOIIO_BUILD_TESTS=OFF -DBUILD_DOCS=OFF -DUSE_PYTHON=OFF -DSTOP_ON_WARNING=OFF -DUSE_PTEX=OFF -DBoost_NO_BOOST_CMAKE=On -DBoost_NO_SYSTEM_PATHS=True -DOPENEXR_ROOT="d:\AuroraExternals\OpenEXR" -DTBB_USE_DEBUG_BUILD=OFF "d:\AuroraExternals\src\OpenImageIO-2.5.11.0"
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The CXX compiler identification is MSVC 19.40.33813.0
-- The C compiler identification is MSVC 19.40.33813.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - 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: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring OpenImageIO 2.5.11.0
-- CMake 3.27.3
-- CMake system           = Windows-10.0.19045
-- CMake system name      = Windows
-- Project source dir     = D:/AuroraExternals/src/OpenImageIO-2.5.11.0
-- Project build dir      = D:/AuroraExternals/build/OpenImageIO-2.5.11.0/Release
-- Project install prefix = D:/AuroraExternals/OpenImageIO
-- Configuration types    = Debug;Release;MinSizeRel;RelWithDebInfo
-- Build type             = Release
-- Supported release      = ON
-- CMAKE_UNITY_BUILD_MODE =
-- CMAKE_UNITY_BUILD_BATCH_SIZE =
-- Setting Namespace to: OpenImageIO_v2_5
-- CMAKE_CXX_COMPILER     = C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
-- CMAKE_CXX_COMPILER_ID  = MSVC
-- Building with C++14, downstream minimum C++14
-- Using Boost::filesystem
-- clang-format found: D:/Perforce/SDK/llvm-project/bin/clang-format.exe
--
-- * 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
--
-- Boost_COMPONENTS = thread;filesystem
-- Boost library not found
--     Try setting Boost_ROOT ?
CMake Error at src/cmake/checked_find_package.cmake:184 (message):
  Boost is required, aborting.
Call Stack (most recent call first):
  src/cmake/externalpackages.cmake:68 (checked_find_package)
  CMakeLists.txt:176 (include)

-- Configuring incomplete, errors occurred!

ERROR: Failed to run 'cmake -DCMAKE_INSTALL_PREFIX="d:\AuroraExternals\OpenImageIO" -DCMAKE_PREFIX_PATH="d:\AuroraExternals\glew;d:\AuroraExternals\glm;d:\AuroraExternals\USD;d:\AuroraExternals\libpng;d:\AuroraExternals\libtiff;d:\AuroraExternals\cxxopts;d:\AuroraExternals\uriparser;d:\AuroraExternals\OpenImageIO;d:\AuroraExternals\zlib;d:\AuroraExternals\miniz;d:\AuroraExternals\boost;d:\AuroraExternals\OpenEXR;d:\AuroraExternals\tinygltf;d:\AuroraExternals\gtest;d:\AuroraExternals\tinyexr;d:\AuroraExternals\MaterialX;d:\AuroraExternals\GLFW;d:\AuroraExternals\stb;d:\AuroraExternals\tinyobjloader;d:\AuroraExternals\libjpeg;d:\AuroraExternals\tbb;d:\AuroraExternals\Slang;d:\AuroraExternals\OpenSubdiv" -DCMAKE_BUILD_TYPE=Release -DCMAKE_DEBUG_POSTFIX="d" -G "Visual Studio 17 2022" -A x64  -DOIIO_BUILD_TOOLS=OFF -DOIIO_BUILD_TESTS=OFF -DBUILD_DOCS=OFF -DUSE_PYTHON=OFF -DSTOP_ON_WARNING=OFF -DUSE_PTEX=OFF -DBoost_NO_BOOST_CMAKE=On -DBoost_NO_SYSTEM_PATHS=True -DOPENEXR_ROOT="d:\AuroraExternals\OpenEXR" -DTBB_USE_DEBUG_BUILD=OFF "d:\AuroraExternals\src\OpenImageIO-2.5.11.0"'
See d:\AuroraExternals\build\OpenImageIO-2.5.11.0\Release\log.txt for more details.--

EDIT: It seems to be an issue from USD build system and OpenImageIO, I found that https://github.com/PixarAnimationStudios/OpenUSD/issues/2158

I don't really know who should fix this issue or if I can use a workaround.