forked-daapd for Raspbian (armhf)


21 posts
by diegocaro » Wed Sep 19, 2012 10:02 pm
Hello everyone,

Short history: I forwardported (the inverse of backported) the version of forked-daapd available in debian-backports. The packages are available in http://www.inf.udec.cl/~diegocaro/rpi/

To install, follow the next steps:
Code: Select all
wget http://www.inf.udec.cl/~diegocaro/rpi/forked-daapd_0.19-1~bpo60+1_armhf.deb
wget http://www.inf.udec.cl/~diegocaro/rpi/libevent-1.4-2_1.4.13-stable-1_armhf.deb
wget http://www.inf.udec.cl/~diegocaro/rpi/libevent-core-1.4-2_1.4.13-stable-1_armhf.deb
sudo dpkg -i forked-daapd_0.19-1~bpo60+1_armhf.deb libevent-1.4-2_1.4.13-stable-1_armhf.deb libevent-core-1.4-2_1.4.13-stable-1_armhf.deb

At this point, dpkg says that need more packages (avahi and others). Solve this doing
Code: Select all
sudo apt-get -f install


Then you must configure forked-daapd following the guide in http://elinux.org/RPiForked-Daapd#Confi ... rked-Daapd

Ta-Da!

Long history
First of all, forked-daapd has two different versions, one using libdispatch (see a user space implementation of the Grand Central Dispatch API of Mac OS X ), and the other using libevent. Look the master branch on github for libdispatch version https://github.com/jasonmc/forked-daapd and the libevent branch https://github.com/jasonmc/forked-daapd/tree/libevent

First idea: compile forked-daapd deb source package available in wheezy. The raspbian (and debian) wheezy version of forked-daapd uses libdispatch, but for some reasons that I did't discover yet, libdispatch can't compile on raspbian (I only succesfully compiled the libblocks package, which is a dependence of libdispatch). This idea failed =/.

Second idea: compile libevent version of forked-daapd. Here I used the squeeze-backports version of forked-daapd (http://packages.debian.org/squeeze-back ... rked-daapd) because uses the libevent. The problem with this is that wheezy has libevent 2.0 version, and again, for some reason forked-daapd doesn't work propertly (I can see the device in iTunes, but it's always retrieving the list of songs). So, this didn't work.

The third idea was use squeeze version of libevent and squeeze-backports version of forked-daapd. And it works :)

If you have any question, please post it in this thread.
Have a nice day ;)
User avatar
Posts: 4
Joined: Wed Sep 19, 2012 9:19 pm
Location: Concepción, Chile
by salomaaj » Sat Sep 22, 2012 3:42 pm
Thanks diegocaro for this! I only had trouble pairing iOS devices with the system, but the issue turned out to be the fact that I created the .remote files before starting the service.
Posts: 2
Joined: Sat Sep 22, 2012 3:21 pm
by oraguirre » Sun Sep 23, 2012 12:49 pm
Hi diegocaro

It seems that the links to get the files are broken. Any ideas of alternative ones!

Thanks! ;)
Posts: 3
Joined: Sun Sep 23, 2012 12:46 pm
by salomaaj » Sun Sep 23, 2012 3:01 pm
Posts: 2
Joined: Sat Sep 22, 2012 3:21 pm
by oraguirre » Mon Sep 24, 2012 2:13 pm
Thanks my friend! :D
Posts: 3
Joined: Sun Sep 23, 2012 12:46 pm
by supermario87 » Sat Sep 29, 2012 2:16 pm
Hi, thanks for your packages! I installed and configured forked-daapd, he starts and does not produce any waring or error, but in my itunes 10.7 i can't se any library
Posts: 3
Joined: Thu Sep 27, 2012 8:19 pm
by c5005099 » Tue Dec 04, 2012 3:15 am
Thanks a lot! Your binary really helpful. :D
Would you mind to help make a new build for fixing iTunes 11 and Remote 3.0 issue. I found Treus proposed fix on it. https://github.com/treus/forked-daapd

Many thanks~~ :D
Posts: 1
Joined: Tue Nov 27, 2012 2:05 am
Location: Hong Kong
by Nevman » Mon Dec 10, 2012 1:52 am
Many thanks.
Posts: 3
Joined: Mon Dec 10, 2012 1:49 am
by Nevman » Fri Jan 04, 2013 3:14 am
diegocaro - Can I ask how you got forked-daapd to compile? Did you use cross-tools? I am having issues with clang.
Again thanks for the original compile, it works really well butr now I'm trying to get the fix to compile.
Posts: 3
Joined: Mon Dec 10, 2012 1:49 am
by chrisk » Mon Jan 14, 2013 7:40 am
Any solutions to that problem yet?
Sharing is working fine for me, the remote app does get errors.
I would be very interested in a fix or instructions to compile...
Posts: 3
Joined: Mon Jan 14, 2013 7:36 am
by Wonderjacky » Wed Jan 16, 2013 11:17 pm
Hello,

What kind of problem do you have with the remote 3.0?
I'm using it to play music on an AirPlay output and it is working fine.

The only problem I have on the remote is the sorting of the artists.
The artists are not sorted correctly, it is a complete mess. The albums are OK.

Does someone have the same issue?
Could you help me on that matter?

Thanks,
François
Posts: 3
Joined: Wed Jan 16, 2013 11:09 pm
by chrisk » Thu Jan 17, 2013 7:06 am
Hi Francois,

