DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2012-08-30 10:55:01

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

Hi all.

Compiled last minidlna cvs with success (you can find it on my repository) but when I try to compil the non-cvs version I've got this:

Code:

root@NAS:/mnt/HD_a2/ffpbuildenv_07/minidlna-1.0.25# make
Linking minidlna
/ffp/bin/ld: /mnt/HD/HD_a2/ffp/bin/../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.5.4/../../../libavcodec.a(wmavoice.o): undefined reference to symbol 'log10f'
/ffp/bin/ld: note: 'log10f' is defined in DSO /ffp/lib/libm.so.0 so try adding it to the linker command line
/ffp/lib/libm.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [minidlna] Error 1

Did someone achieved to compile last minidlna with success ?

Offline

 

#2 2012-09-11 11:29:01

jeffjoker
Member
Registered: 2011-11-23
Posts: 52

Re: Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

Hi,

Could you link your repository or have it in your profile ?

Thanks

Offline

 

#3 2012-09-11 16:22:23

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

R0bin, try the same as I suggested in the previous thread:

Code:

$ ./configure --prefix=/ffp LIBS="-lm -lz -lavformat -lavcodec -lavutil -lpthread"

Offline

 

#4 2012-09-18 18:43:25

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Re: Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

jeffjoker wrote:

Hi,

Could you link your repository or have it in your profile ?

Thanks

You can find the url here: http://dns323.kood.org/howto:ffp

But here you are: https://docs.google.com/open?id=0B9vh__ … kRRaXhHVnM

I will add it to my sign wink

edit: done !

KyleK wrote:

R0bin, try the same as I suggested in the previous thread:

Code:

$ ./configure --prefix=/ffp LIBS="-lm -lz -lavformat -lavcodec -lavutil -lpthread"

Thanks Kylek but this command line is for minidlna CVS version and I want to compile the standard version. I already compiled the last CVS version and you can find it on my repository big_smile

Last edited by R0b1n (2012-09-18 18:51:40)

Offline

 

#5 2012-09-20 16:14:30

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

But how is it different compiling the CVS version and the standard version? It should work the same on both.

EDIT: I see the problem now. minidlna 1.0.25 doesn't use configure yet.

I had to open Makefile and manually edit the LIBS variable to make it work.
Here's what I did:

Code:

$ tar xf minidlna_1.0.25_src.tar.gz
$ cd minidlna-1.0.25
$ sed -i 's#/usr#/ffp#g' Makefile genconfig.sh
# Replace the LIBS= line in Makefile with this:
LIBS = -lz -lm -lpthread -lvorbis -logg -lexif -ljpeg -lsqlite3 -lavformat -lavcodec -lavutil -lid3tag -lFLAC -liconv

I also modified config.h and commented these lines:
/* #define USE_DAEMON */
/* #define ENABLE_NLS */

The last line didn't have any effect though, I still got linking errors, so I had to modify upnpglobalvars.h as well:

Code:

//#ifdef ENABLE_NLS
//#define _(string) gettext(string)
//#else
#define _(string) (string)
//#endif

That finally did the trick :)

Last edited by KyleK (2012-09-20 16:54:54)

Offline

 

#6 2012-09-30 11:08:40

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Re: Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

Thanks Kylek but didn't work for me. Here is what I've done:

Code:

$ tar xf minidlna_1.0.25_src.tar.gz
$ cd minidlna-1.0.25
$ sed -i 's#/usr#/ffp#g' Makefile genconfig.sh
$ ./genconfig.sh

Replaced the lines in Makefile with this:

Code:

LIBS = -lz -lm -lpthread -lvorbis -logg -lexif -ljpeg -lsqlite3 -lavformat -lavcodec -lavutil -lid3tag -lFLAC -liconv

Replaced the 2 lines in config.h

Code:

/* #define USE_DAEMON */
/* #define ENABLE_NLS */

Replaced these lines in upnpglobalvars.h

Code:

//#ifdef ENABLE_NLS
//#define _(string) gettext(string)
//#else
#define _(string) (string)
//#endif

And

Code:

$ Make

But I've got this now:

Code:

Linking minidlna
metadata.o: In function `lav_close':
/mnt/HD_a2/ffpbuildenv_07/minidlna-1.0.25/metadata.c:114: undefined reference to `avformat_close_input'
/mnt/HD_a2/ffpbuildenv_07/minidlna-1.0.25/metadata.c:114: undefined reference to `avformat_close_input'
collect2: ld returned 1 exit status
make: *** [minidlna] Error 1

What is wrong ?

Last edited by R0b1n (2012-09-30 11:10:56)

Offline

 

#7 2012-10-01 09:51:02

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

The method 'avformat_close_input' is only available in newer versions of ffmpeg, but there is a version check in metadata.c that uses wrong version number values:
http://minidlna.cvs.sf.net/viewvc/minid … ortby=date

If you modify your metadata.c as shown on that page, it should hopefully compile.

Offline

 

#8 2012-10-03 21:51:37

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Re: Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

Yeah thanks Kylek it worked. You're the king !

Offline

 

#9 2012-10-29 15:30:34

jeffjoker
Member
Registered: 2011-11-23
Posts: 52

Re: Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

Hi Robin,

Tried your build, and after a few missing depencies (all found on your repository) errors it started
Did seem to work from the server point of view
But when I connect to it it says that there is no file to be played...

Last edited by jeffjoker (2012-10-29 15:38:28)

Offline

 

#10 2012-10-29 23:11:00

pavelc
Member
Registered: 2011-05-03
Posts: 10

Re: Nedd help to compile last minidlna 1.0.25 for ffp 0.7 arm

KyleK, thx

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB