Kubuntu 11.04 Panda 1.7.2 build problems

Return to Compiling or Editing the Panda Source

Kubuntu 11.04 Panda 1.7.2 build problems

Postby Samurai336 » Sat Apr 21, 2012 4:59 pm

I'm trying to compile 1.7.2 on kubuntu 11.04 64-bit and I got the following error using this build command.

Code: Select all
$ python makepanda/makepanda.py --everything


Code: Select all

[ 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 :)
User avatar
Samurai336
 
Posts: 44
Joined: Fri Sep 16, 2011 9:09 am
Location: Vermont

Postby hertius » Sun Apr 22, 2012 4:11 pm

Hey, have you seen this topic/post: http://www.panda3d.org/forums/viewtopic.php?p=81484#81484? It might be of use considering your error refers to av_register_protocol. If I gather correctly, it has something to do with changes in libavcodec since version 53 or something. ...Or this could be completely unrelated.
hertius
 
Posts: 9
Joined: Sat Apr 21, 2012 10:39 pm

Postby rdb » Mon Apr 23, 2012 9:41 am

This issue has been fixed since 1.7.2. Either build a more recent release, or use the hand-fix mentioned in the thread that hertius linked to.
rdb
 
Posts: 9402
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby Samurai336 » Mon Apr 23, 2012 3:09 pm

That is 1.7.2 I am building.
User avatar
Samurai336
 
Posts: 44
Joined: Fri Sep 16, 2011 9:09 am
Location: Vermont

Postby rdb » Wed Apr 25, 2012 6:25 am

Yes, you said that. And as I said, you have to use a more recent version, or manually apply the fix in the linked thread.
rdb
 
Posts: 9402
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands


Return to Compiling or Editing the Panda Source

Who is online

Users browsing this forum: No registered users and 0 guests

cron