In the Holoscan SDK 4.5.0 container, the installed header
holoscan/logger/holoscan_logger.hpp includes
common/logger/spdlog_logger.hpp, but that dependency is not installed
in the SDK include tree. Consequently, a consumer application cannot
compile code that includes holoscan_logger.hpp.
Environment
nvcr.io/nvidia/clara-holoscan/holoscan:v4.5.0-cuda13
sha256:e97641a0bfde52033f6de8c48a354d2010cdbc140093155a920506d87d7940c5
Reproduction
docker run --rm --entrypoint bash
nvcr.io/nvidia/clara-holoscan/holoscan:v4.5.0-cuda13 -c ’
printf “include “holoscan/logger/holoscan_logger.hpp”\nint main() {}\n” > /tmp/t.cc
g++ -std=c++17 -I/opt/nvidia/holoscan/include
-I/opt/nvidia/holoscan/include/gxf -c /tmp/t.cc -o /tmp/t.o
’
Actual result
/opt/nvidia/holoscan/include/holoscan/logger/holoscan_logger.hpp:9:10:
fatal error: common/logger/spdlog_logger.hpp: No such file or directory
The required header is absent from the installed include tree:
docker run --rm --entrypoint bash
nvcr.io/nvidia/clara-holoscan/holoscan:v4.5.0-cuda13 -c ’
find /opt/nvidia/holoscan/include -name spdlog_logger.hpp
ls -d /opt/nvidia/holoscan/include/gxf/common/logger
’
find returns no result, and ls reports that the directory does not exist.
Expected result
A consumer should be able to include
holoscan/logger/holoscan_logger.hpp using only the headers installed
with the SDK.
Impact
Consumers cannot compile the documented HoloscanLogger header or use
its inherited writer hook to redirect Holoscan output to another logging
library. The relevant symbol is exported from libholoscan_logger.so;
the problem appears limited to the missing installed declaration and its
dependency.
Likely packaging cause
The installation rules appear to install include/holoscan/ and GXF’s
common tree under include/gxf, but not Holoscan’s own
include/common/ tree. The missing file is:
include/common/logger/spdlog_logger.hpp
Installing that required dependency alongside the public Holoscan
headers appears to resolve the compile failure. NVIDIA may of course
prefer another packaging/layout solution.
Temporary workaround
We currently vendor the matching release’s
include/common/logger/spdlog_logger.hpp declaration. This is
ABI-sensitive and must be revalidated on every SDK upgrade, so it is not
a suitable long-term workaround.
Could you confirm whether this is a packaging bug, and provide either a
4.5.x packaging fix or an officially supported workaround?