Originally Posted by
monkeypigs
Hi,
My Ubuntu server (Oneric) box is sat sitting vastly under utilised. It's currently running as an FTP server and also has DNSMasq installed, so I thought I'd go about setting up a media server, but have hit so many brick walls it's unreal!
[LIST][*]I've used firefly in the past, but mt-daapd is no longer maintained
I may have gotten it to compile... using the clue I found in: http://ubuntuforums.org/showthread.php?p=11400708
I installed all the dependencies (see the Natty package dependency list on launchpad).. and was able to get thru to the last compile which was failing
Code:
rend-unix.c:116:10: warning: ignoring return value of â, declared with attribute warn_unused_result [-Wunused-result]
gcc -g -O2 -o mt-daapd -lpthread -lgdbm -lid3tag -lz 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
main.o: In function `start_signal_handler':
/home/zimmy/tmp/mt-daapd-0.2.4.2/src/main.c:679: undefined reference to `pthread_create'
main.o: In function `main':
/home/zimmy/tmp/mt-daapd-0.2.4.2/src/main.c:943: undefined reference to `pthread_kill'
/home/zimmy/tmp/mt-daapd-0.2.4.2/src/main.c:944: undefined reference to `pthread_join'
webserver.o: In function `ws_start':
etc...etc.. but I ran the last gcc by hand (with lib listing at EOL)
Code:
gcc -g -O2 -o mt-daapd -lpthread -lgdbm -lid3tag -lz 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 -lpthread -lgdbm -lid3tag -lz
and I have a binary now... haven't tested it yet (at work) other than to verify version
Code:
./mt-daapd --help (y|n|e|a)? yes
./mt-daapd: invalid option -- '-'
Usage: ./mt-daapd [options]
Options:
-d <number> Debuglevel (0-9)
-D <mod,mod..> Debug modules
-m Disable mDNS
-c <file> Use configfile specified
-p Parse playlist file
-f Run in foreground
-y Yes, go ahead and run as non-root user
Valid debug modules:
config,webserver,database,scan,query,index,browse
playlist,art,daap,main,rend,misc
Bookmarks