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-02-27 20:51:26

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

minidlna CVS compilation for ffp 0.7

Ok, now it is time to compile last minidlna CVS for ffp 0.7 tongue

After downloading last minidlna CVS sources, installing all the necessary libraries and ffmpeg 0.8.7 from fonz with slacker:

# ./autogen.sh > OK
# ./configure --prefix=/ffp => NOK

checking build system type... armv5tejl-unknown-linux-gnueabi
checking host system type... armv5tejl-unknown-linux-gnueabi
checking target system type... armv5tejl-unknown-linux-gnueabi
checking for a BSD-compatible install... /ffp/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /ffp/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /ffp/bin/grep
checking for egrep... /ffp/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ld used by GCC... /ffp/bin/ld
checking if the linker (/ffp/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking how to link with libiconv... /ffp/lib/libiconv.so -L/ffp/lib -Wl,-rpath -Wl,/ffp/lib
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether NLS is requested... yes
checking for msgfmt... /ffp/bin/msgfmt
checking for gmsgfmt... /ffp/bin/msgfmt
checking for xgettext... /ffp/bin/xgettext
checking for msgmerge... /ffp/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking how to link with libiconv... /ffp/lib/libiconv.so -L/ffp/lib -Wl,-rpath -Wl,/ffp/lib
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... /ffp/lib/libintl.so -L/ffp/lib /ffp/lib/libiconv.so /ffp/lib/libc.so -Wl,-rpath -Wl,/ffp/lib
checking for gawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uint8_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for ssize_t... yes
checking for struct stat.st_blocks... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether byte ordering is bigendian... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether lstat correctly handles trailing slash... yes
checking for gethostname... yes
checking for getifaddrs... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for realpath... yes
checking for select... yes
checking for sendfile... yes
checking for setlocale... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strpbrk... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking syscall.h usability... yes
checking syscall.h presence... yes
checking for syscall.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking mach/mach_time.h usability... no
checking mach/mach_time.h presence... no
checking for mach/mach_time.h... no
checking for __NR_clock_gettime syscall... yes
checking for dlopen in -ldl... yes
checking libavutil/avutil.h usability... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
checking ffmpeg/libavutil/avutil.h usability... no
checking ffmpeg/libavutil/avutil.h presence... no
checking for ffmpeg/libavutil/avutil.h... no
checking libav/libavutil/avutil.h usability... no
checking libav/libavutil/avutil.h presence... no
checking for libav/libavutil/avutil.h... no
checking avutil.h usability... no
checking avutil.h presence... no
checking for avutil.h... no
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libav/avutil.h usability... no
checking libav/avutil.h presence... no
checking for libav/avutil.h... no
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking ffmpeg/libavcodec/avcodec.h usability... no
checking ffmpeg/libavcodec/avcodec.h presence... no
checking for ffmpeg/libavcodec/avcodec.h... no
checking libav/libavcodec/avcodec.h usability... no
checking libav/libavcodec/avcodec.h presence... no
checking for libav/libavcodec/avcodec.h... no
checking avcodec.h usability... no
checking avcodec.h presence... no
checking for avcodec.h... no
checking ffmpeg/avcodec.h usability... no
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
checking libav/avcodec.h usability... no
checking libav/avcodec.h presence... no
checking for libav/avcodec.h... no
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking ffmpeg/libavformat/avformat.h usability... no
checking ffmpeg/libavformat/avformat.h presence... no
checking for ffmpeg/libavformat/avformat.h... no
checking libav/libavformat/avformat.h usability... no
checking libav/libavformat/avformat.h presence... no
checking for libav/libavformat/avformat.h... no
checking avformat.h usability... no
checking avformat.h presence... no
checking for avformat.h... no
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... no
checking for ffmpeg/avformat.h... no
checking libav/avformat.h usability... no
checking libav/avformat.h presence... no
checking for libav/avformat.h... no
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking libexif/exif-loader.h usability... yes
checking libexif/exif-loader.h presence... yes
checking for libexif/exif-loader.h... yes
checking id3tag.h usability... yes
checking id3tag.h presence... yes
checking for id3tag.h... yes
checking ogg/ogg.h usability... yes
checking ogg/ogg.h presence... yes
checking for ogg/ogg.h... yes
checking vorbis/codec.h usability... yes
checking vorbis/codec.h presence... yes
checking for vorbis/codec.h... yes
checking FLAC/metadata.h usability... yes
checking FLAC/metadata.h presence... yes
checking for FLAC/metadata.h... yes
checking if we should use the daemon() libc function... yes
checking if scandir declaration requires const char cast... yes
checking for linux sendfile support... yes
checking for darwin sendfile support... no
checking for freebsd sendfile support... no
checking for jpeg_set_defaults in -ljpeg... yes
checking for exif_data_new_from_file in -lexif... yes
checking for id3_file_open in -lid3tag... yes
checking for sqlite3_open in -lsqlite3... yes
checking for sqlite3_malloc in -lsqlite3... yes
checking for sqlite3_prepare_v2 in -lsqlite3... yes
checking for av_open_input_file in -lavformat... no
checking for av_open_input_file in -lavformat... no
configure: error: Could not find libavformat - part of ffmpeg

But libavformat is already installed with ffmepg.

Is there something wrong with configure file ?

Last edited by R0b1n (2012-02-27 20:52:23)

Offline

 

#2 2012-02-28 14:02:59

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

Re: minidlna CVS compilation for ffp 0.7

Try this:

Code:

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

I don't know why I have to explicitly specify the libraries for configure, it shouldn't be necessary, but this worked for me.

Offline

 

#3 2012-02-28 20:40:27

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

Re: minidlna CVS compilation for ffp 0.7

OK thanks KyleK it worked big_smile

But when I try make:

...
gcc -DHAVE_CONFIG_H -I.   -I/ffp/include -Wall -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c
mv -f .deps/log.Tpo .deps/log.Po
gcc -Wall -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2   -o minidlna minidlna.o upnphttp.o upnpdescgen.o upnpsoap.o upnpreplyparse.o minixml.o getifaddr.o daemonize.o upnpglobalvars.o options.o minissdp.o uuid.o upnpevents.o sql.o utils.o metadata.o scanner.o inotify.o tivo_utils.o tivo_beacon.o tivo_commands.o textutils.o misc.o tagutils.o playlist.o image_utils.o albumart.o log.o -ljpeg -lid3tag -lsqlite3 -lavformat -lavutil -lavcodec -lexif -ldl /ffp/lib/libintl.so -L/ffp/lib /ffp/lib/libiconv.so /ffp/lib/libc.so -Wl,-rpath -Wl,/ffp/lib /ffp/lib/libiconv.so -L/ffp/lib -Wl,-rpath -Wl,/ffp/lib -lpthread  -lFLAC  -logg -lvorbis -lpthread -lm -lavformat -lavcodec -lavutil -lpthread
/ffp/bin/ld: /ffp/lib/libid3tag.so: undefined reference to symbol 'uncompress'
/ffp/bin/ld: note: 'uncompress' is defined in DSO /ffp/lib/libz.so.1 so try adding it to the linker command line
/ffp/lib/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [minidlna] Error 1
make[2]: Leaving directory `/mnt/HD/HD_a2/ffpbuildenv_07/minidlna'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/HD/HD_a2/ffpbuildenv_07/minidlna'
make: *** [all] Error 2

Where can I add this in the Makefile ? Did you meet this problem when you have compiled minidlna 1.0.22 ?

Last edited by R0b1n (2012-02-28 20:40:48)

Offline

 

#4 2012-02-28 21:01:41

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

Re: minidlna CVS compilation for ffp 0.7

Hm.
I believe I did. It's been a while since I did this smile
Try this: Open the file 'Makefile' and look for a line "LIBS = -lpthread".
Add "-lz" to the end:

Code:

LIBS = -lpthread -lz

Then try make again.

I did rewrite configure.ac today to make it a bit simpler, I think I'll make a patch for the official minidlna project. Maybe the project owner will accept it.

Offline

 

#5 2012-02-28 21:03:02

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

Re: minidlna CVS compilation for ffp 0.7

Btw, in case you want to save yourself some trouble: I did a minidlna release a while ago, and it's been available in my repository ever since:
http://kylek.is-a-geek.org:31337/files/ffp/0.7-arm/

Offline

 

#6 2012-02-28 21:30:23

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

Re: minidlna CVS compilation for ffp 0.7

Thanks again KyleK for your great help. I was already using your compiled minidlna 1.0.22 wink

Then here is the last minidlna CVS for ffp 0.7 arm: http://www.wupload.com/file/2668875337/ … -arm-0.txz

I don't know if inotify is working on all devices, you will probably have to recompile it with the right inotify file for your device.

Enjoy !

Offline

 

#7 2012-03-10 06:16:54

jmcqup
Member
From: Uganda
Registered: 2008-06-17
Posts: 23

Re: minidlna CVS compilation for ffp 0.7

Hi. Any plans to compile for minidlna for oarm?

Offline

 

#8 2012-03-17 15:37:21

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

Re: minidlna CVS compilation for ffp 0.7

R0b1n your build is not recognized by fun plug :
Scanning minidlna-cvs20120228-arm-0.txz ...
Unrecognized archive format

sad

I trid Kylek's build, it installs but when I try to launch it :
> sh /ffp/start/minidlna.sh start
I get :
/ffp/start/minidlna.sh: line 27: /ffp/sbin/minidlna: No such file or directory

??? sad

Offline

 

#9 2012-03-17 19:40:01

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

Re: minidlna CVS compilation for ffp 0.7

I found the issue, the start script points to sbin instead of bin
Same for Robin's build

Last edited by jeffjoker (2012-03-26 15:42:32)

Offline

 

#10 2012-03-25 13:30:01

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

Re: minidlna CVS compilation for ffp 0.7

Still using Kylek's build, AC3 audio fails, it says : format not supported sad
Everything else works just fine !

Also saw that miniDLNA latest version is 1.0.24...
I am trying to build it, but I never tried that before...

Says :

Prerequisites :

- libexif --- OK
- libjpeg --- OK
- libid3tag --- OK
- libFLAC --- KO
- libvorbis --- KO
- sqlite3 --- OK
- libavformat (the ffmpeg libraries) --- OK
- libuuid --- KO

Tried to use Robin's build, finally managed to install it but when trying to launch says :
/ffp/bin/minidlna: can't load library 'libFLAC.so.8'

Last edited by jeffjoker (2012-03-25 14:00:16)

Offline

 

#11 2012-03-26 21:16:36

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

Re: minidlna CVS compilation for ffp 0.7

You have to install the prerequired libraries to compile minidlna. For that, you will have to compile these libraries on yourself.

But here is my compiled libflac 1.21 for ffp 0.7 arm:  http://www.wupload.com/file/2680179077/ … -arm-1.txz

Offline

 

#12 2012-03-27 16:48:09

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

Re: minidlna CVS compilation for ffp 0.7

I assume my Noob-ism but I do not know how to compile a lib for my DNS
I have tried to install your libflac but it says it does not recognize it...

Offline

 

#13 2012-03-27 21:41:21

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

Re: minidlna CVS compilation for ffp 0.7

Your problem is very strange. How did you try to install libflac ? The right command is:

Code:

# funplug -i libflac-1.2.1-arm-1.txz

Which version of ffp 0.7 did you install, the arm or the oarm ?

Offline

 

#14 2012-03-29 10:33:49

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

Re: minidlna CVS compilation for ffp 0.7

I have the 0.7 arm
I entered you command of course, says not recognizable
problem is when I get the file I bet
due to wupload I can't do a wget, gets me a bad file (what happened previously)
so I get it through a windows PC or an android gsm/tablet then ftp it to the NAS

Offline

 

#15 2012-03-29 13:58:09

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

Re: minidlna CVS compilation for ffp 0.7

Could you post the error message plz ?

Last edited by R0b1n (2012-03-29 13:59:17)

Offline

 

#16 2012-03-29 14:29:07

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

Re: minidlna CVS compilation for ffp 0.7

I've uploaded a new build of minidlna to my repository.

This is built from CVS, and contains some modifications of my own, so I don't guarantee for anything! smile

The build has the following dependencies:
* libjpeg
* libexif
* libsqlite3
* zlib
* libiconv
* gettext
* libid3tag

Except for the last one (libid3tag), you can get all of these from fonz' repository: http://inreto.de/ffp/0.7/arm/packages/
You'll find libid3tag in my repository.

Offline

 

#17 2012-03-30 11:06:05

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

Re: minidlna CVS compilation for ffp 0.7

I have tried it (already had all the libs you mentioned).
Everything works fine, I have the patches for deleted files and all that are specified on the minidlna changelog.
Thanks a lot.

But...
My Files with AC3 audio still don't work... sad

They use to work with my 0.5 install and a minidlna I found on that thread:
http://dns323.kood.org/forum/viewtopic.php?id=5999

Offline

 

#18 2012-03-30 12:07:13

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

Re: minidlna CVS compilation for ffp 0.7

I very much suspect the issue lies either with your files or with whatever device you play your videos on. I have videos with AC3 tracks and so far noticed no issues.
Can you upload a small sample video somewhere so I can check if I have the same issue?

Offline

 

#19 2012-03-30 13:08:26

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

Re: minidlna CVS compilation for ffp 0.7

I play that on a Samsung TV (as the post from the previous version I used)

Offline

 

#20 2012-03-30 14:21:08

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

Re: minidlna CVS compilation for ffp 0.7

There was a modified minidlna version floating around with some Samsung patch applied. Maybe you used that version and that's why the file played correctly back then.

The Samsung-specific changes never (or at least only partially) made it into the official minidlna repository.
The patch hasn't been updated to the current version of minidlna and cannot be applied anymore.

Offline

 

#21 2012-03-30 15:36:16

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

Re: minidlna CVS compilation for ffp 0.7

Yeah that must be why... sad
I have tried on another client and everything works fine...
I have to try and motivate the people from minidlna to add more samsung patches wink
Thanks again

Offline

 

#22 2012-03-30 21:21:49

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

Re: minidlna CVS compilation for ffp 0.7

I play avi and mkv movies with AC3 tracks with no issues on my 2 Samsung TV (LE40B651 and UE32D5700ZF) with my minidlna build !

Also it seems that minidlna patches are not for AC3 audio but only for thumbs, subs menu and chapters with thumbs support according to this post: http://dns323.kood.org/forum/viewtopic. … 340#p45340

Last edited by R0b1n (2012-03-30 21:28:33)

Offline

 

#23 2012-03-31 14:55:56

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

Re: minidlna CVS compilation for ffp 0.7

So why do you reckon ?
Librairie missing ??

Offline

 

#24 2012-03-31 18:14:41

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

Re: minidlna CVS compilation for ffp 0.7

What exactly happens? Does minidlna show the file? Or does the TV just not play it? I'd still like to see a sample file.
Sometimes the manufacturers even remove functionality in newer firmware updates.

Offline

 

#25 2012-04-04 09:26:20

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

Re: minidlna CVS compilation for ffp 0.7

Maybe Robin added a lib that makes it work
I rolled back to Kylek's 1.0.22 since the 1.1 cvs build does not handle new/remove files so good, I get "null" folders each time
I will try to play one of those files and give you minidlna logs

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB