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

Close

can't compile latest version

Help
2012-07-31
2013-05-29
  • tom schaefer
    tom schaefer
    2012-07-31

    ok this should work great but the latest code gives this error.

    any idea why? or what to check.

    Compiling metadata.c
    In file included from metadata.c:35:
    /usr/include/libavformat/avformat.h:158: warning: âAVMetadataâ is deprecated
    metadata.c: In function âlav_openâ:
    metadata.c:103: warning: âav_open_input_fileâ is deprecated (declared at /usr/include/libavformat/avformat.h:1170)
    metadata.c:122:1: warning: "AV_DICT_IGNORE_SUFFIX" redefined
    In file included from /usr/include/libavcodec/avcodec.h:33,
                     from metadata.c:34:
    /usr/include/libavutil/dict.h:29:1: warning: this is the location of the previous definition
    metadata.c: At top level:
    metadata.c:124: warning: âAVMetadataTagâ is deprecated
    metadata.c: In function âGetVideoMetadataâ:
    metadata.c:1550: warning: âav_metadata_getâ is deprecated (declared at /usr/include/libavformat/avformat.h:145)
    metadata.c:1550: error: âAV_DICT_IGNORE_SUFFIXâ undeclared (first use in this function)
    metadata.c:1550: error: (Each undeclared identifier is reported only once
    metadata.c:1550: error: for each function it appears in.)
    The following command failed:
    gcc -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/ffmpeg -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat -o metadata.o -c metadata.c
    Compiling scanner.c
    scanner.c: In function âinsert_containersâ:
    scanner.c:172: warning: format â%lXâ expects type âlong unsigned intâ, but argument 3 has type âsqlite_int64â
    scanner.c:195: warning: format â%lXâ expects type âlong unsigned intâ, but argument 3 has type âsqlite_int64â
    scanner.c:207: warning: format â%lXâ expects type âlong unsigned intâ, but argument 4 has type âsqlite_int64â
    scanner.c:276: warning: format â%lXâ expects type âlong unsigned intâ, but argument 3 has type âsqlite_int64â
    scanner.c:281: warning: format â%lXâ expects type âlong unsigned intâ, but argument 4 has type âsqlite_int64â
    scanner.c:297: warning: format â%lXâ expects type âlong unsigned intâ, but argument 4 has type âsqlite_int64â
    scanner.c:318: warning: format â%lXâ expects type âlong unsigned intâ, but argument 3 has type âsqlite_int64â
    scanner.c:323: warning: format â%lXâ expects type âlong unsigned intâ, but argument 4 has type âsqlite_int64â
    scanner.c:338: warning: format â%lXâ expects type âlong unsigned intâ, but argument 4 has type âsqlite_int64â
    In file included from metadata.c:35:
    /usr/include/libavformat/avformat.h:158: warning: âAVMetadataâ is deprecated
    metadata.c: In function âlav_openâ:
    metadata.c:103: warning: âav_open_input_fileâ is deprecated (declared at /usr/include/libavformat/avformat.h:1170)
    metadata.c:122:1: warning: "AV_DICT_IGNORE_SUFFIX" redefined
    In file included from /usr/include/libavcodec/avcodec.h:33,
                     from metadata.c:34:
    /usr/include/libavutil/dict.h:29:1: warning: this is the location of the previous definition
    metadata.c: At top level:
    metadata.c:124: warning: âAVMetadataTagâ is deprecated
    metadata.c: In function âGetVideoMetadataâ:
    metadata.c:1550: warning: âav_metadata_getâ is deprecated (declared at /usr/include/libavformat/avformat.h:145)
    metadata.c:1550: error: âAV_DICT_IGNORE_SUFFIXâ undeclared (first use in this function)
    metadata.c:1550: error: (Each undeclared identifier is reported only once
    metadata.c:1550: error: for each function it appears in.)

     
  • Justin Maggard
    Justin Maggard
    2012-07-31

    Is this with minidlna 1.0.25?  What version of ffmpeg are you using?  Have you tried pulling from minidlna CVS HEAD?

     
  • tom schaefer
    tom schaefer
    2012-08-01

    yes 1.0.25 from the tar ball

     
  • zak_neutron
    zak_neutron
    2012-09-23

    I too seem to have a problem compiling:

    /src/minidlna-1.0.25# make
    ./genconfig.sh
    Compiling minidlna.c
    Compiling upnphttp.c
    Compiling upnpdescgen.c
    Compiling upnpsoap.c
    Compiling upnpreplyparse.c
    Compiling minixml.c
    Compiling getifaddr.c
    Compiling daemonize.c
    Compiling upnpglobalvars.c
    Compiling options.c
    Compiling minissdp.c
    Compiling uuid.c
    Compiling upnpevents.c
    Compiling sql.c
    Compiling utils.c
    Compiling metadata.c
    In file included from metadata.c:35:
    /usr/include/libavformat/avformat.h:158: warning: 'AVMetadata' is deprecated
    metadata.c: In function 'lav_open':
    metadata.c:103: warning: 'av_open_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1170)
    metadata.c:122:1: warning: "AV_DICT_IGNORE_SUFFIX" redefined
    In file included from /usr/include/libavcodec/avcodec.h:33,
                     from metadata.c:34:
    /usr/include/libavutil/dict.h:29:1: warning: this is the location of the previous definition
    metadata.c: At top level:
    metadata.c:124: warning: 'AVMetadataTag' is deprecated
    metadata.c: In function 'GetVideoMetadata':
    metadata.c:1550: warning: 'av_metadata_get' is deprecated (declared at /usr/include/libavformat/avformat.h:145)
    metadata.c:1550: error: 'AV_DICT_IGNORE_SUFFIX' undeclared (first use in this function)
    metadata.c:1550: error: (Each undeclared identifier is reported only once
    metadata.c:1550: error: for each function it appears in.)
    The following command failed:
    gcc -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/ffmpeg -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat -o metadata.o -c metadata.c
    Compiling scanner.c
    In file included from metadata.c:35:
    /usr/include/libavformat/avformat.h:158: warning: 'AVMetadata' is deprecated
    metadata.c: In function 'lav_open':
    metadata.c:103: warning: 'av_open_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1170)
    metadata.c:122:1: warning: "AV_DICT_IGNORE_SUFFIX" redefined
    In file included from /usr/include/libavcodec/avcodec.h:33,
                     from metadata.c:34:
    /usr/include/libavutil/dict.h:29:1: warning: this is the location of the previous definition
    metadata.c: At top level:
    metadata.c:124: warning: 'AVMetadataTag' is deprecated
    metadata.c: In function 'GetVideoMetadata':
    metadata.c:1550: warning: 'av_metadata_get' is deprecated (declared at /usr/include/libavformat/avformat.h:145)
    metadata.c:1550: error: 'AV_DICT_IGNORE_SUFFIX' undeclared (first use in this function)
    metadata.c:1550: error: (Each undeclared identifier is reported only once
    metadata.c:1550: error: for each function it appears in.)
    Compiling inotify.c
    Compiling tivo_utils.c
    Compiling tivo_beacon.c
    Compiling tivo_commands.c
    Compiling tagutils/textutils.c
    Compiling tagutils/misc.c
    Compiling tagutils/tagutils.c
    Compiling playlist.c
    Compiling image_utils.c
    Compiling albumart.c
    Compiling log.c
    Linking minidlna
    gcc: metadata.o: No such file or directory
    make: *** [minidlna] Error 1
    make install
    Compiling metadata.c
    In file included from metadata.c:35:
    /usr/include/libavformat/avformat.h:158: warning: 'AVMetadata' is deprecated
    metadata.c: In function 'lav_open':
    metadata.c:103: warning: 'av_open_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1170)
    metadata.c:122:1: warning: "AV_DICT_IGNORE_SUFFIX" redefined
    In file included from /usr/include/libavcodec/avcodec.h:33,
                     from metadata.c:34:
    /usr/include/libavutil/dict.h:29:1: warning: this is the location of the previous definition
    metadata.c: At top level:
    metadata.c:124: warning: 'AVMetadataTag' is deprecated
    metadata.c: In function 'GetVideoMetadata':
    metadata.c:1550: warning: 'av_metadata_get' is deprecated (declared at /usr/include/libavformat/avformat.h:145)
    metadata.c:1550: error: 'AV_DICT_IGNORE_SUFFIX' undeclared (first use in this function)
    metadata.c:1550: error: (Each undeclared identifier is reported only once
    metadata.c:1550: error: for each function it appears in.)
    The following command failed:
    gcc -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/ffmpeg -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat -o metadata.o -c metadata.c
    Linking minidlna
    gcc: metadata.o: No such file or directory
    make: *** [minidlna] Error 1
    root@TonidoPlug2:/src/minidlna-1.0.25# In file included from metadata.c:35:
    /usr/include/libavformat/avformat.h:158: warning: 'AVMetadata' is deprecated
    metadata.c: In function 'lav_open':
    metadata.c:103: warning: 'av_open_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1170)
    metadata.c:122:1: warning: "AV_DICT_IGNORE_SUFFIX" redefined
    In file included from /usr/include/libavcodec/avcodec.h:33,
                     from metadata.c:34:
    /usr/include/libavutil/dict.h:29:1: warning: this is the location of the previous definition
    metadata.c: At top level:
    metadata.c:124: warning: 'AVMetadataTag' is deprecated
    metadata.c: In function 'GetVideoMetadata':
    metadata.c:1550: warning: 'av_metadata_get' is deprecated (declared at /usr/include/libavformat/avformat.h:145)
    metadata.c:1550: error: 'AV_DICT_IGNORE_SUFFIX' undeclared (first use in this function)
    metadata.c:1550: error: (Each undeclared identifier is reported only once
    metadata.c:1550: error: for each function it appears in.)
    ^C
    

    I had to kill the make install process as it hung.

    I had previously installed the following dependencies:

    apt-get install libexif-dev libjpeg8-dev libid3tag0-dev libflac-dev libvorbis-dev libsqlite3-dev libavcodec-dev libavformat-dev
    

    Any Suggestions?