the problem is that, apparently, Apple changed the structure of the DAAP query.
In the forked-daapd.log the following entries appear when i try to remote-control my raspberry

Code: Select all
[2013-01-08 10:34:21]     daap: Invalid DAAP query
[2013-01-08 10:34:21]     daap: Ignoring improper DAAP query
[2013-01-08 10:34:28]     dacp: Could not find requested property 'dacp.fullscreenenabled'
[2013-01-08 10:34:28]     dacp: Could not find requested property 'dacp.fullscreen'
[2013-01-08 10:34:28]     dacp: Could not find requested property 'dacp.visualizerenabled'
[2013-01-08 10:34:28]     dacp: Could not find requested property 'dacp.visualizer'
[2013-01-08 10:34:28]     dacp: Could not find requested property 'com.apple.itunes.itms-songid'
[2013-01-08 10:34:28]     dacp: Could not find requested property 'com.apple.itunes.has-chapter-data'
[2013-01-08 10:34:28]     daap: DMAP field 'com.apple.itunes.extended' is not a valid field in queries
[2013-01-08 10:34:28]     daap: DMAP field 'com.apple.itunes.extended' is not a valid field in queries


The problem is known https://github.com/jasonmc/forked-daapd/issues/96
and there is a fix for that.
However, the whole thing needs to be compiled which seems to be a bit of a problem right now.

regards
chrisk
Posts: 3
Joined: Mon Jan 14, 2013 7:36 am
by Wonderjacky » Thu Jan 17, 2013 9:18 am
Hi Chrisk,

I don't think that my problem is the same as yours.
In fact the "Artist-sorting-problem" was present before the new 3.0 remote.
Before the remote 3.0 were the artists well sorted on your remote?

François
Posts: 3
Joined: Wed Jan 16, 2013 11:09 pm
by chrisk » Thu Jan 17, 2013 9:41 am
I started with version 3, so i don't know. :)
Posts: 3
Joined: Mon Jan 14, 2013 7:36 am
by LarryL » Sat Feb 02, 2013 3:34 pm
Hey guys,

I have the same issue as Chris: RemoteApp v3 is not working, with the same errors recurring in the log.

Has anybody been able to compile the fixed version thats available on github (forked version by treus) yet? If so, a link to the deb files would be greatly appreciated!

Otherwise, I'm willing to try to compile this myself, but I don't really know what I would have to do (I'm a linux beginner). Advise here would also be greatly appreciated!

Thanks,

Larry
Posts: 1
Joined: Sat Feb 02, 2013 3:26 pm
by jcv » Wed Feb 13, 2013 8:13 pm
I'm also trying to build forked-daapd on rpi.
So far so good but the configure fails on lack of libdispatch :

checking dispatch/dispatch.h usability... no
checking dispatch/dispatch.h presence... no
checking for dispatch/dispatch.h... no
configure: error: dispatch/dispatch.h not found

And I really have no clue how to get it on the rasp....
Posts: 1
Joined: Wed Feb 13, 2013 8:12 pm
by delidave » Thu Feb 21, 2013 6:36 pm
Any updates on this yet. New to linux and rpi (windows/msdos user) and just trying to configure a media server. genereal pc skills high but not in coding/programming/compiling - although i am willing to learn. have installed squeezeplug and the forked-daapd version from there. setup directory etc, started. whilst indexing library could connect in itunes/ play etc. left overnight as lib is over 10000 songs. also set temp.remote file with my iphone device name 4 dig code. woke up this morning to find iphone sucessfully paired and library indexed (i assume as now cannot connect). itunes now does not load share, just locks and kicks me back to local library. remote allows me to play playlists already in library, even to atv3 through airplay but again kicks me out everytime i click on artists or search or albumns(loads albumns but then kicks me out when going into one). I take it this is under dev but unclear on history, have done loads of reading but still not sure. I assume apple screwed things up again once updating to itunes 11, remote 3. Also what are the chances of itunes running natively on pi using wine etc. as i said, no experience in unix/linux/osx style os's so sorry if sounding bit dumb. Any advise, help etc most appreciated. especially with dependencies and what they are used for.
Posts: 12
Joined: Wed Feb 20, 2013 7:20 pm
by baal » Sat Feb 23, 2013 1:17 pm
Hi folks,

I finally managed to build a forked-daapd version that will support Remote 3.0.
I just opend a new topic --> http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=34825&p=294791#p294791

Greets
User avatar
Posts: 10
Joined: Sat Feb 09, 2013 4:37 pm
Location: Germany
by plugwash » Sun May 12, 2013 7:57 pm
Just to let you guys know that recently I was prompted by another forum post to took another look at libblocksruntime and libdispatch in raspbian and I managed to get them to build. As a result of this our autobuilders have built forked-daapd and put it in the repos. I've no idea if it actually works or not though.
Forum Moderator
Forum Moderator
Posts: 2355
Joined: Wed Dec 28, 2011 11:45 pm
by troubadixx » Wed Jun 12, 2013 8:55 pm
Tried installation from the repos.
Installation runs through incl. all dependencies.
But
Code: Select all
sudo /etc/init.d/forked-daapd start
results in
Code: Select all
ERROR.
Posts: 5
Joined: Thu Dec 08, 2011 4:02 pm
by jpbaril » Thu Jul 25, 2013 7:26 pm
Posts: 13
Joined: Fri Mar 29, 2013 7:20 pm