User(s) browsing this thread: 1 Guest(s)
|
Firefly Media server on NMT
|
|
07-17-2010, 08:38 PM
(This post was last modified: 07-17-2010 08:41 PM by gsolaro.)
|
|||
|
|||
|
Firefly Media server on NMT
I tried to find any information about this, but i just find closed forums (like here). So, i started trying out some things.
I compiled successfully mt-daapd on my laptop, but i ran into a strange issue: when i try start it, reports cannot open songs.gdb and the strerror message is: File exists (???). Now i stopped here, i doesn't have enough C knowledge to step over it. I searching anybody who can help me. G. Solaro Send me a PM because I am sometimes too busy to check forum, so the PM is quicker. |
|||
|
08-16-2010, 10:52 PM
|
|||
|
|||
|
RE: Firefly Media server on NMT
Hello gsolaro,
you crosscompiled mt-daapd for the NMT on your laptop? If you tell me how to setup the environment for compiling NMT apps I might be able to help you with this. |
|||
|
08-16-2010, 11:59 PM
|
|||
|
|||
RE: Firefly Media server on NMT
(08-16-2010 10:52 PM)pac^man Wrote: Hello gsolaro,I upload my build environment for you but you will have a little problem with it: my laptop system is crashed in a last days, and the package contains files with wrong permissions (everything is executable). I currently cannot fix it (from windows), so this is will your job... sry. Anyway, this is a working root, it contains a compiler, uClibC, and packages what i compiled for it. I compiled: - sqlite-3.6.23.1 - libid3tag-0.15.1b - zlib-1.2.3 - gdbm-1.8.3 (probably buggy?) - mt-daapd-0.2.4.2 I compiled everything as static lib. But this is just a devel environment, i don't know how can i create a debug environment - i'm quite newbie in cross-compiling world. You can download it from here G. Solaro Send me a PM because I am sometimes too busy to check forum, so the PM is quicker. |
|||
|
08-17-2010, 07:21 AM
|
|||
|
|||
RE: Firefly Media server on NMT
(08-16-2010 11:59 PM)gsolaro Wrote: I upload my build environment for you but you will have a little problem with it:... Thanks for uploading it. But I'd rather prepare everything from scratch myself. Do you have a HowTo somewhere according to which I could do this? |
|||
|
08-17-2010, 09:52 AM
(This post was last modified: 08-17-2010 09:52 AM by dc11ab.)
|
|||
|
|||
|
RE: Firefly Media server on NMT
pac^man, if you just want to setup a crosscompiling environment for the 100-series there is info on the NMT wiki:
http://www.networkedmediatank.com/wiki/i...ox_for_NMT and more if you search this board (for 200-series, etc). Audio, video, disco - I hear, I see, I learn. Wiki. Wiki? Wiki! |
|||
1 user says Thank You to dc11ab for this post |
|
08-17-2010, 06:22 PM
|
|||
|
|||
RE: Firefly Media server on NMT
(08-16-2010 11:59 PM)gsolaro Wrote: I compiled: I compiled zlib, gdbm, libid3tag statically and now I'm stuck at the mt-daapd build. How did you manage to build mt-daapd with the static libid3tag.a? I can't seem to find the correct configure option and always end up with Code: checking for id3_file_open in -lid3tag... no |
|||
|
08-17-2010, 08:01 PM
|
|||
|
|||
|
RE: Firefly Media server on NMT
Doesn't --with-id3tag=/path/to/the/libid3library do the trick?
Audio, video, disco - I hear, I see, I learn. Wiki. Wiki? Wiki! |
|||
|
08-17-2010, 08:23 PM
|
|||
|
|||
RE: Firefly Media server on NMT
(08-17-2010 08:01 PM)dc11ab Wrote: Doesn't --with-id3tag=/path/to/the/libid3library do the trick? No, it didn't. Actually I've never dealt with static libraries before and am therefore not sure on how to work with them here now. So I restarted with dynamic libraries and seeing this in the configure output I feel more comfortable: Code: ...Unfortunately make fails now with the following error: Code: /nmt/usr/local/mips/bin/../lib/gcc/mipsel-linux-uclibc/4.0.4/../../../../mipsel-linux-uclibc/bin/ld: cannot find -lzSo I went back into the zlib-1.2.5 directory and am stuck there now because I don't know how to built a shared zlib. I get the following error when doing the configure: Code: mipsel-linux-uclibc-gcc: ${exec_prefix}/lib/libz.1.dylib: No such file or directoryNow I don't have a clue how to proceed. |
|||
|
08-17-2010, 09:49 PM
|
|||
|
|||
|
RE: Firefly Media server on NMT
While trying for static, did you add: --enable-static ?
Would it be insane to add --disable-zlib ? No help from ./configure --help ? Perhaps you can edit the Makefile and do ugly stuff, like adding linking path to the libz.* ? Sorry I can't be of much more help. I'm a compiling newbie. Audio, video, disco - I hear, I see, I learn. Wiki. Wiki? Wiki! |
|||
|
08-17-2010, 09:53 PM
|
|||
|
|||
|
RE: Firefly Media server on NMT
Disabling zlib is out of the question, there's "include zlib.h" in the mt-daapd source code
![]() I'll wait for gsolaro before doing ugly stuff, after all he managed to compile it. |
|||
|
08-17-2010, 09:58 PM
|
|||
|
|||
|
RE: Firefly Media server on NMT
Here's a hint on how zlib was made, but I haven't read the thread and topic in context:
http://www.networkedmediatank.com/showth...3#pid96263 Audio, video, disco - I hear, I see, I learn. Wiki. Wiki? Wiki! |
|||
1 user says Thank You to dc11ab for this post |
|
09-28-2010, 04:36 AM
|
|||
|
|||
|
RE: Firefly Media server on NMT
Has anyone had any luck with this? I started with gsolaro's tree and had even less success than he had.
|
|||
|
05-15-2011, 04:56 PM
|
|||
|
|||
|
RE: Firefly Media server on NMT
Man, that would be great! If somebody has the firefly media server working on the NMT please help (or another server that supports eing a iTunes Server).
Kind regards, |
|||
|
02-29-2012, 07:32 PM
|
|||
|
|||
|
RE: Firefly Media server on NMT
Hey guys,
Sorry for a big silence. I have really no time for this project sadly. The good news is I successfully compiled and started the mt-daapd on my BluePanther Syvio 200A mediaplayer! So, the needed steps is following: - Grab the previously linked toolchain, that is only one what I could make work. - Grab and compile the dependencies, in order: Code: ## PreparationThe tricky thing is the mt-daapd itself. The configure line is the following: Code: ./configure --host=mipsel-linux-uclibc --target=mipsel-linux-uclibc CC=mipsel-linux-uclibc-gcc --disable-shared --enable-static --enable-gdbm --enable-sqlite3 --with-sqlite3-includes=$D/mnt/custom/include --with-sqlite3-libs=$D/mnt/custom/lib --with-id3tag=$D/mnt/custom --enable-mdns --disable-iconv --prefix=/mnt/custom LDFLAGS="-static $D/mnt/custom/lib/libz.a" CFLAGS="-D__USE_UNIX98" CPPFLAGS="-D__USE_UNIX98 -DSETPGRP_VOID" ac_cv_lib_id3tag_id3_file_open=yes ac_cv_func_setpgrp_void=yesNext, edit src/main.c and around L94 you will see the following (the following code contains line numbers): Code: 90 #ifndef DEFAULT_CONFIGFILEAs you see, the L94 contains the fallback config file location. You can edit it for your fits. I targeted it to /mnt/custom/mt-daapd.conf but if you want to edit it from SMB then point it to /opt/sybhttpd/localhost.drives/HARD_DISK/mt-daapd.conf Next, start make, and see the make command is failing. But no worries! There is a final command (you must execute it after make failing: Code: mipsel-linux-uclibc-gcc -D__USE_UNIX98 -static /home/hron/build/nmt/sysroot/mnt/custom/lib/libz.a -L/home/hron/build/nmt/sysroot/mnt/custom/lib -o mt-daapd main.o uici.o webserver.o configfile.o err.o restart.o daap-proto.o daap.o db-gdbm.o mp3-scanner.o playlist.o lexer.o parser.o strcasestr.o strsep.o redblack.o dynamic-art.o query.o mDNS.o mDNSPosix.o mDNSUNP.o rend-posix.o rend-unix.o -lgdbm -lid3tag -lz -lpthreadThe trick what I did there is the reordering of arguments, moving -l switches to the end of command is solves the limitations of GCC 3.x. Finally, you can execute Code: make DESTDIR=$D installCode: scp -r $D/mnt/custom root@YOUR_MC_IP:/mnt/Then, create a mt-daapd.conf and upload where you specified in main.c. After it, you can start mt-daapd with executing the binary without arguments. It forks to background, no worries. Tip: mt-daapd currently have an mdns-advertisement feature, so you do not need to start mDNSresp-mips utility for it, mt-daapd can advertise itself alone. And that's all. If there is a question about it, please drop me a PM because I am not active on this forum. G. Solaro Send me a PM because I am sometimes too busy to check forum, so the PM is quicker. |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Music - Android Frontend + NMT Backend? | lordy | 4 | 1,518 |
04-13-2013 02:23 PM Last Post: sventamyra |
|
| change mime types on default pch upnp server? | AdamNJ | 1 | 389 |
03-11-2013 07:32 AM Last Post: halfelite |
|
| [A-400] Does not see llink server | tkenn1s | 5 | 726 |
02-26-2013 05:14 PM Last Post: Imdre |
|
| Windows Media Center | docluv01 | 1 | 504 |
12-07-2012 08:28 PM Last Post: accident |
|
| Upnp server A200 + external HDD | wizzy | 0 | 618 |
11-12-2012 12:34 PM Last Post: wizzy |
|
| UPnp server for C200 | blief | 1 | 791 |
10-31-2012 06:53 AM Last Post: halfelite |
|
| C200 UPnP server | blief | 2 | 1,006 |
10-22-2012 12:51 AM Last Post: blief |
|
| Which DLNA/UPnP server works with a PCH A210? | sal iva | 2 | 1,430 |
08-25-2012 06:58 PM Last Post: accident |
|
| How can i Listen to music on NMT over 3G on my iphone | zurie | 3 | 1,092 |
03-27-2012 04:00 AM Last Post: lundman |
|
| Important function of uPnP Server | nuke | 5 | 1,654 |
03-11-2012 07:00 AM Last Post: lundman |
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]






![[+]](images/collapse_collapsed.gif)





