Cannot configure xbmc with --enable-airtunes
#1
Hi everybody,

I try to compile a current git clone from xbmc with the libshaiport function enabled.
Before I tried to configure, I compiled the libshairport libraries like this
Code:
~/sources/github/xbmc$ cd lib/libshairport/
$ make
$ sudo make install
The installation seems to be fine
Code:
ls -al /usr/local/lib/
insgesamt 192
drwxr-xr-x  5 root root    4096 2011-10-25 18:50 .
drwxr-xr-x 10 root root    4096 2011-01-08 00:54 ..
-rwxr-xr-x  1 root root     972 2011-10-25 18:50 libshairport.la
lrwxrwxrwx  1 root root      21 2011-10-25 18:50 libshairport.so -> libshairport.so.0.0.0
lrwxrwxrwx  1 root root      21 2011-10-25 18:50 libshairport.so.0 -> libshairport.so.0.0.0
-rwxr-xr-x  1 root root  169696 2011-10-25 18:50 libshairport.so.0.0.0
drwxrwsr-x  4 root staff   4096 2011-10-15 14:02 python2.6
drwxrwsr-x  4 root staff   4096 2011-10-15 14:02 python2.7
drwxr-xr-x  4 root root    4096 2011-01-19 20:54 xbmc
To be sure, I did a 'ldconfig' manually.
But the configuring of xbmc fails with:
Code:
checking for main in -lplist... yes
checking for libplist soname... libplist.so.1
checking for shairport_set_ao in -lshairport... no
configure: error: == Could not find libshairport. AirTunes support disabled. =

Setting the LD_LIBRARY_PATH manually did not succeed :/
Am I missing something here? Thanks for your ideas Smile
Reply
#2
verify the headers are available for including:

ls /usr/local/include/shairport

also

ldconfig -v to verify creation of symbollic link to shared object
Reply
#3
Hmm. IMO everything seems to be fine
Code:
$ ll /usr/local/include/shairport/
insgesamt 24
drwxr-xr-x 2 root root 4096 2011-10-31 00:54 ./
drwxr-xr-x 3 root root 4096 2011-10-19 21:18 ../
-rw-r--r-- 1 root root 6353 2011-10-31 00:54 ao.h
-rw-r--r-- 1 root root 1313 2011-10-31 00:54 shairport.h
-rw-r--r-- 1 root root 1088 2011-10-31 00:54 socketlib.h

as well as
Code:
sudo ldconfig -v
...
/usr/local/lib:
    libshairport.so.0 -> libshairport.so.0.0.0
Any other ideas? I try to compile on Ubuntu 11.10
Reply
#4
You installed to /usr/local. Try ./configure --prefix=/usr
Reply
#5
Why don't use the delievered shairport sources?
You can use them with following commands (first change in the source folder of xbmc):

Code:
make -C lib/libshairport
make -C lib/libshairport install
Reply
#6
Hi, did you solved the problem?
I am having the same issue.
Code:
checking for main in -lplist... yes
checking for libplist soname... libplist.so.1
checking for shairport_set_ao in -lshairport... no
configure: error: == Could not find libshairport. AirTunes support disabled. =
Reply
#7
Yes I have solved the problem.
I am not sure if you have to bootstrap again.

I ran the commands above and after it to ensure that it works a clean, bootstrap and configure, before running make.
Reply
#8
ok thanks. But that still didn't do it for me Sad
configure still doesn't find the libshairport
Reply
#9
Does the system build the library correct?
Had you uninstalled your self builed library?
Reply
#10
yep, I think so:

Code:
sudo make -C lib/libshairport install

=>
Code:
libtool: install: /usr/bin/install -c .libs/libshairport.lai /usr/lib/libshairport.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/include/shairport" || /bin/mkdir -p "/usr/include/shairport"
/usr/bin/install -c -m 644 shairport.h ao.h socketlib.h '/usr/include/shairport'
make[3]: Leaving directory `/home/htpc/xbmcgit/xbmc/lib/libshairport/libshairport-1.2.0.20310_lib/src'
make[2]: Leaving directory `/home/htpc/xbmcgit/xbmc/lib/libshairport/libshairport-1.2.0.20310_lib/src'
make[2]: Entering directory `/home/htpc/xbmcgit/xbmc/lib/libshairport/libshairport-1.2.0.20310_lib'
make[3]: Entering directory `/home/htpc/xbmcgit/xbmc/lib/libshairport/libshairport-1.2.0.20310_lib'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/htpc/xbmcgit/xbmc/lib/libshairport/libshairport-1.2.0.20310_lib'
make[2]: Leaving directory `/home/htpc/xbmcgit/xbmc/lib/libshairport/libshairport-1.2.0.20310_lib'
make[1]: Leaving directory `/home/htpc/xbmcgit/xbmc/lib/libshairport/libshairport-1.2.0.20310_lib'
ldconfig
make: Leaving directory `/home/htpc/xbmcgit/xbmc/lib/libshairport'

Code:
ls -la /usr/lib/libsha*
=>
Code:
-rwxr-xr-x 1 root root    966 2011-11-08 13:27 /usr/lib/libshairport.la
lrwxrwxrwx 1 root root     21 2011-11-08 13:27 /usr/lib/libshairport.so -> libshairport.so.0.0.0
lrwxrwxrwx 1 root root     21 2011-11-08 13:27 /usr/lib/libshairport.so.0 -> libshairport.so.0.0.0
-rwxr-xr-x 1 root root 132107 2011-11-08 13:27 /usr/lib/libshairport.so.0.0.0

Code:
ls /usr/include/shairport/
=>
Code:
ao.h  shairport.h  socketlib.h


Code:
sudo ldconfig -v

=>
Code:
/usr/lib/
libshairport.so.0 -> libshairport.so.0.0.0
Reply
#11
After that bootstrap and configure?
Reply
#12
yep, configure can't find libshairport Sad
Reply
#13
The custom build did you uninstall?
Reply
#14
I deleted every files related to shairport in /use/local. Is this what you meant?
Reply
#15
FYI, https://github.com/xbmc/xbmc/commit/40ab...7741e902f4 should fix it.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply



Logout Mark Read Team Forum Stats Members Help
Cannot configure xbmc with --enable-airtunes0
This forum uses Lukasz Tkacz MyBB addons.