-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Hi,
I am seeing the following error when compiling vk_gaussian_splatting on Jetson Orin Nano.
[ 59%] Building CXX object nvpro_core2/nvgpu_monitor/CMakeFiles/nvgpu_monitor.dir/nvml_monitor.cpp.o
/home/camsin/saichand/camsin/ar_vr/vk_gaussian_splatting/build/_deps/nvpro_core2/nvgpu_monitor/nvml_monitor.cpp: In function ‘const string brandToString(nvmlBrandType_t)’:
/home/camsin/saichand/camsin/ar_vr/vk_gaussian_splatting/build/_deps/nvpro_core2/nvgpu_monitor/nvml_monitor.cpp:91:10: error: ‘NVML_BRAND_NVIDIA_CLOUD_GAMING’ was not declared in this scope; did you mean ‘NVML_BRAND_NVIDIA_VGAMING’?
91 | case NVML_BRAND_NVIDIA_CLOUD_GAMING:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| NVML_BRAND_NVIDIA_VGAMING
gmake[2]: *** [nvpro_core2/nvgpu_monitor/CMakeFiles/nvgpu_monitor.dir/build.make:109: nvpro_core2/nvgpu_monitor/CMakeFiles/nvgpu_monitor.dir/nvml_monitor.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1183: nvpro_core2/nvgpu_monitor/CMakeFiles/nvgpu_monitor.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
[ 65%] Building CXX object CMakeFiles/vk_gaussian_splatting.dir/src/main.cpp.o
In file included from /usr/include/c++/11/ext/alloc_traits.h:34,
from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from /home/camsin/saichand/camsin/ar_vr/vk_gaussian_splatting/src/gaussian_splatting_ui.h:23,
from /home/camsin/saichand/camsin/ar_vr/vk_gaussian_splatting/src/main.cpp:20:
/usr/include/c++/11/bits/alloc_traits.h: In instantiation of ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::function<void(const nvutils::ParameterSequencer::State&)>; _Args = {main(int, char**)::<lambda()>}; _Tp = std::function<void(const nvutils::ParameterSequencer::State&)>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::function<void(const nvutils::ParameterSequencer::State&)> >]’:
/usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {main(int, char**)::<lambda()>}; _Tp = std::function<void(const nvutils::ParameterSequencer::State&)>; _Alloc = std::allocator<std::function<void(const nvutils::ParameterSequencer::State&)> >; std::vector<_Tp, _Alloc>::reference = std::function<void(const nvutils::ParameterSequencer::State&)>&]’
/home/camsin/saichand/camsin/ar_vr/vk_gaussian_splatting/src/main.cpp:68:43: required from here
/usr/include/c++/11/bits/alloc_traits.h:518:28: error: no matching function for call to ‘construct_at(std::function<void(const nvutils::ParameterSequencer::State&)>&, main(int, char**)::<lambda()>)’
518 | std::construct_at(__p, std::forward<_Args>(__args)...);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/stl_iterator.h:85,
from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from /home/camsin/saichand/camsin/ar_vr/vk_gaussian_splatting/src/gaussian_splatting_ui.h:23,
from /home/camsin/saichand/camsin/ar_vr/vk_gaussian_splatting/src/main.cpp:20:
/usr/include/c++/11/bits/stl_construct.h:94:5: note: candidate: ‘template<class _Tp, class ... _Args> constexpr decltype (::new(void(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)’
94 | construct_at(_Tp* __location, _Args&&... __args)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/stl_construct.h: In substitution of ‘template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = std::function<void(const nvutils::ParameterSequencer::State&)>; _Args = {main(int, char**)::<lambda()>}]’:
/usr/include/c++/11/bits/alloc_traits.h:518:21: required from ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::function<void(const nvutils::ParameterSequencer::State&)>; _Args = {main(int, char**)::<lambda()>}; _Tp = std::function<void(const nvutils::ParameterSequencer::State&)>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::function<void(const nvutils::ParameterSequencer::State&)> >]’
/usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {main(int, char**)::<lambda()>}; _Tp = std::function<void(const nvutils::ParameterSequencer::State&)>; _Alloc = std::allocator<std::function<void(const nvutils::ParameterSequencer::State&)> >; std::vector<_Tp, _Alloc>::reference = std::function<void(const nvutils::ParameterSequencer::State&)>&]’
/home/camsin/saichand/camsin/ar_vr/vk_gaussian_splatting/src/main.cpp:68:43: required from here
/usr/include/c++/11/bits/stl_construct.h:96:17: error: no matching function for call to ‘std::function<void(const nvutils::ParameterSequencer::State&)>::function(main(int, char**)::<lambda()>)’
96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...))
Please help resolve errors.
Thanks