Menu

#112 can't build 0.12.1

0.12.0
open
nobody
5
2012-11-07
2012-11-07
No

hi there,

got some problem building 0.12.1

two constants are missing and obviously something else missing in the struct AVFormatContext

~/mediatomb-0.12.1]:$ grep -rn CODEC_TYPE_VIDEO .
./src/metadata/ffmpeg_handler.cc:181: if((st != NULL) && (videoset == false) && (st->codec->codec_type == CODEC_TYPE_VIDEO))

~/mediatomb-0.12.1]:$ grep -rn CODEC_TYPE_AUDIO .
./src/metadata/ffmpeg_handler.cc:212: if(st->codec->codec_type == CODEC_TYPE_AUDIO)
~/mediatomb-0.12.1]:$

make[3]: Leaving directory `/tank/users/mathieu/Documents/Building/mediatomb-0.12.1/tombupnp'
make[2]: Leaving directory `/tank/users/mathieu/Documents/Building/mediatomb-0.12.1/tombupnp'
Making all in build
make[2]: Entering directory `/tank/users/mathieu/Documents/Building/mediatomb-0.12.1/build'
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/opt/csw/include/taglib -D_REENTRANT -pthreads -g -O2 -MT libmediatomb_a-ffmpeg_handler.o -MD -MP -MF .deps/libmediatomb_a-ffmpeg_handler.Tpo -c -o libmediatomb_a-ffmpeg_handler.o `test -f '../src/metadata/ffmpeg_handler.cc' || echo './'`../src/metadata/ffmpeg_handler.cc
../src/metadata/ffmpeg_handler.cc: In function `void addFfmpegMetadataFields(zmm::Ref<CdsItem>, AVFormatContext*)':
../src/metadata/ffmpeg_handler.cc:92: error: 'struct AVFormatContext' has no member named 'title'
../src/metadata/ffmpeg_handler.cc:94: error: 'struct AVFormatContext' has no member named 'title'
../src/metadata/ffmpeg_handler.cc:96: error: 'struct AVFormatContext' has no member named 'title'
../src/metadata/ffmpeg_handler.cc:98: error: 'struct AVFormatContext' has no member named 'author'
../src/metadata/ffmpeg_handler.cc:100: error: 'struct AVFormatContext' has no member named 'author'
../src/metadata/ffmpeg_handler.cc:102: error: 'struct AVFormatContext' has no member named 'author'
../src/metadata/ffmpeg_handler.cc:104: error: 'struct AVFormatContext' has no member named 'album'
../src/metadata/ffmpeg_handler.cc:106: error: 'struct AVFormatContext' has no member named 'album'
../src/metadata/ffmpeg_handler.cc:108: error: 'struct AVFormatContext' has no member named 'album'
../src/metadata/ffmpeg_handler.cc:110: error: 'struct AVFormatContext' has no member named 'year'
../src/metadata/ffmpeg_handler.cc:112: error: 'struct AVFormatContext' has no member named 'year'
../src/metadata/ffmpeg_handler.cc:114: error: 'struct AVFormatContext' has no member named 'year'
../src/metadata/ffmpeg_handler.cc:116: error: 'struct AVFormatContext' has no member named 'genre'
../src/metadata/ffmpeg_handler.cc:118: error: 'struct AVFormatContext' has no member named 'genre'
../src/metadata/ffmpeg_handler.cc:120: error: 'struct AVFormatContext' has no member named 'genre'
../src/metadata/ffmpeg_handler.cc:122: error: 'struct AVFormatContext' has no member named 'comment'
../src/metadata/ffmpeg_handler.cc:124: error: 'struct AVFormatContext' has no member named 'comment'
../src/metadata/ffmpeg_handler.cc:126: error: 'struct AVFormatContext' has no member named 'comment'
../src/metadata/ffmpeg_handler.cc:128: error: 'struct AVFormatContext' has no member named 'track'
../src/metadata/ffmpeg_handler.cc:130: error: 'struct AVFormatContext' has no member named 'track'
../src/metadata/ffmpeg_handler.cc:132: error: 'struct AVFormatContext' has no member named 'track'
../src/metadata/ffmpeg_handler.cc: In function `void addFfmpegResourceFields(zmm::Ref<CdsItem>, AVFormatContext*, int*, int*)':
../src/metadata/ffmpeg_handler.cc:181: error: `CODEC_TYPE_VIDEO' was not declared in this scope
../src/metadata/ffmpeg_handler.cc:212: error: `CODEC_TYPE_AUDIO' was not declared in this scope
../src/metadata/ffmpeg_handler.cc: In member function `virtual void FfmpegHandler::fillMetadata(zmm::Ref<CdsItem>)':
../src/metadata/ffmpeg_handler.cc:263: warning: `av_open_input_file' is deprecated (declared at /opt/csw/include/libavformat/avformat.h:1483)
../src/metadata/ffmpeg_handler.cc:264: warning: `av_open_input_file' is deprecated (declared at /opt/csw/include/libavformat/avformat.h:1483)
../src/metadata/ffmpeg_handler.cc:268: warning: `av_find_stream_info' is deprecated (declared at /opt/csw/include/libavformat/avformat.h:1526)
../src/metadata/ffmpeg_handler.cc:268: warning: `av_find_stream_info' is deprecated (declared at /opt/csw/include/libavformat/avformat.h:1526)
../src/metadata/ffmpeg_handler.cc:270: warning: `av_close_input_file' is deprecated (declared at /opt/csw/include/libavformat/avformat.h:1706)
../src/metadata/ffmpeg_handler.cc:270: warning: `av_close_input_file' is deprecated (declared at /opt/csw/include/libavformat/avformat.h:1706)
../src/metadata/ffmpeg_handler.cc:279: warning: `av_close_input_file' is deprecated (declared at /opt/csw/include/libavformat/avformat.h:1706)
../src/metadata/ffmpeg_handler.cc:279: warning: `av_close_input_file' is deprecated (declared at /opt/csw/include/libavformat/avformat.h:1706)
make[2]: *** [libmediatomb_a-ffmpeg_handler.o] Error 1
make[2]: Leaving directory `/tank/users/mathieu/Documents/Building/mediatomb-0.12.1/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tank/users/mathieu/Documents/Building/mediatomb-0.12.1'
make: *** [all] Error 2

I don't think it matters, but I am on Solaris 11

Discussion


Log in to post a comment.