Rendering glTF scenes with ray tracer and raster (Vulkan)
Apache License 2.0
162
stars
14
forks
source link
/usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/_deps/RapidJSON-1.1.0/rapidjson-1.1.0/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’ #16
[ 91%] Generating _autogen/silhouette.comp.glsl.h
/bin/glslangValidator -Ishaders -I/usr/src/libs/format/3d/gltf/nvpro-samples/nvpro_core -g -D_glsl --target-env vulkan1.3 --vn silhouette_comp_glsl -o /usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/_autogen/silhouette.comp.glsl.h /usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/shaders/silhouette.comp.glsl
/usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/shaders/silhouette.comp.glsl
[ 91%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/create_tangent.cpp.o
[ 92%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/main.cpp.o
In file included from /usr/src/libs/format/3d/gltf/nvpro-samples/nvpro_core/nvp/nvpsystem.hpp:55,
from /usr/src/libs/format/3d/gltf/nvpro-samples/nvpro_core/nvp/nvpwindow.hpp:24,
from /usr/src/libs/format/3d/gltf/nvpro-samples/nvpro_core/imgui/imgui_helper.h:28,
from /usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/src/main.cpp:30:
/usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/src/vk_context.hpp: In function ‘VkBool32 VkContextDebugReport(VkDebugUtilsMessageSeverityFlagBitsEXT, VkDebugUtilsMessageTypeFlagsEXT, const VkDebugUtilsMessengerCallbackDataEXT*, void*)’:
/usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/src/vk_context.hpp:51:12: warning: format ‘%p’ expects argument of type ‘void*’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
51 | LOGE("Object[%d] \n\t- Type %s\n\t- Value %p\n\t- Name %s\n", count,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52 | string_VkObjectType(callbackData->pObjects[count].objectType), callbackData->pObjects[count].objectHandle,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
/usr/src/libs/format/3d/gltf/nvpro-samples/nvpro_core/nvh/nvprint.hpp:154:35: note: in definition of macro ‘LOGE’
154 | nvprintfLevel(LOGLEVEL_ERROR, __VA_ARGS__); \
| ^~~~~~~~~~~
In file included from /usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/src/main.cpp:50:
/usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/src/vk_context.hpp:51:50: note: format string is defined here
51 | LOGE("Object[%d] \n\t- Type %s\n\t- Value %p\n\t- Name %s\n", count,
| ~^
| |
| void*
| %ld
[ 92%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/renderer_empty.cpp.o
[ 93%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/renderer_pathtracer.cpp.o
[ 93%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/renderer_raster.cpp.o
[ 94%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/resources.cpp.o
[ 94%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/scene.cpp.o
[ 95%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/scene_graph_ui.cpp.o
[ 95%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/settings.cpp.o
[ 96%] Building CXX object CMakeFiles/vk_gltf_renderer.dir/src/tiny_impl.cpp.o
In file included from /usr/src/libs/format/3d/gltf/nvpro-samples/nvpro_core/third_party/tinygltf/tiny_gltf.h:1728,
from /usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/src/tiny_impl.cpp:38:
/usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/_deps/RapidJSON-1.1.0/rapidjson-1.1.0/include/rapidjson/document.h:102:19: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
102 | : public std::iterator<std::random_access_iterator_tag
| ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h:65,
from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/array:43,
from /usr/src/libs/format/3d/gltf/nvpro-samples/nvpro_core/third_party/tinygltf/tiny_gltf.h:40:
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
/usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/_deps/RapidJSON-1.1.0/rapidjson-1.1.0/include/rapidjson/document.h:110:18: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
110 | typedef std::iterator<std::random_access_iterator_tag,ValueType> BaseType;
| ^~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
/usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/_deps/RapidJSON-1.1.0/rapidjson-1.1.0/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/usr/src/libs/format/3d/gltf/nvpro-samples/vk_gltf_renderer/_deps/RapidJSON-1.1.0/rapidjson-1.1.0/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
319 | GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
| ~~~~~~~^~~~~~~~~~~~
make[2]: *** [CMakeFiles/vk_gltf_renderer.dir/build.make:375: CMakeFiles/vk_gltf_renderer.dir/src/tiny_impl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:200: CMakeFiles/vk_gltf_renderer.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
These problems seem to be related to the version of the compiler. Unfortunately, I don't have access to such an environment. Would it be possible to try with Clang?