I was able to get HAPI, and H3DViewer to compile successfully.
However upon trying to complete the compilation of H3DAPI, I ran into errors stemming from FFmpedDecoder. These look like some deprecated function calls from the Precise version of libavcodec.
Please see errors below:
In file included from /usr/local/include/libavutil/avutil.h:126:0,
from /usr/local/include/libavutil/samplefmt.h:22,
from /usr/local/include/libavcodec/avcodec.h:30,
from /home/robot/H3DAPI/H3DAPI/build/../include/H3D/FFmpegDecoder.h:42,
from /home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:32:
/usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/usr/local/include/libavutil/common.h:184:47: error: ‘UINT64_C’ was not declared in this scope
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp: In member function ‘virtual bool H3D::FFmpegDecoder::testClip(const string&)’:
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:132:7: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:132:65: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:138:3: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1559) [-Wdeprecated-declarations]
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:138:44: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1559) [-Wdeprecated-declarations]
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp: In member function ‘virtual bool H3D::FFmpegDecoder::loadClip(const string&)’:
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:147:6: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:147:64: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:163:51: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp: In member function ‘virtual void H3D::FFmpegDecoder::getNewFrame(unsigned char*)’:
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:278:50: error: ‘avcodec_decode_video’ was not declared in this scope
make[2]: *** [CMakeFiles/H3DAPI.dir/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp.o] Error 1
Note that I am working with the latest trunk versions of all the software.
Please advise.
Regards,
Kyle