VPI package can’t be loaded or found properly

I’m having issues with running code that uses VPI package.
We already have the jetpack installed (Jetpack version 4.4), so I could see the vpi is existing at /opt/nvidia/vpi-0.3
and contains the directories “include” , “samples” “targets” and “lib”.
But when I mimic in the cmake what’s shown in the tutorials for VPI like this one and do find_package(vpi REQUIRED), I get the following error:

“cmake .” : CMake Error at CMakeLists.txt:88 (find_package):
By not providing “Findvpi.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “vpi”, but
CMake did not find one.
Could not find a package configuration file provided by “vpi” with any of
the following names:
Add the installation prefix of “vpi” to CMAKE_PREFIX_PATH or set “vpi_DIR”
to a directory containing one of the above files. If “vpi” provides a
separate development package or SDK, be sure it has been installed.

find_package(vpi 0.3 REQUIRED) gives the same results (since my package is currently in /opt/nvidia/vpi-0.3 )
I tried to re-install the package as shown here, but for some reason I get the following errors:
E: Unable to locate package libnvvpi1
E: Unable to locate package vpi1-dev
E: Unable to locate package vpi1-samples

Only when I omit the “1” suffix I can download vpi-dev and vpi-samples, but I still can’t download libnvvpi1 / libnvvpi and I guess that’s why the package can’t be found.
It’s also a bit weird for me that I get version of vpi-0.3 or vpi-0.4 after trying to update the package, but not vpi version 1 as shown in your docs.
I did all the " sudo apt update" / sudo apt upgrade" before trying to update my package.
Would like to know what’s the solution to such a problem please.


TensorRT Version : 7.1.2
CUDA Version : 11.0
Operating System + Version : Ubuntu 18.04
Jetpack version : 4.4
Device : Jetson AGX Xavier

1 Like


The document targets for our latest JetPack 4.5.1, which do include VPI-1.0.
Please noted that VPI-0.4 is in JetPack 4.4.1, and VPI-0.3 is in JetPack 4.4.

The installation guide you shared is for a desktop environment rather than Jetson.
Would you mind to reflash your device, install all the package from the same JetPack version, and try it again?