compilation of tegra_multimedia_api/samples/backend is wrong


When I compile backend, the fault of teminal is following:

nvidia@tegra-ubuntu:~/tegra_multimedia_api/samples/backend$ sudo make
[sudo] password for nvidia: 
g++  -I"/usr/include/aarch64-linux-gnu" -I"/home/nvidia/tegra_multimedia_api/include" -I"/home/nvidia/tegra_multimedia_api/include/libjpeg-8b" -I"/usr/include/libdrm" -std=c++11 -I"/home/nvidia/tegra_multimedia_api/samples/common/algorithm/cuda" -I"/home/nvidia/tegra_multimedia_api/samples/common/algorithm/trt" -I"/usr/local/cuda/targets/aarch64-linux/include" -D ENABLE_TRT -c v4l2_backend_csvparser.cpp
In file included from v4l2_backend_csvparser.cpp:33:0:
/home/nvidia/tegra_multimedia_api/samples/common/algorithm/trt/trt_inference.h:33:21: fatal error: NvInfer.h: No such file or directory

compilation terminated.
Makefile:83: recipe for target 'v4l2_backend_csvparser.o' failed
make: *** [v4l2_backend_csvparser.o] Error 1

so…my NvInfer.h is missing…where is NvInfer.h?

And another problem : How to use native compile via Jetson TX2?

Could you help me?

Hi comic,
The samples are compiled by installing via Jetpack. Do you install the samples via Jetpack 3.1?

Hi DanneLLL,
I manually install the samples.
Now,all samples can be build.
thanks for your reply.