jetson-reference编译出现的问题记录

时间:2024-01-27 16:21:52

问题一
显示gcc版本过高,需要安装低版本的gcc、g++

sudo apt-get install -y gcc-4.9
sudo apt-get install -y g++-4.9
cd /usr/bin
sudo rm gcc
sudo ln -s gcc-4.9 gcc
sudo rm g++
sudo ln -s g++-4.9 g++

问题二:
/home/nvidia/workspace/jetson-inference/utils/camera/gstCamera.cpp: In member function ‘bool gstCamera::parseCaps(GstStructure, videoOptions::Codec, imageFormat, uint32_t, uint32_t, float)’:
/home/nvidia/workspace/jetson-inference/utils/camera/gstCamera.cpp:259:63: error: ‘gst_structure_get_list’ was not declared in this scope
if( gst_structure_get_list(caps, "framerate", &frameRateList) && frameRateList->n_values > 0 )
^
utils/CMakeFiles/jetson-utils.dir/build.make:318: recipe for target 'utils/CMakeFiles/jetson-utils.dir/camera/gstCamera.cpp.o' failed