Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds
H3D.org Forum Index
   Installing and compiling
     64-Bit Ubuntu Precise H3DAPI compilation errors with FFmpegDecoder
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
kylem
Posted on: 2012/6/11 22:38
Just popping in
Joined: 2012/6/11
From:
Posts: 1
64-Bit Ubuntu Precise H3DAPI compilation errors with FFmpegDecoder
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.hIn function â€˜int32_t av_clipl_int32_c(int64_t)’:
/
usr/local/include/libavutil/common.h:184:47error‘UINT64_C’ was not declared in this scope
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cppIn member function â€˜virtual bool H3D::FFmpegDecoder::testClip(const string&)’:
/
home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:132:7warning‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, intAVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
/
home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:132:65warning‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, intAVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
/
home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:138:3warning‘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:44warning‘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.cppIn member function â€˜virtual bool H3D::FFmpegDecoder::loadClip(const string&)’:
/
home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:147:6warning‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, intAVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
/
home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:147:64warning‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, intAVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
/
home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:163:51error‘CODEC_TYPE_VIDEO’ was not declared in this scope
/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cppIn member function â€˜virtual void H3D::FFmpegDecoder::getNewFrame(unsigned char*)’:
/
home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp:278:50error‘avcodec_decode_video’ was not declared in this scope
make
[2]: *** [CMakeFiles/H3DAPI.dir/home/robot/H3DAPI/H3DAPI/src/FFmpegDecoder.cpp.oError 1


Note that I am working with the latest trunk versions of all the software.

Please advise.

Regards,
Kyle
daniel
Posted on: 2012/6/19 13:05
Webmaster
Joined: 2004/11/28
From:
Posts: 536
Re: 64-Bit Ubuntu Precise H3DAPI compilation errors with FFmpegDecoder
Just to get things compiling you could just set the FFMPEG_LIBRARIES CMake variable when you generate makefiles to empty. This will cause it to not find the library, but the H3DAPI should compile fine anyway. The MovieTexture node will not work though.

Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 



(C) 2012 SenseGraphics AB    ---    Powered by XOOPS