Results 1 to 15 of 38

Thread: How-to: Compile mt-daapd for your Roku/Pinnacle soundbridge

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Location
    The Netherlands
    Posts
    244

    How-to: Compile mt-daapd for your Roku/Pinnacle soundbridge

    Note: this is a draft version. Please respond with your advice.

    What I did to compile mt-daapd

    Prerequisite: firmware of KCFurge installed. Updated all my packages, installed package optware-devel
    Sollie mentioned he had to update buildroot:
    ipkg install -force-overwrite buildroot
    Download mt-daapd-svn-1586.tar.gz from http://www.fireflymediaserver.org/
    Put it somewhere you can reach it within the WL-700gE. I putted mine in my home-dir.
    Currently (22-1-2008) the newest one is release 1696, which I took.

    telnet asus
    sudo bash
    It is vital to run configure as root, so sudo bash is needed.

    On the command line, and in your .profile, add this:
    LD_LIBRARY_PATH="/opt/lib:/shares/lib"
    PATH_SEPARATOR=:
    CONFIG_SHELL=/opt/bin/bash
    AWK=/opt/bin/gawk
    export PATH_SEPARATOR CONFIG_SHELL AWK LD_LIBRARY_PATH
    Do this with joe .profile
    (I love joe as editor, it has wordstar-like commands, and these still stick in my fingers from the 80´s. You may love nano or vi, or don't know what)


    Run:
    tar -xvzf mt-daapd-svn-xxxx.tar.gz
    to 'unzip' this
    cd mt*
    It's needed to change the first line of configure from "#!/bin/sh" to "#!/opt/bin/bash"
    Do this with joe configure

    Now, try
    ./configure --prefix=/opt --enable-sqlite3 --enable-oggvorbis --enable-flac
    You may need other --enable options, but these are for ogg/vorbis and flac support. Have a look in the configure file for more.
    If it runs without errors you are as lucky as I was.

    Then, give make supreme command:
    make
    After that make sure you have removed the old mt-daapd that you may have installed:
    Maybe you like to keep your old mt-daapd.conf, do so first, but keep in mind that newer mt-daapds need newer config files.
    ipkg remove mt-daapd
    There might be an install-sh script for which you need to change the first line from "#!/bin/sh" to "#!/opt/bin/bash"
    Now run
    make install
    Most likely you need to reconfigure mt-daapd.conf. There is an up-to-date template in mt-daapd-svn-9999/contrib. 9999 is your buildnumber, say 1696. Use that as a start.


    To start mt-daapd at bootup, at this to your rc.local:
    if [ -x /opt/sbin/mt-daapd ]; then
    /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
    fi
    Of course, disable the antique mt-daapd the Asus provides:
    in the beginning of your rc.local:
    # Sleep for a little bit to not interfere with normal system startup
    # before we kill a bunch of Asus processes.
    sleep 5

    # Stop Asus mt-daapd
    killall -q mt-daapd &
    Also, disable the Media Server in the webinterface of the Asus.

    If you don't let mt-daapd run as root, give the account you gave to mt-daapd the correct rights: for instance Sollie had to use this command, to have write permission:
    chown guest /opt/var/mt-daapd
    if you need a more extended buglevel, add -dx after the line, with x=1,2,...,9
    I.E:
    /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf -d5

    You can reach the web interface with http://asus:3689/index.html where 'asus' is the hostname or the ip address of your NAS

    To allow transcoding for flac and ogg to work, change the first line of /opt/sbin/mt-daapd-ssc.sh
    to
    #!/opt/bin/bash

    If your ogg files produce noise only, proceed. If not, be happy.
    With package ivorbis-tools (1.0-6) the ogg-files are transcoded the big-endian way, that should be the little-endian way. Result is noise.
    If you have this problem, try this: download the attached oggdec.bin.zip. Unzip this and copy oggdec.bin as oggdec to /opt/bin/oggdec. It will overwrite what you got from your ivorbis-package.
    Make sure it is executable:
    chmod +x /opt/bin/oggdec
    Attached Files Attached Files
    Last edited by mumsoft; 22-01-2008 at 20:46. Reason: Ogg problem solved, several enhancements, changes for rel 1696

Similar Threads

  1. Need help to compile esniper
    By samoht in forum WL-500g Custom Development
    Replies: 23
    Last Post: 24-08-2010, 13:42
  2. How to compile Asus Source v1.9.7.0?
    By mik30 in forum WL-500gP Q&A
    Replies: 2
    Last Post: 04-06-2010, 23:44
  3. Help to compile toolchain please
    By QMax in forum WL-500gP Q&A
    Replies: 12
    Last Post: 15-10-2007, 13:30
  4. wl500gx custom appz, compile environment
    By gatsu in forum WL-500g Custom Development
    Replies: 1
    Last Post: 31-03-2007, 07:17
  5. How to compile c++
    By Elephantik in forum WL-500g Custom Development
    Replies: 2
    Last Post: 19-04-2006, 22:34

Tags for this Thread

Posting Permissions

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