Fail to find ANARI headers
oroppas opened this issue · comments
Hi,
It appears the headers from ANARI-SDK such as IntrusivePtr.h
are installed under anari/backend/utilities
and VisRTX assumes the different directory structure:
[1/75] Building CUDA object device/CMakeFiles/Debug_ptx_gen.dir/renderer/Debug_ptx.ptx
FAILED: device/CMakeFiles/Debug_ptx_gen.dir/renderer/Debug_ptx.ptx
/usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler -I/home/ryuta/packages/VisRTX/VisRTX/device -isystem=/home/ryuta/local/include -isystem=/home/ryuta/packages/VisRTX/VisRTX/external/glm/include -isystem=/home/ryuta/local/optix/include -isystem=/usr/local/cuda/include -O3 -DNDEBUG -std=c++17 -MD -MT device/CMakeFiles/Debug_ptx_gen.dir/renderer/Debug_ptx.ptx -MF device/CMakeFiles/Debug_ptx_gen.dir/renderer/Debug_ptx.ptx.d -x cu -ptx /home/ryuta/packages/VisRTX/VisRTX/device/renderer/Debug_ptx.cu -o device/CMakeFiles/Debug_ptx_gen.dir/renderer/Debug_ptx.ptx
In file included from /home/ryuta/packages/VisRTX/VisRTX/device/renderer/Renderer.h:34,
from /home/ryuta/packages/VisRTX/VisRTX/device/renderer/Debug.h:34,
from /home/ryuta/packages/VisRTX/VisRTX/device/renderer/Debug_ptx.cu:32:
/home/ryuta/packages/VisRTX/VisRTX/device/Object.h:35:10: fatal error: anari/detail/IntrusivePtr.h: No such file or directory
35 | #include "anari/detail/IntrusivePtr.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
I can't tell if I am doing something silly. Any advice will be greatly appreciated.
Thanks!
Hi, thanks for trying out VisRTX!
The main
branch of VisRTX uses the latest release of the ANARI SDK, which is behind main
of the SDK. You can either try using the older version of the SDK or using the next_release
branch of VisRTX. Let me know how it goes!
In either case, updating the README and CMake with the specific version of the SDK is a good change to make.
Worked like a charm! Thank you.