Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

failed build ubuntu 12.04 server

Help
2012-10-22
2013-05-30
  • Robert Watson
    Robert Watson
    2012-10-22

    I'm having difficulty getting mediatomb to build.
    run ./configure without errors
    run make
    ….
    mv -f .deps/libmediatomb_a-extractor_handler.Tpo .deps/libmediatomb_a-extractor_handler.Po
    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/usr/include/mysql -DBIG_JOINS=1  -fno-strict-aliasing  -g -I/usr/local/include/js -I/usr/include/taglib       -pthread        -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:110:3: error: ‘AVMetadataTag’ was not declared in this scope
    ../src/metadata/ffmpeg_handler.cc:110:18: error: ‘tag’ was not declared in this scope
    ../src/metadata/ffmpeg_handler.cc:111:65: error: ‘av_metadata_get’ 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:291:69: error: ‘av_open_input_file’ was not declared in this scope
    ../src/metadata/ffmpeg_handler.cc:295:9: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1357)
    ../src/metadata/ffmpeg_handler.cc:295:39: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1357)
    ../src/metadata/ffmpeg_handler.cc:297:9: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1533)
    ../src/metadata/ffmpeg_handler.cc:297:39: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1533)
    ../src/metadata/ffmpeg_handler.cc:306:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1533)
    ../src/metadata/ffmpeg_handler.cc:306:35: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1533)
    make: ***  Error 1
    make: Leaving directory `/root/temp/mediatomb-0.12.1/build'
    make: ***  Error 1
    make: Leaving directory `/root/temp/mediatomb-0.12.1'
    make: ***  Error 2

     
  • Jin
    Jin
    2013-04-07

    Yeah well, ffmpeg is  mess, API changes frequently and now there are two projects, the forked and the original one.

    Current git master head supports the package supports the http://libav.org/ project, you'll need libavformat >= 54.29.104 and libavutil >= 51.73.101.

    I believe the library from the original project have the same name but different API, which makes checking a bit difficult, I was too lazy to add extra compile-tests in configure, probably this is the reason why you got the compile error.