Errors compiling ShaderMaker
threax opened this issue · comments
Hello,
Thanks for this cool library. I'm very interested in checking it out more. However, I have run into a compile issue with ShaderMaker. It won't compile and it complains about a lot of undeclared identifiers. I see ShaderMaker is a pretty new change from March, so I tried the previous commit (a5ccc07), which does not have ShaderMaker and I was able to build and run the demo without issues.
This screenshot shows the kinds of errors I get. The headers are all found, but some dx related symbols are undeclared.
Here is my output from generating the project files. I targeted VS 2022.
c:\Anomalous\RTXDI\build>cmake -G "Visual Studio 17 2022" -A x64 "c:\Anomalous\RTXDI\."
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.34.31935.0
-- The CXX compiler identification is MSVC 19.34.31935.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - 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: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- JsonCpp Version: 1.9.4
-- Looking for C++ include clocale
-- Looking for C++ include clocale - found
-- Looking for localeconv
-- Looking for localeconv - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of lconv
-- Check size of lconv - done
-- Performing Test HAVE_DECIMAL_POINT
-- Performing Test HAVE_DECIMAL_POINT - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Using Win32 for window creation
-- Setting 'FXC_PATH' to 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x64/fxc.exe'
-- Setting 'DXC_PATH' to 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x64/dxc.exe'
-- Setting 'DXC_SPIRV_PATH' to 'C:/VulkanSDK/1.2.198.1/Bin/dxc.exe'
-- Vulkan-Headers = 1.3.238
Processing 'NRD'...
-- NRD version: 3.3.1
-- NRD shaders output path: 'C:/Anomalous/RTXDI/build/NRD/Shaders'
-- NRD.hlsli definitions: NRD_USE_OCT_NORMAL_ENCODING = 0; NRD_USE_MATERIAL_ID = 0
-- Using FXC path: 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x64/fxc.exe'
-- Using DXC path: 'C:/Anomalous/RTXDI/dxc/bin/dxc.exe'
-- Using DXC (for SPIRV) path: 'C:/Anomalous/RTXDI/dxc/bin/dxc.exe'
-- Found Suitable Windows 10 SDK: 10.0.19041.0
-- Found Vulkan: C:/VulkanSDK/1.2.198.1/Lib/vulkan-1.lib (found suitable version "1.2.198", minimum required is "1.2.170") found components: glslc glslangValidator
-- Found a suitable version of the Vulkan SDK: C:/VulkanSDK/1.2.198.1/
-- cxxopts version 2.2.0
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Anomalous/RTXDI/build
I also attached the script I use to generate the project.
AutoBuild_x64.zip
I was hit by the similar issue after the recent update.
try updating submodules and regenerating solution,
git submodule update --init --recursive
good luck.
Looks like ShaderMake needs Windows SDK version 10.0.20348.0 or newer to compile. Please use a newer SDK.
Thanks both of you for your suggestions. Adding Windows SDK 10.2.20348.0 to my vs install fixed the build right up once I regenerated my build files.