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

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

error -- unsupported GNU version! gcc versions later than 6 are not supported!

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++

问题二:
gst_structure_get_list未定义

> /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

这个问题找了好久,最后通过问题三解决,或者说避开。。:

问题三

Error, pkgProblemResolver::Resolve generated breaks

sudo apt-get dist-upgrade
这个会将ubuntu16.04升级到18.04...

posted @ 2020-11-05 17:26  快乐码小农  阅读(402)  评论(0编辑  收藏  举报