Page 5 of 9 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 87

Thread: How to set up forked-daapd (mt-daapd replacement) on 9.10

  1. #41
    Join Date
    Jun 2008
    Beans
    7

    Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    I've been able to get it installed, but have 2 issues (+ 1 question):

    1) The daemon won't stay running. I'll be listening to a stream and the process (on the server) will die. The last log entry is usually 'scan: Badly formatted .url file; expected format is bitrate, descr, url' I've checked the library I'm scanning - there are no .url files.

    2) It won't scan my entire library. It's only getting about 50%. I've checked permissions, users and groups and everything seems ok. Is there anyway to reset the scan or force a rescan, say by deleting the database?

    3) How do I enable verbose logging?

    Thanks,

    Ken

  2. #42
    Join Date
    Mar 2009
    Beans
    5

    Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    This all seems like a bit of a drama. Will the packages automatically be pulled from Debian into the next Ubuntu, or does someone need to file a "needs-packaging" request?

    It isn't in the current packages:
    http://packages.ubuntu.com/search?ke...ll&section=all
    but apparently the Debian packages work:
    http://jamesdanylik.com/articles/und...-forked-daapd/

    The homepage says that it is in Debian Squeeze:
    http://www.jblache.org/projects/daapd/index.html
    Last edited by mo-hog; September 20th, 2010 at 12:31 AM.

  3. #43
    Join Date
    Sep 2010
    Beans
    1

    Unhappy Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    Quote Originally Posted by Ferglitz View Post
    On a vanilla Lucid install, I'm finding this breaks as follows:

    [x] Autoreconf forked-daapd success
    [x] Configure forked-daapd failed
    [i] Showing the last 5 lines from the logfile (/home/fergus/Projects/linux/Firefly/ServerScripts/./daap-server.sh.log)...
    checking whether to build static libraries... no
    checking for antlr3... no
    configure: error: antlr3 wrapper not found and pre-generated files not available
    20935's retcode: 1
    failed
    I appear to be having this same issue.

    Code:
    [x] Autoreconf forked-daapd success
    [x] Configure forked-daapd failed
    [i] Showing the last 5 lines from the logfile (/home/nocliq/ServerScripts/./daap-server.sh.log)...
    checking whether to build static libraries... no
    checking for antlr3... no
    configure: error: antlr3 wrapper not found and pre-generated files not available
    12989's retcode: 1
    failed
    I tried manually reinstalling antlr3, but get the same "failed" message after running daap-server.sh again.
    Any suggestions on getting around this?

    Code:
    Linux 2.6.32-24-generic-pae #42-Ubuntu SMP Fri Aug 20 15:37:22 UTC 2010 i686 GNU/Linux
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=10.04
    DISTRIB_CODENAME=lucid
    DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
    Edit: Found the answer! Thanks mo-hog!
    http://jamesdanylik.com/articles/und...-forked-daapd/
    Last edited by nocliq; September 20th, 2010 at 01:20 AM. Reason: Answered!

  4. #44
    Join Date
    Sep 2010
    Beans
    1

    Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    Well, I did the jamesdanylik recipe, and it seemed to work.... briefly. I'm on 10.04 though, not 9.10. 64bit. forked-daapd fires up, starts indexing my file, I can see the server in iTunes 10, and play a song, but then it crashes with........

    Sep 19 20:53:14 odin kernel: [20113.170493] forked-daapd[6693]: segfault at 8020a3438 ip 00007f62d5bdb9ae sp 00007f62ce824580 error 4 in libavformat.so.52.31.0[7f62d5b8a000+9d000]

  5. #45
    Join Date
    Jul 2005
    Beans
    107

    Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    Quote Originally Posted by ad_267 View Post
    After recent changes I've had to run this before ./configure, otherwise the configure script can't find zlib for some reason:
    Code:
    export ZLIB_CFLAGS=-I/usr/include
    export ZLIB_LIBS=-lz
    I also had to install libsqlite3-0 and libsqlite3-dev from debian testing which have the unlock notify API enabled.

    I had to install libunistring-dev and libunistring0 but the build is failing at:
    Code:
    gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE -I/usr/include -D_REENTRANT         -I/usr/include/taglib   -D_THREAD_SAFE -D_REENTRANT     -I/usr/include/alsa -DDATADIR="\"/usr/share/forked-daapd\"" -DCONFDIR="\"/etc\"" -DSTATEDIR="\"/var\"" -DFLAC -DMUSEPACK  -g -O2 -Wall -D_LARGEFILE_SOURCE -MT forked_daapd-misc.o -MD -MP -MF .deps/forked_daapd-misc.Tpo -c -o forked_daapd-misc.o `test -f 'misc.c' || echo './'`misc.c
    In file included from misc.c:36:
    /usr/include/unistr.h:189: error: expected ‘;’, ‘,’ or ‘)’ before ‘_UNUSED_PARAMETER_’
    /usr/include/unistr.h:259: error: expected ‘;’, ‘,’ or ‘)’ before ‘_UNUSED_PARAMETER_’
    make[2]: *** [forked_daapd-misc.o] Error 1
    make[2]: Leaving directory `/home/adam/downloads/forked-daapd/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/adam/downloads/forked-daapd'
    make: *** [all] Error 2
    I had the same problem with unistr.h using the libunistring version 0.9.1-1 libraries with Ubuntu Lucid - I installed libunistring0 and libunistring-dev 0.9.3-3 as deb files from Debian sid and that solved this:

    http://packages.debian.org/sid/libunistring0
    http://packages.debian.org/sid/libunistring-dev

    Well, I've compiled forked-daapd-0.12 now - testing it is next...

    P.S. This was also an easy way to install libantlr3c,

    http://packages.debian.org/sid/libantlr3c-3.2-0
    http://packages.debian.org/sid/libantlr3c-dev

    For a sufficiently up to date sqlite3 I used:

    http://packages.debian.org/sid/sqlite3
    http://packages.debian.org/squeeze/libsqlite3-0
    http://packages.debian.org/sid/libsqlite3-dev
    Last edited by maubp; October 1st, 2010 at 11:47 PM. Reason: Clarify SQLite3 bits

  6. #46
    Join Date
    Sep 2010
    Beans
    1

    Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    Hey im Running into the same issues like others:

    [i] Showing the last 5 lines from the logfile (/home/hannes/source/ServerScripts/./daap-server.sh.log)...
    checking whether to build static libraries... no
    checking for antlr3... no
    configure: error: antlr3 wrapper not found and pre-generated files not available
    11523's retcode: 1
    failed
    2.6.32-24-generic-pae #43-Ubuntu SMP Thu Sep 16 15:30:27 UTC 2010 i686 GNU/Linux
    Ubuntu 10.04.1 LTS
    Is there a way to get this compiled? I just tried a manual install of antlr3 wrapper... - i dont want to use the debian repository!

    Any Idea?


    Thanks!

    Pcace

    EDIT: I did this Problem! But sorry for all who has this Poblem: i realy do not know what i did to fix it...

    Anyway: The Next Problem:
    SQLITE3
    checking for SQLITE3... configure: error: Package requirements ( sqlite3 >= 3.5.0 ) were not met:

    No package 'sqlite3' found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables SQLITE3_CFLAGS
    and SQLITE3_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    user@server:~/source/forked-daapd$ sqlite3
    SQLite version 3.7.2
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite>
    What can i do there?? I realy dont know whats wrong there! Has anyone an idea how to fix that sqlite Problem? I installed the version from the Debian repository...


    Thanks!

    Pcace!

    EDIT2:

    GOT IT!!!! I used that version: http://packages.debian.org/sid/i386/...3-dev/download
    Last edited by pcace; September 30th, 2010 at 10:37 PM.

  7. #47
    Join Date
    Jul 2005
    Beans
    107

    Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    When running configure and it tells you it is missing a dependency it isn't always clear what the Ubuntu/Debian package name is. The dependency list here is a great help:

    http://packages.debian.org/sid/forked-daapd

    Don't forget for package foo you will also want to install package foo-dev to get the header files to compile against.

  8. #48
    Join Date
    May 2007
    Beans
    19

    Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    Quote Originally Posted by Remix_88 View Post
    Hi,

    Thanks to the previous posters I've been able to create a script which builds and installs forked-daapd (and its requirements) on Ubuntu Lucid and Maverick. The script also creates logrotate.d and init.d scripts.

    Currently I've only tested forked-daap on 64-bit Lucid and listened to music with Banshee, but the script should also work on 32-bit as well.

    NOTE! forked-daapd requires SQLite3 with update notify API enabled which is not available in the Lucid repos. Therefore my script grabs SQLite 3.6.23.1-4 from the Maverick builds in order to satisfy this requirement. I've no idea what the knock on effect might be so don't blame me if my script eats all your chocolates I've built forked-daapd in a virtual guest to ensure I don't break anything important on my production machines. Naturally, when running this script on Maverick it doesn't do the funky SQLite3 stuff.

    You can get my scripts from my bzr repository. There are other scripts in there, most are incomplete or experimental.

    Code:
    bzr branch lp:~flexiondotorg/+junk/ServerScripts
    The script needs to be executed via 'sudo'.

    Code:
    sudo ./daap-server.sh
    The output from the script looks like this.

    Code:
    Installing daapd server
     [x] Downloading SQLite3 with notify unlock API enabled success
     [x] Installing SQLite3 with notify unlock API enabled success
     [x] Installing build requirements success
     [x] Updating ANTLR success
     [x] Downloading ANTLR C runtime success
     [x] Unpacking ANTLR C runtime success
     [x] Configuring ANTLR C runtime success
     [x] Building ANTLR C runtime success
     [x] Installing ANTLR C runtime success
     [x] Updating libraries success
     [x] Downloading forked-daapd success
     [x] Configuring forked-daapd success
     [x] Building forked-daapd success
     [x] Installing forked-daapd success
     [x] Adding 'daapd' user success
     [x] Setting 'daapd' permissions success
     [x] Configuring logrotate success
     [x] Configuring init.d success
    If you want to see what the script is doing while it is running just execute the following in another shell.

    Code:
    tail -f daap-server.sh.log
    Hopefully this will help some of you who, like me, were struggling to get forked-daapd working.
    I get this on 10.10 server (32-bit):
    Code:
    Installing daapd server
     [x] Installing forked-daapd requirements success
     [x] Downloading antlr-3.2.jar success
     [x] Downloading http://www.antlr.org/download/C/libantlr3c-3.2.tar.gz success
     [x] Unpacking libantlr3c-3.2.tar.gz success
     [x] Configure libantlr3c-3.2 success
     [x] Compile libantlr3c-3.2 success
     [x] Install libantlr3c-3.2 success
     [x] Updating libraries success
     [x] Downloading forked-daapd success
     [x] Autoreconf forked-daapd success
     [x] Configure forked-daapd failed
     [i] Showing the last 5 lines from the logfile (/home/richard/ServerScripts/daap-server.sh.log)...
    checking whether to build static libraries... no
    checking for antlr3... no
    configure: error: antlr3 wrapper not found and pre-generated files not availab31939's retcode: 1
    failed
    Any ideas?

  9. #49
    Join Date
    Sep 2007
    Location
    Isla De Muerte
    Beans
    26
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    Quote Originally Posted by rickwookie View Post
    I get this on 10.10 server (32-bit):
    Code:
    Installing daapd server
     [x] Installing forked-daapd requirements success
     [x] Downloading antlr-3.2.jar success
     [x] Downloading http://www.antlr.org/download/C/libantlr3c-3.2.tar.gz success
     [x] Unpacking libantlr3c-3.2.tar.gz success
     [x] Configure libantlr3c-3.2 success
     [x] Compile libantlr3c-3.2 success
     [x] Install libantlr3c-3.2 success
     [x] Updating libraries success
     [x] Downloading forked-daapd success
     [x] Autoreconf forked-daapd success
     [x] Configure forked-daapd failed
     [i] Showing the last 5 lines from the logfile (/home/richard/ServerScripts/daap-server.sh.log)...
    checking whether to build static libraries... no
    checking for antlr3... no
    configure: error: antlr3 wrapper not found and pre-generated files not availab31939's retcode: 1
    failed
    Any ideas?
    Exact same. Anyone?

  10. #50
    Join Date
    Apr 2006
    Beans
    39
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to set up forked-daapd (mt-daapd replacement) on 9.10

    Quote Originally Posted by Squizzle View Post
    Exact same. Anyone?
    Quote Originally Posted by rickwookie View Post
    I get this on 10.10 server (32-bit):
    Code:
    Installing daapd server
     [x] Installing forked-daapd requirements success
     [x] Downloading antlr-3.2.jar success
     [x] Downloading http://www.antlr.org/download/C/libantlr3c-3.2.tar.gz success
     [x] Unpacking libantlr3c-3.2.tar.gz success
     [x] Configure libantlr3c-3.2 success
     [x] Compile libantlr3c-3.2 success
     [x] Install libantlr3c-3.2 success
     [x] Updating libraries success
     [x] Downloading forked-daapd success
     [x] Autoreconf forked-daapd success
     [x] Configure forked-daapd failed
     [i] Showing the last 5 lines from the logfile (/home/richard/ServerScripts/daap-server.sh.log)...
    checking whether to build static libraries... no
    checking for antlr3... no
    configure: error: antlr3 wrapper not found and pre-generated files not availab31939's retcode: 1
    failed
    Any ideas?
    I finally got around this problem...
    I made a file ~/bin/antlr3 containing
    Code:
    #!/bin/sh
    CLASSPATH=/usr/share/java/antlr-3.2.jar
    java -cp $CLASSPATH org.antlr.Tool "$@"
    Make sure it is executable:
    chmod +x ~/bin/antlr3
    ~/bin is on my PATH, so configure finds it alright.

    There was _some_ instruction for this in the read me here: https://github.com/jasonmc/forked-daapd.

Page 5 of 9 FirstFirst ... 34567 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •