Update NRP to version 2.2


#1

Dear all,

I am trying to update the NRP to version 2.2 in Ubuntu 16.04, but when running ./update_nrp update all I get compilation errors when building gazebo.

/home/nrp/Documents/NRP/gazebo/gazebo/common/AudioDecoder.cc:236:35: error: CODEC_CAP_TRUNCATED’ was not declared in this scope >
if (this->codec->capabilities & CODEC_CAP_TRUNCATED)

/home/nrp/Documents/NRP/gazebo/gazebo/common/AudioDecoder.cc:237:30: error: ‘CODEC_FLAG_TRUNCATED’ was not declared in this scope >
this->codecCtx->flags |= CODEC_FLAG_TRUNCATED;

CMakeFiles/Makefile2:1030: recipe for target ‘gazebo/common/CMakeFiles/gazebo_common.dir/all’ failed
make[1]: *** [gazebo/common/CMakeFiles/gazebo_common.dir/all] Error 2
Makefile:160: recipe for target ‘all’ failed
make: *** [all] Error 2
GAZEBO BUILD ERROR

Do you have any suggestion?

Thanks!

Alberto


#2

Hi Alberto,

One simple thing to try is to remove Gazebo build folder, that is,

rm -rf $HBP/gazebo/build

and run again

./update_nrp update all

Best regards,
Luc


#3

Hi Luc,

I tried that, but I get the same error.

Thanks!
Alberto


#4

Hi Luc,

that was a problem of conflicting versions of libavformat libraries (I had the 7.4 installed instead of the 7.2). Downgrading it (and re-installing ROS) solved the problem.

However, thank you for your help!

Alberto