Closed sivansh11 closed 1 year ago
Hi Sivansh! I'm trying to reproduce this, but haven't succeeded in getting this error yet. I see you're using a custom trying_nvvk
solution here; my best guess is, when you add the executable, like this:
#####################################################################################
# Executable
#
add_executable(${PROJNAME} ${SOURCE_FILES} ${COMMON_SOURCE_FILES} ${GLSL_SOURCES})
is it possible the CMakeLists.txt file for trying_nvvk/apps/tut1
is missing ${COMMON_SOURCE_FILES}
? If you happen to have a copy of the trying_nvvk/apps
repository, I can try building it as well.
In particular, ${COMMON_SOURCE_FILES}
was added to this line in March, so if trying_nvvk/apps/tut1
was copied from vk_mini_path_tracer
before then, that could cause this issue when building with a new version of nvpro_core!
The missing implementations of nvvk::GpuCrashTracker::GpuCrashTracker()
and isAftermathAvailable()
should be in nvpro_core/nvvk/nsight_aftermath_vk.cpp
and nvpro_core/nvp/perproject_globals.cpp
. These should be included in the COMMON_SOURCE_FILES
variable as follows:
_add_nvpro_core_lib()
:
_add_nvpro_core_lib()
in nvpro_core/setup.cmake
calls _process_shared_cmake_code()
: https://github.com/nvpro-samples/nvpro_core/blob/8096be945319118ab8ca8ce873d1ee46c387e8ac/cmake/setup.cmake#L1041_process_shared_cmake_code()
adds perproject_globals.cpp
to COMMON_SOURCE_FILES
: https://github.com/nvpro-samples/nvpro_core/blob/8096be945319118ab8ca8ce873d1ee46c387e8ac/cmake/setup.cmake#L993_add_nvpro_core_lib()
calls _add_package_NsightAftermath()
: https://github.com/nvpro-samples/nvpro_core/blob/8096be945319118ab8ca8ce873d1ee46c387e8ac/cmake/setup.cmake#L1045_add_package_NsightAftermath()
adds nsight_aftermath_vk.cpp
(even if the system doesn't have Nsight Aftermath, this is OK): https://github.com/nvpro-samples/nvpro_core/blob/8096be945319118ab8ca8ce873d1ee46c387e8ac/cmake/setup.cmake#L644vk_mini_path_tracer
subproject calls add_executable()
with COMMON_SOURCE_FILES
listed: https://github.com/nvpro-samples/vk_mini_path_tracer/blob/f29c5b9d5146259ba0fc8e5840736c249bec340f/_edit/CMakeLists.txt#L64Hope this helps - thanks for the issue!
I am trying out https://nvpro-samples.github.io/vk_mini_path_tracer/index.html I am getting undefined refrences