bpa wrote:
>
>
> Not quite done with step 1 or 2 as there are variations still to be
> checked.
> Please confirm
> - you changed ownership/permission etc. of the libasound file when in
> the squeezelite direcotry ?
> - there was no file or directory with a name starting with "ld" in the
> /etc directory
>
Yes, I changed ownership and group to admin/users both for the source
and the copy in the squeezelite directory. Chmod 0755.
Changed it back for the source after testing, it was AudioStation
AudioStation.
No file or directory starting with "ld" in /etc.
bpa wrote:
>
> Instead of copying the libasound file the file can be soft linked to a
> file in the squeezelite direcotry however it is important that it is
> linked to the right file.
> Are there multiple libasound files lib direcory - check by doing a "ls
> -l" command as follows
> >
Code:
--------------------
> >
> ls -l /volume1/@appstore/AudioStation/lib/libasound*
>
--------------------
> >
> On my linux syustem I get the following
> >
Code:
--------------------
> >
> xxxx@minitower$ ls -l /usr/lib/x86_64-linux-gnu/libasound*
> lrwxrwxrwx 1 root root 18 Dec 19 04:25
/usr/lib/x86_64-linux-gnu/libasound.so -> libasound.so.2.0.0
> lrwxrwxrwx 1 root root 18 Dec 19 04:25
/usr/lib/x86_64-linux-gnu/libasound.so.2 -> libasound.so.2.0.0
> -rw-r--r-- 1 root root 1075496 Dec 19 04:25
/usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
>
--------------------
> >
> Note the current libasound is libasound.so.2.0.0 - all others link to
> it. Similarly on your system you need to find the "higher" versions
> (i.e. libasound.so and libasound.so.2) and replicate the files as
> links in the squeezelite directory something like the following.
> >
Code:
--------------------
> >
> ln -s /volume1/@appstore/AudioStation/lib/libasound.so.2.0.0
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin/squeezelite-x86-64/libasound.so
> ln -s /volume1/@appstore/AudioStation/lib/libasound.so.2.0.0
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin/squeezelite-x86-64/libasound.so.2
>
--------------------
> >
> Do a "ls -l" afterwards to check the link are correct - then check if
> squeezelite can be run without the LD_LIBRARY_PATH ?
>
Ok, this is how it was:
Code:
--------------------
lrwxrwxrwx 1 AudioStation AudioStation 14 Jul 11 2018
/volume1/@appstore/AudioStation/lib/libasound.so -> libasound.so.2
-rwxr-xr-x 1 AudioStation AudioStation 989195 Jul 11 2018
/volume1/@appstore/AudioStation/lib/libasound.so.2
--------------------
There is no libasound.so.2.0.0. Is that an issue?
I made the symbolic links like this:
Code:
--------------------
root@Akela2:/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin#
ls -l
total 3248
lrwxrwxrwx 1 root root 50 Feb 26 13:03 libasound.so ->
/volume1/@appstore/AudioStation/lib/libasound.so.2
lrwxrwxrwx 1 root root 50 Feb 26 13:03 libasound.so.2 ->
/volume1/@appstore/AudioStation/lib/libasound.so.2
-rwxr-xr-x 1 admin users 139261 Feb 25 09:39 old-squeezelite-x86-64
-rwxr-xr-x 1 admin users 127354 Feb 25 09:39 squeezelite-armv5te
-rwxr-xr-x 1 admin users 127354 Feb 25 09:39 squeezelite-armv6
-rwxr-xr-x 1 admin users 136381 Feb 25 09:39 squeezelite-armv6hf
-rwxr-xr-x 1 admin users 133764 Feb 25 09:39 squeezelite-i386
-rwxr-xr-x 1 admin users 2642256 Oct 29 13:45 squeezelite-x86-64
-rwxr-xr-x 1 admin users 203 Feb 26 09:36 squeezelite-x86-64.sh
--------------------
Result:
Code:
--------------------
root@Akela2:/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin#
./squeezelite-x86-64
./squeezelite-x86-64: error while loading shared libraries: libasound.so.2:
cannot open shared object file: No such file or directory
--------------------
bpa wrote:
>
> I made the script work, used the wrong shell, /bin/bash instead of
> /bin/sh.
>
>
> Possibly.
> Is there an "id" command - if so then find the following
> What is the groupid of admin ? ("id -g admin")
> What groups does admin belong ("id -G admin")
> also could do a "id admin" and get allinfo at once
>
> You did a check for the audio group a while back - Is admin in the audio
> group ?
> Time to check the Alsa devices permissions.
> ALSA devices are in the /proc/asound directory.
> If you do a "ls -l" on /proc/asound I expect there is a file called
> "Streamer" whic is linked to directory card0
> If you "ls -l" /proced/asound/card0 - there should be files somehting
> like
> >
Code:
--------------------
> >
> -r--r--r-- 1 root root 0 Feb 26 10:13 id
> dr-xr-xr-x 3 root root 0 Feb 26 10:13 pcm0c
> dr-xr-xr-x 3 root root 0 Feb 26 10:13 pcm0p
> dr-xr-xr-x 3 root root 0 Feb 26 10:13 pcm1p
> -r--r--r-- 1 root root 0 Feb 26 10:13 stream0
> -r--r--r-- 1 root root 0 Feb 26 10:13 stream1
> -r--r--r-- 1 root root 0 Feb 26 10:13 usbbus
> -r--r--r-- 1 root root 0 Feb 26 10:13 usbid
> -r--r--r-- 1 root root 0 Feb 26 10:13 usbmixer
>
--------------------
> >
>
> What are the permission & ownership of the card0 directory ?
> What are the permission & ownership of the "pcm*" directories in the
> card0 directory ?
admin is in the following groups:
uid=1024(admin) gid=100(users) groups=100(users),101(administrators)
so not in the audio group.
Ownership and permissions:
Code:
--------------------
root@Akela2:/proc/asound# ls -l
total 0
dr-xr-xr-x 2 root root 0 Feb 26 13:21 card0
-r--r--r-- 1 root root 0 Feb 26 13:21 cards
-r--r--r-- 1 root root 0 Feb 26 13:21 devices
-r--r--r-- 1 root root 0 Feb 26 13:21 hwdep
-r--r--r-- 1 root root 0 Feb 26 13:21 modules
dr-xr-xr-x 2 root root 0 Feb 26 13:21 oss
-r--r--r-- 1 root root 0 Feb 26 13:21 pcm
dr-xr-xr-x 2 root root 0 Feb 26 13:21 seq
lrwxrwxrwx 1 root root 5 Feb 26 13:21 Streamer -> card0
-r--r--r-- 1 root root 0 Feb 26 13:21 syno_audio_volume
-r--r--r-- 1 root root 0 Feb 26 13:21 timers
-r--r--r-- 1 root root 0 Feb 26 13:21 version
root@Akela2:/proc/asound# ls -l /proc/asound/card0
total 0
-r--r--r-- 1 root root 0 Feb 26 13:21 id
-rw-r--r-- 1 root root 0 Feb 26 13:21 oss_mixer
-r--r--r-- 1 root root 0 Feb 26 13:21 stream0
-r--r--r-- 1 root root 0 Feb 26 13:21 usbbus
-r--r--r-- 1 root root 0 Feb 26 13:21 usbid
-r--r--r-- 1 root root 0 Feb 26 13:21 usbmixer
root@Akela2:/proc/asound#
--------------------
So, no pcm* directories in the card0 directory.
------------------------------------------------------------------------
Thorden's Profile: http://forums.slimdevices.com/member.php?userid=66927
View this thread: http://forums.slimdevices.com/showthread.php?t=97766
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins