Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Fails to compile on OS X Mountain Lion

Help
juco
2012-10-23
2013-05-30
  • juco
    juco
    2012-10-23

    Tried from source and using homebrew, I get:

    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..           -D_THREAD_SAFE         -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:264: error: 'av_open_input_file' was not declared in this scope
    ../src/metadata/ffmpeg_handler.cc:268: warning: 'av_find_stream_info' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1446)
    ../src/metadata/ffmpeg_handler.cc:268: warning: 'av_find_stream_info' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1446)
    ../src/metadata/ffmpeg_handler.cc:270: warning: 'av_close_input_file' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1622)
    ../src/metadata/ffmpeg_handler.cc:270: warning: 'av_close_input_file' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1622)
    ../src/metadata/ffmpeg_handler.cc:279: warning: 'av_close_input_file' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1622)
    ../src/metadata/ffmpeg_handler.cc:279: warning: 'av_close_input_file' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1622)
    make[2]: *** [libmediatomb_a-ffmpeg_handler.o] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    
     
  • cojms1
    cojms1
    2012-10-30

    Which version off ffmpeg headers do you have installed?

     

  • Anonymous
    2012-11-22

    I would use macports instead, which will fetch and compile any dependancies:

    $ sudo port install mediatomb
    
     

  • Anonymous
    2012-12-22

    That does not work