I’m trying to compile 1.7.2 on kubuntu 11.04 64-bit and I got the following error using this build command.
$ python makepanda/makepanda.py --everything
[ 25%] Building Interrogate database built/pandac/input/libpnmtext.in
[ 26%] Building C++ object built/tmp/text_composite.o
[ 26%] Building Interrogate database built/pandac/input/libtext.in
[ 26%] Building C++ object built/tmp/movies_composite1.o
In file included from panda/src/movies/movies_composite1.cxx:11:0:
panda/src/movies/ffmpegAudioCursor.cxx: In constructor ‘FfmpegAudioCursor::FfmpegAudioCursor(FfmpegAudio*)’:
panda/src/movies/ffmpegAudioCursor.cxx:43:7: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:43:66: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:55:52: error: ‘CODEC_TYPE_AUDIO’ was not declared in this scope
panda/src/movies/ffmpegAudioCursor.cxx:74:6: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:74:42: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx: In member function ‘virtual void FfmpegAudioCursor::seek(double)’:
panda/src/movies/ffmpegAudioCursor.cxx:256:6: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:256:42: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
In file included from panda/src/movies/movies_composite1.cxx:14:0:
panda/src/movies/ffmpegVideoCursor.cxx: In constructor ‘FfmpegVideoCursor::FfmpegVideoCursor(FfmpegVideo*)’:
panda/src/movies/ffmpegVideoCursor.cxx:50:7: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:50:66: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:62:52: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope
panda/src/movies/ffmpegVideoCursor.cxx:79:6: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:79:42: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx: In member function ‘void FfmpegVideoCursor::seek(double)’:
panda/src/movies/ffmpegVideoCursor.cxx:273:6: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:273:42: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
In file included from panda/src/movies/movies_composite1.cxx:16:0:
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static void FfmpegVirtualFile::register_protocol()’:
panda/src/movies/ffmpegVirtualFile.cxx:181:33: error: ‘av_register_protocol’ was not declared in this scope
Storing dependency cache.
Elapsed Time: 9 min 52 sec
Build terminated.
Hope you guys can help