Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#62 yarp-2.2.4 compatibility issues

open
nobody
None
5
2009-09-30
2009-09-30
Anonymous
No

It seems yarp-2.2.4 does not compile with ace-5.7.2 and ffmpeg-0.5 because of incompatible APIs.

Concerning ACE, I got the following compilation errors (there is no more a 'parityenb' member in the 'ACE_TTY_IO::Serial_Params' struct) :
/yarp-2.2.4/src/modules/serial/SerialDeviceDriver.cpp: In member function ‘virtual bool yarp::dev::SerialDeviceDriver::open(yarp::os::Searchable&)’:
/yarp-2.2.4/src/modules/serial/SerialDeviceDriver.cpp:64: erreur: ‘struct ACE_TTY_IO::Serial_Params’ has no member named ‘parityenb’
make[2]: *** [src/modules/CMakeFiles/yarpmod.dir/serial/SerialDeviceDriver.o] Erreur 1
make[1]: *** [src/modules/CMakeFiles/yarpmod.dir/all] Erreur 2
make: *** [all] Erreur 2

Concerning ffmpeg, I got the following errors due to invalid conversion from 'int' to 'PixelFormat':
[ 88%] Building CXX object src/modules/CMakeFiles/yarpmod.dir/ffmpeg/FfmpegWriter.o
/yarp-2.2.4/src/modules/ffmpeg/FfmpegWriter.cpp: In function ‘AVFrame* alloc_picture(int, int, int)’:
/yarp-2.2.4/src/modules/ffmpeg/FfmpegWriter.cpp:347: erreur: invalid conversion from ‘int’ to ‘PixelFormat’
/yarp-2.2.4/src/modules/ffmpeg/FfmpegWriter.cpp:347: erreur: initializing argument 1 of ‘int avpicture_get_size(PixelFormat, int, int)’
/yarp-2.2.4/src/modules/ffmpeg/FfmpegWriter.cpp:354: erreur: invalid conversion from ‘int’ to ‘PixelFormat’
/yarp-2.2.4/src/modules/ffmpeg/FfmpegWriter.cpp:354: erreur: initializing argument 3 of ‘int avpicture_fill(AVPicture*, uint8_t*, PixelFormat, int, int)’
[ 89%] Building CXX object src/modules/CMakeFiles/yarpmod.dir/ffmpeg/ffmpeg_api.o
/yarp-2.2.4/src/modules/ffmpeg/ffmpeg_api.cpp: In function ‘int stable_img_convert(AVPicture*, int, const AVPicture*, int, int, int)’:
/yarp-2.2.4/src/modules/ffmpeg/ffmpeg_api.cpp:27: erreur: invalid conversion from ‘int’ to ‘PixelFormat’
/yarp-2.2.4/src/modules/ffmpeg/ffmpeg_api.cpp:27: erreur: initializing argument 3 of ‘SwsContext* sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, const double*)’
/yarp-2.2.4/src/modules/ffmpeg/ffmpeg_api.cpp:27: erreur: invalid conversion from ‘int’ to ‘PixelFormat’
/yarp-2.2.4/src/modules/ffmpeg/ffmpeg_api.cpp:27: erreur: initializing argument 6 of ‘SwsContext* sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, const double*)’

Discussion

  • Thanks for reporting that these two devices are getting rusty. I don't supposed you'd be interested in taking a shot at fixing one of these? It might be a while before any developer using them upgrades to the latest ACE or ffmpeg versions.