I got this error “fatal error: nvjpeg.h: No such file or directory”.
I can locate the libnvjpeg.so at /usr/lib/aarch64-linux-gnu/tegra/libnvjpeg.so
Any help is appreciated.
I got this error “fatal error: nvjpeg.h: No such file or directory”.
I can locate the libnvjpeg.so at /usr/lib/aarch64-linux-gnu/tegra/libnvjpeg.so
Any help is appreciated.
I copied a nvjpeg.h file from my x86_64 device with cuda and tried to build my project. It can compile the source codes, but can not link the binary. I get these errors:
libxDNN.so: undefined reference to nvjpegJpegStateDestroy' libxDNN.so: undefined reference to
nvjpegJpegStateCreate’
libxDNN.so: undefined reference to nvjpegDestroy' libxDNN.so: undefined reference to
nvjpegDecode’
libxDNN.so: undefined reference to nvjpegCreate' libxDNN.so: undefined reference to
nvjpegGetImageInfo’
libxDNN.so: undefined reference to `nvjpegDecodeBatchedInitialize’
objdump -TC /usr/lib/aarch64-linux-gnu/tegra/libnvjpeg.so | grep nvjpegDecode returns nothing.
The libnvjepg.so seems to be a dummy library, any comment?
Hi,
nvjpeg.h is for desktop GPUs. On TX2, please use NvJpegDecoder class in tegra_mutlimedia_api.
You can install samples through Jetpack.
Still got these errors. What are the names of missing shared objects? I tried nvbuf_utils but not working.
libxDNN.so: undefined reference to NvBuffer::~NvBuffer()' libxDNN.so: undefined reference to
NvJPEGDecoder::decodeToBuffer(NvBuffer**, unsigned char*, unsigned long, unsigned int*, unsigned int*, unsigned int*)’
libxDNN.so: undefined reference to `NvJPEGDecoder::createJPEGDecoder(char const*)’
The linking command of libxDNN.so contains these arguments:
-L/usr/lib/aarch64-linux-gnu/tegra
-lnvbuf_utils -lcudart -lcublas -lnppig -lnppicc -lnvjpeg -lnvinfer -lnvparsers -lnvinfer_plugin
but when I call this:
ldd libxDNN.so | grep nvjpeg or
ldd libxDNN.so | grep nvbuf_utils
I get nothing.
But in the linking step I get no error and it successfully builds the library. Can you explain these strange things?
Hi,
Once you install tegra_multimedia_api samples through Jetpack, you can see the code at
/home/nvidia/tegra_multimedia_api/samples/common/classes/NvJpegDecoder.cpp
/home/nvidia/tegra_multimedia_api/include/NvJpegDecoder.h