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

Close

Compile failing

Help
richard
2009-06-24
2013-05-29
  • richard
    richard
    2009-06-24

    Hi,

    I am building on a Fedora 9 x86_64 system and believe I have all the dependencies installed and seem to be having trouble at the linking stage:

    [rs@flash minidlna]$ make
    Compiling minidlna.c
    Compiling upnphttp.c
    upnphttp.c: In function âSendResp_albumArtâ:
    upnphttp.c:1147: warning: format â%lldâ expects type âlong long intâ, but argument 3 has type âoff_tâ
    upnphttp.c: In function âSendResp_dlnafileâ:
    upnphttp.c:1540: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 3 has type âoff_tâ
    upnphttp.c:1540: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 6 has type âoff_tâ
    upnphttp.c:1548: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 3 has type âoff_tâ
    upnphttp.c:1548: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 5 has type âoff_tâ
    upnphttp.c:1548: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 6 has type âoff_tâ
    upnphttp.c:1555: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 3 has type âoff_tâ
    Compiling upnpdescgen.c
    upnpdescgen.c: In function âgenXMLâ:
    upnpdescgen.c:605: warning: cast from pointer to integer of different size
    upnpdescgen.c:606: warning: cast from pointer to integer of different size
    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 upnpevents.c
    Compiling sql.c
    Compiling utils.c
    Compiling metadata.c
    Compiling scanner.c
    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 image_utils.c
    Compiling albumart.c
    Compiling log.c
    make: *** No rule to make target `-lavformat', needed by `minidlna'.  Stop.

    I did have to build ffmpeg but I 'm pretty sure all is in order with the install.

    ldconfig -v

    /usr/local/lib64:
            libswscale.so.0 -> libswscale.so.0.7.1
            libavformat.so.52 -> libavformat.so.52.34.1
            libavcodec.so.52 -> libavcodec.so.52.32.0
            libavutil.so.50 -> libavutil.so.50.3.0
            libavdevice.so.52 -> libavdevice.so.52.2.0

    ls /usr/include/ffmpeg/libavformat

    avformat.h  avio.h

    Any help much appreciated.

    Regards,

    Richard

     
    • Justin Maggard
      Justin Maggard
      2009-06-27

      Have you tried just pulling the ffmpeg-libs package from rpmfusion?

       
    • richard
      richard
      2009-06-27

      Hi Justin,

      I ended up moving the libav* libs into /usr/lib64 from /usr/local/lib64 and it compiled fine.

      Despite adding /usr/local/lib64 to the ld.so.cache, it would appear something else in the build tools needs to be told about it.

      Anyway, all's happy now, thanks for a very useful piece of software.

      Regards,

      Richard