NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

fdullemond's avatar
fdullemond
Aspirant
Apr 24, 2012

Compile minidlna on debian, run on nas : libavutil conflict

Guys,

I have decided to try and create a development environment for the readynas (x86) to see if I can
get extend the current minidlna implementation and run it on the readynas directly.

Open issues which I am trying to solve are:

*) Multiple instances is not possible due to sharing of UUID
*) Using hidden ('.') file specific album art in addition to the others
*) Potentially : adding custom icon rather than the embedded 'N' logo or tux (per instance a different one)

I have created a development environment based on debian etch, installed the tools needed
for compilation and installed the prerequisited for minidlna.

I can successfully compile and run the generated minidlna executable on debian.

However, I do have problems running the executable directly on the readynas:

Gorgoroth:/c/home/root/etc# /c/shared/minidlna/minidlna-1.0.24/minidlna
/c/shared/minidlna/minidlna-1.0.24/minidlna: error while loading shared libraries: libavutil.so.49: cannot open shared object file: No such file or directory

Gorgoroth:/c/home/root/etc# ldd /c/shared/minidlna/minidlna-1.0.24/minidlna
.. snip, all ok ..
libavutil.so.49 => not found
.. snip, all ok ..

Gorgoroth:/c/home/root/etc# ls -lsa /usr/lib/i686/cmov/libavutil.so.*
0 lrwxrwxrwx 1 root root 20 2012-01-20 13:24 /usr/lib/i686/cmov/libavutil.so.50 -> libavutil.so.50.15.1
36 -rw-r--r-- 1 root root 34472 2011-07-01 19:55 /usr/lib/i686/cmov/libavutil.so.50.15.1


So, on the debian the libavutil (ffmpeg) is available in version 49, and on the nas its 50.

How to compile minidlna on the debian box so I can run the generated executable on the nas ?

Do I need to get minidlna compiled on the debian using libavutil.so.50 ? and if so, how (I could not find that version for etch)?
Should I just copy the 49 version onto the nas and hope all will be ok ??

Any ideas how to resolve this ?

Fred

p.s. A possible solution would be compile on the nas, but I do not have a spare nas to put all the needed packages on.

6 Replies

Replies have been turned off for this discussion
  • You can:
    1) Make a softlink of libavutil.so.49 to /usr/lib/i686/cmov/libavutil.so.50.15.1 and make sure your LD_LIBRARY_PATH is set to /usr/lib/i686/cmov/ and try again and hope for the best

    or

    2) Do a static build of minidlna so you don't have shared library dependencies on the target system:
    2.1) Install the dev counterparts of the libriaries required by minidlna so that you have the headers ( .h ) and static versions of the libraries (i.e. the static library of libavutil would be in libavutil-dev)
    2.2) In the minidlna's Makefile, there should be a couple or so lines that are for static linking (try a search), uncomment those

    or

    3) Since you're on X86, just download the minidlna static binaries available from their site and save yourself the trouble
    http://sourceforge.net/projects/minidlna/files/minidlna/1.0.24/

    Cheers!
  • Hi LrdShaper,

    Thanks for the suggestions, however

    >1) Make a softlink of libavutil.so.49 to /usr/lib/i686/cmov/libavutil.so.50.15.1

    Tried this, its nagging about incompatible version...

    >2) Do a static build of minidlna so you don't have shared library dependencies on the target system:
    >2.1) Install the dev counterparts of the libriaries required by minidlna so that you
    >have the headers ( .h ) and static versions of the libraries (i.e. the static library of libavutil would be in libavutil-dev)
    >2.2) In the minidlna's Makefile, there should be a couple or so lines that are for static linking (try a search), uncomment those

    Tried this. I am getting linkage failures, so i stopped trying :-)

    >3) Since you're on X86, just download the minidlna static binaries available from their site and save yourself the trouble

    Yes, that would save me the trouble, but it would not give me the additional features I am seeking....

    Fred
  • Throw me a copy of the source that includes your changes and I'll try to build it for you. LrdShaper at gmail dot com
    It's 12:30AM here and I have a conference call in 30mins so I'll give it a whirl after a good night's sleep
  • Hi LrdShaper,

    Thanks, I will forward you the (complete) sources in a couple of days since I only
    today started making changes... as it now is, I can run the minidlna on the debian for test purposes.

    The final compilation however should be for readynas....

    However, I did already manage to implement the changes needed to enable the (already existing) UUID= setting so now
    it is possible to run multiple copies of minidlna.....

    As it is, I should be studying like hell, have an exam tomorrow...

    I will be able to invest more time once that is behind me...

    Fred
  • Hi LrdShaper,

    I have tested my changes on the debian and had contact with the maintainer of minidlna.
    From that conversation I hope these changes will be added to the official minidlna source....

    Lets wait and see for a while...

    Fred
  • Nice, hopefully you'll get it in a nice .deb package from the official repo :)

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More