用 C/C++ 开发 Jetson 模组,需要 JetPack 的 pkgconfig 文件。相关文件保存在目录 /usr/lib/pkgconfig 下。目录下存了几十个 pc 文件,我今天要用到视频流解码的相关内容,估计与下面几个文件相关:
nvgraph-10.2.pc
nvidia-ml-10.2.pc
nvrtc-10.2.pc
nvToolsExt-10.2.pc
- nvgraph-10.2.pc 用于加速图像分析,内容如下:
cudaroot=/usr/local/cuda-10.2
libdir=${cudaroot}/targets/aarch64-linux/lib
includedir=${cudaroot}/targets/aarch64-linux/includeName: nvgraph
Description: NVIDIA Accelerated Graph Analytics
Version: 10.2
Libs: -L${libdir} -lnvgraph
Cflags: -I${includedir}
- nvidia-ml-10.2.pc 估计是用于机器学习的
cudaroot=/usr/local/cuda-10.2
libdir=${cudaroot}/targets/aarch64-linux/lib/stubs
includedir=${cudaroot}/targets/aarch64-linux/includeName: nvidia-ml
Description: NVML
Version: 10.2
Libs: -L${libdir} -lnvidia-ml
Cflags: -I${includedir}
- nvrtc-10.2.pc 这个是 CUDA C++运行时编译库
cudaroot=/usr/local/cuda-10.2
libdir=${cudaroot}/targets/aarch64-linux/lib
includedir=${cudaroot}/targets/aarch64-linux/includeName: nvrtc
Description: A runtime compilation library for CUDA C++
Version: 10.2
Libs: -L${libdir} -lnvrtc
Cflags: -I${includedir}
- nvToolsExt-10.2.pc 工具扩展库
cudaroot=/usr/local/cuda-10.2
libdir=${cudaroot}/targets/aarch64-linux/lib
includedir=${cudaroot}/targets/aarch64-linux/includeName: nvToolsExt
Description: NVIDIA Tools Extension
Version: 10.2
Libs: -L${libdir} -lnvToolsExt
Cflags: -I${includedir}