I'm trying to get this installed, but I'm relatively new to Linux. I've followed all of the steps that I've found in this thread and did a bit of Googling, but I'm still having some issues. I'm not sure if I'm missing a step or just doing something wrong.
I'm running XBMCLive on a Zotac MAG
Once I have everything installed and in the right directories I should be typing "make" correct? I receive an error when I do that (I even tried "sudo make"):
Code:
xbmc@XBMCLive:~/plugins/shairport$ make
make: pkg-config: Command not found
cc -O2 -Wall hairtunes.c alac.c -o hairtunes -lm -lpthread
/tmp/cc1guPQS.o: In function `init_output':
hairtunes.c:(.text+0x7c7): undefined reference to `ao_initialize'
hairtunes.c:(.text+0x7cc): undefined reference to `ao_default_driver_id'
hairtunes.c:(.text+0x801): undefined reference to `ao_open_live'
/tmp/cc1guPQS.o: In function `main':
hairtunes.c:(.text+0xb75): undefined reference to `AES_set_decrypt_key'
/tmp/cc1guPQS.o: In function `alac_decode':
hairtunes.c:(.text+0x109d): undefined reference to `AES_cbc_encrypt'
/tmp/cc1guPQS.o: In function `audio_thread_func':
hairtunes.c:(.text+0x1916): undefined reference to `ao_play'
collect2: ld returned 1 exit status
make: *** [hairtunes] Error 1
My next problem may be because of that one, but I am able to start shairport, however, I receive an error when I attempt to play a song on the newly created speaker in iTunes.
Code:
xbmc@XBMCLive:~/plugins/shairport$ perl shairport.pl
listening...
Established under name '0082F3C9FFE0@Living Room'
new connection from ::ffff:10.0.1.22
REQ: OPTIONS
closed: IO::Socket::INET6=GLOB(0x84d58f8)
new connection from ::ffff:10.0.1.22
REQ: ANNOUNCE
REQ: SETUP
sh: /home/xbmc/plugins/shairport/hairtunes: not found
***CHILD EXITED***
died
Expected port number from decoder; got at shairport.pl line 351.
Again, I assume it's my issues with "make" as I see that the hairtunes directory has not been created yet.
Any help would be appreciated. Thanks in advance!