BaReinhard / Super-Simple-Raspberry-Pi-Audio-Receiver-Install

Super Easy installation to make your Raspberry Pi an Audio Receiver
GNU Affero General Public License v3.0
489 stars 88 forks source link

[SOLVED] - Cannot paring to bluetooth [sound card fail] #74

Closed korte84 closed 6 years ago

korte84 commented 6 years ago

Hello BAReinhard,

It's been a while i'm using your simple audio receiver and it's been great but now there is a problem: I made a new install of your receiver and i cannot paring my android phone (or any bluetooth device) anymore but the Rpi can be discovered. On the BT status I figured out that the SAP drivers failed. Is that normal?

My config: OS is raspbian jessie lite on a Rpi3b + "HifiBerry DAC+ standard" + internal Bluetooth

here the BT status:

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since Sun 2017-12-10 12:49:12 UTC; 3min 51s ago
     Docs: man:bluetoothd(8)
 Main PID: 861 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─861 /usr/lib/bluetooth/bluetoothd

Dec 10 12:49:12 raspberrypi bluetoothd[861]: Bluetooth daemon 5.23
Dec 10 12:49:12 raspberrypi systemd[1]: Started Bluetooth service.
Dec 10 12:49:12 raspberrypi bluetoothd[861]: Starting SDP server
Dec 10 12:49:12 raspberrypi bluetoothd[861]: Bluetooth management interface 1.14 initialized
Dec 10 12:49:12 raspberrypi bluetoothd[861]: Sap driver initialization failed.
Dec 10 12:49:12 raspberrypi bluetoothd[861]: sap-server: Operation not permitted (1)
BaReinhard commented 6 years ago

That’s odd,

What does your /etc/init.d/bluetooth file look like?

korte84 commented 6 years ago

thx for answering!! here it is:

#!/bin/sh -e
### BEGIN INIT INFO
# Provides:            bluetooth
# Required-Start:      $local_fs $syslog dbus
# Required-Stop:       $local_fs $syslog
# Default-Start:       2 3 4 5
# Default-Stop:        0 1 6
# Short-Description:   Starts bluetooth daemons
### END INIT INFO

. /lib/lsb/init-functions

DESC=bluetoothd
DAEMON=/usr/libexec/bluetooth/bluetoothd
#SSD_OPTIONS="--oknodo --quiet --exec $DAEMON --plugin=a2dp"
SSD_OPTIONS="--oknodo --quiet --exec $DAEMON" #Change to this if you want media control using DBus at the expense of volume contro$
HCI=hci0

case "${1}" in
    start)
       log_daemon_msg "Starting Bluetooth daemon bluetoothd..."
       start-stop-daemon --start --background $SSD_OPTIONS
       log_progress_msg "${DAEMON}"

       hciconfig $HCI up > /dev/null 2>&1
       log_end_msg 0
       ;;

    stop)
        log_daemon_msg "Stopping Bluetooth daemon bluetoothd..."
        start-stop-daemon --stop $SSD_OPTIONS
        log_progress_msg "${DAEMON}"
        log_end_msg 0
       ;;

    restart)
       ${0} stop
       sleep 1
       ${0} start
       ;;

    status)
        status_of_proc "$DAEMON" "$DESC" && exit 0 || exit $?
       ;;

    *)
         echo "Usage: ${0} {start|stop|restart|status}"
         exit 1
       ;;
esac

exit 0
korte84 commented 6 years ago

ok i've uninstalled and reinstalled the bluetooth and the status now is:

sudo systemctl status bluetooth

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since Sun 2017-12-10 22:30:20 UTC; 57s ago
     Docs: man:bluetoothd(8)
 Main PID: 1238 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─1238 /usr/lib/bluetooth/bluetoothd

Dec 10 22:30:20 raspberrypi bluetoothd[1238]: Bluetooth daemon 5.23
Dec 10 22:30:20 raspberrypi systemd[1]: Started Bluetooth service.
Dec 10 22:30:20 raspberrypi bluetoothd[1238]: Starting SDP server
Dec 10 22:30:20 raspberrypi bluetoothd[1238]: Bluetooth management interface 1.14 initialized

and as you can see I've lost the SAP errors...

So then i tried to install your receiver (BT only) and I still can't discover my BT. :(

EDIT: same thing with the Home version

FYI airplay works good

BaReinhard commented 6 years ago

What is the contents of /etc/init.d/pulseaudio

And if you could also post your contents of install.log inside the sspari folder

BaReinhard commented 6 years ago

Also the contents of /etc/init.d/bluetooth-agent would be helpful

korte84 commented 6 years ago

/etc/init.d/bluetooth-agent

#!/bin/sh -e
### BEGIN INIT INFO
# Provides: bluetooth-agent
# Required-Start: $remote_fs $syslog bluetooth pulseaudio # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Makes Bluetooth discoverable and connectable to 00$# Description: Start Bluetooth-Agent at boot time.
### END INIT INFO
#! /bin/sh
# /etc/init.d/bluetooth-agent
USER=root
HOME=/root
export USER HOME
case "$1" in start)
echo "setting bluetooth discoverable"
sleep 1 sudo hciconfig hci0 piscan
start-stop-daemon -S -x /usr/local/bin/simple-agent.autotrust &
echo "bluetooth-agent started" ;;
stop)
echo "Stopping bluetooth-agent"
start-stop-daemon -K -x /usr/local/bin/simple-agent.autotrust ;; *) echo "Usage: /etc/init.d/bluetooth-agent {start|stop}"
exit 1 ;;
esac exit 0

/etc/init.d/pulseaudio

#!/bin/sh -e
### BEGIN INIT INFO
# Provides: pulseaudio esound # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog
# Should-Start: udev network-manager
# Should-Stop: udev network-manager # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the PulseAudio sound server
# Description: System mode startup script for
# the PulseAudio sound server.
### END INIT INFO
DAEMON=/usr/local/bin/pulseaudio PIDDIR=/var/run/pulse
PIDFILE=$PIDDIR/pid
DAEMONUSER=pulse PATH=/sbin:/bin:/usr/sbin:/usr/bin
test -x $DAEMON || exit 0 
. /lib/lsb/init-functions
pulseaudio_start () { log_daemon_msg "Starting system PulseAudio Daemon" if [ ! -d $PIDDIR ]; then mkdir -p $PIDDIR
chown $DAEMONUSER:$DAEMONUSER $PIDDIR fi
start-stop-daemon -x $DAEMON -p $PIDFILE --start -- --system --$ status=$?
if [ -e /var/run/pulse/.esd_auth ]; then
chown pulse:pulse-access /var/run/pulse/.esd_auth
chmod 640 /var/run/pulse/.esd_auth fi if [ -e /var/run/pulse/.pulse-cookie ]; then
chown pulse:pulse-access /var/run/pulse/.pulse-cookie
chmod 640 /var/run/pulse/.pulse-cookie
fi
log_end_msg ${status} } pulseaudio_stop () { log_daemon_msg "Stopping system PulseAudio Daemon" start-stop-daemon -p $PIDFILE --stop --retry 5 || echo -n "...w$ log_end_msg $?
}
case "$1" in
start|stop)
pulseaudio_${1}
;; restart|reload|force-reload)
if [ -s $PIDFILE ] && kill -0 $(cat $PIDFILE) >/dev/nul$ pulseaudio_stop
pulseaudio_start fi
;;
force-stop)
pulseaudio_stop
killall pulseaudio || true
sleep 2
killall -9 pulseaudio || true
;; status)
status_of_proc -p $PIDFILE "$DAEMON" "system-wide Pulse$ ;; *)
echo "Usage: /etc/init.d/pulseaudio {start|stop|force-s$ exit 1 ;;
esac
exit 0 
BaReinhard commented 6 years ago

In your /etc/init.d/bluetooth-agent file where it says :

echo "setting bluetooth discoverable"
sleep 1 sudo hciconfig hci0 piscan

Is sleep 1 and sudo hciconfig hci0 piscan all on one line? or on two?

Can you post the contents of ~/super-simple-raspberry-Pi-audio-receiver-install/install.log.

And what is the user you installed this under?

korte84 commented 6 years ago

1) It's on 2 lines 2) user: root (sudo -i) 3) install.log

0-0:armhf (1.4.4-2.1+deb8u2) ...
Setting up libkate1 (0.4.1-4) ...
Setting up libmimic0 (1.0.4-2.2) ...
Setting up libmodplug1 (1:0.8.8.4-4.1) ...
Setting up libofa0 (0.9.3-7) ...
Setting up libspandsp2:armhf (0.0.6-2) ...
Setting up libsrtp0 (1.4.5~20130609~dfsg-1.1+deb8u1) ...
Setting up libzbar0 (0.10+doc-10+b2) ...
Setting up gstreamer1.0-plugins-base:armhf (1.4.4-2+deb8u1) ...
Setting up gstreamer1.0-plugins-bad:armhf (1.4.4-2.1+deb8u2) ...
Setting up gir1.2-gstreamer-1.0 (1.4.4-2+deb8u1) ...
Setting up gstreamer1.0-alsa:armhf (1.4.4-2+deb8u1) ...
Setting up gstreamer1.0-libav:armhf (1.4.4-2) ...
Setting up gstreamer1.0-plugins-good:armhf (1.4.4-2+deb8u3) ...
Setting up liba52-0.7.4 (0.7.4-17) ...
Setting up libsidplay1 (1.36.59-6) ...
Setting up libtwolame0 (0.3.13-1.1) ...
Setting up gstreamer1.0-plugins-ugly:armhf (1.4.4-2+deb8u1) ...
Setting up libgstreamer1.0-dev (1.4.4-2+deb8u1) ...
Setting up libupnp6-dev (1:1.6.19+git20141001-1+deb8u1) ...
Setting up libupnp-dev (1:1.6.19+git20141001-1+deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
===> Executing: git clone https://github.com/hzeller/gmrender-resurrect.git
===> Executing: cd gmrender-resurrect
===> Executing: ./autogen.sh
===> Executing: ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking whether make sets $(MAKE)... (cached) yes
checking for asprintf... yes
checking for exp in -lm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GST... yes
checking for LIBUPNP... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating config.h
config.status: executing depfiles commands
===> Executing: make
make  all-recursive
make[1]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect'
Making all in src
make[2]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/src'
(echo "#define GM_COMPILE_VERSION \"2017-12-10_704b182\"" > git-version.h-new; \
cmp -s git-version.h git-version.h-new || cp git-version.h-new git-version.h; \
rm git-version.h-new)
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT upnp.o -MD -MP -MF .deps/upnp.Tpo -c -o upnp.o upnp.c
mv -f .deps/upnp.Tpo .deps/upnp.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT upnp_control.o -MD -MP -MF .deps/upnp_control.Tpo -c -o upnp_control.o upnp_control.c
mv -f .deps/upnp_control.Tpo .deps/upnp_control.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT upnp_connmgr.o -MD -MP -MF .deps/upnp_connmgr.Tpo -c -o upnp_connmgr.o upnp_connmgr.c
mv -f .deps/upnp_connmgr.Tpo .deps/upnp_connmgr.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT upnp_transport.o -MD -MP -MF .deps/upnp_transport.Tpo -c -o upnp_transport.o upnp_transport.c
mv -f .deps/upnp_transport.Tpo .deps/upnp_transport.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT song-meta-data.o -MD -MP -MF .deps/song-meta-data.Tpo -c -o song-meta-data.o song-meta-data.c
mv -f .deps/song-meta-data.Tpo .deps/song-meta-data.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT variable-container.o -MD -MP -MF .deps/variable-container.Tpo -c -o variable-container.o variable-container.c
mv -f .deps/variable-container.Tpo .deps/variable-container.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT upnp_device.o -MD -MP -MF .deps/upnp_device.Tpo -c -o upnp_device.o upnp_device.c
mv -f .deps/upnp_device.Tpo .deps/upnp_device.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT upnp_renderer.o -MD -MP -MF .deps/upnp_renderer.Tpo -c -o upnp_renderer.o upnp_renderer.c
mv -f .deps/upnp_renderer.Tpo .deps/upnp_renderer.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT webserver.o -MD -MP -MF .deps/webserver.Tpo -c -o webserver.o webserver.c
mv -f .deps/webserver.Tpo .deps/webserver.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT output.o -MD -MP -MF .deps/output.Tpo -c -o output.o output.c
mv -f .deps/output.Tpo .deps/output.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT logging.o -MD -MP -MF .deps/logging.Tpo -c -o logging.o logging.c
mv -f .deps/logging.Tpo .deps/logging.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT xmldoc.o -MD -MP -MF .deps/xmldoc.Tpo -c -o xmldoc.o xmldoc.c
mv -f .deps/xmldoc.Tpo .deps/xmldoc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT xmlescape.o -MD -MP -MF .deps/xmlescape.Tpo -c -o xmlescape.o xmlescape.c
mv -f .deps/xmlescape.Tpo .deps/xmlescape.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include  -pthread -I/usr/include/upnp  -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT output_gstreamer.o -MD -MP -MF .deps/output_gstreamer.Tpo -c -o output_gstreamer.o output_gstreamer.c
mv -f .deps/output_gstreamer.Tpo .deps/output_gstreamer.Po
gcc -std=gnu99  -g -O2 -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings   -o gmediarender main.o upnp.o upnp_control.o upnp_connmgr.o upnp_transport.o song-meta-data.o variable-container.o upnp_device.o upnp_renderer.o webserver.o output.o logging.o xmldoc.o xmlescape.o output_gstreamer.o -lgthread-2.0 -pthread -lglib-2.0  -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0  -pthread -lupnp -lthreadutil -lixml   -lm 
make[2]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/src'
Making all in data
make[2]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/data'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/data'
make[2]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect'
make[2]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect'
make[1]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect'
===> Executing: make install
Making install in src
make[1]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/src'
(echo "#define GM_COMPILE_VERSION \"2017-12-10_704b182\"" > git-version.h-new; \
cmp -s git-version.h git-version.h-new || cp git-version.h-new git-version.h; \
rm git-version.h-new)
make[2]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/src'
(echo "#define GM_COMPILE_VERSION \"2017-12-10_704b182\"" > git-version.h-new; \
cmp -s git-version.h git-version.h-new || cp git-version.h-new git-version.h; \
rm git-version.h-new)
 /bin/mkdir -p '/usr/local/bin'
  /usr/bin/install -c gmediarender '/usr/local/bin'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/src'
make[1]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/src'
Making install in data
make[1]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/data'
make[2]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/data'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/share/gmediarender'
 /usr/bin/install -c -m 644 grender-128x128.png grender-64x64.png '/usr/local/share/gmediarender'
make[2]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/data'
make[1]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect/data'
make[1]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect'
make[2]: Entering directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect'
make[1]: Leaving directory '/root/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/gmrender-resurrect'
--------------------------------------------
Ending at @ Sun 10 Dec 22:44:39 UTC 2017
BaReinhard commented 6 years ago

ok, I think I may know whats happening. What is the output of ls /home/pi/

korte84 commented 6 years ago

pi@raspberrypi:~ $ ls /home/pi/ json-c libsndfile pulseaudio pyScripts

BaReinhard commented 6 years ago

What you can do is navigate to the super-simple-.... folder and run bt_config.sh as your login user. Make sure it doesn’t say any errors and it should fix the issue.

korte84 commented 6 years ago

Hi sorry for the late replay I've tried to enter the folder but i didn't have permissions, I think because I've installed your package as root. I ran bt_pa_config as root and i didn't have any error but nothing has changed. I decided to load a fresh copy of Jessie lite. I installed the home version as pi user, and now I can detect the BT. The problem now is that I can pair the raspberry but the connection is not kept.

NEW BT status

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since Tue 2017-12-12 19:57:44 UTC; 21h ago
     Docs: man:bluetoothd(8)
 Main PID: 954 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─954 /usr/lib/bluetooth/bluetoothd

Dec 12 19:57:44 raspberrypi systemd[1]: Starting Bluetooth service...
Dec 12 19:57:44 raspberrypi bluetoothd[954]: Bluetooth daemon 5.23
Dec 12 19:57:44 raspberrypi systemd[1]: Started Bluetooth service.
Dec 12 19:57:44 raspberrypi bluetoothd[954]: Starting SDP server
Dec 12 19:57:44 raspberrypi bluetoothd[954]: Bluetooth management interface 1.14 initialized
Dec 12 19:57:44 raspberrypi bluetoothd[954]: Sap driver initialization failed.
Dec 12 19:57:44 raspberrypi bluetoothd[954]: sap-server: Operation not permitted (1)
Dec 12 21:44:07 raspberrypi bluetoothd[954]: GAP and GATT are mandatory
Dec 12 21:44:07 raspberrypi bluetoothd[954]: gap-gatt-profile profile probe failed for BC:E6:3F:B6:12:96

File: /etc/init.d/bluetooth

### BEGIN INIT INFO
# Provides:            bluetooth
# Required-Start:      $local_fs $syslog dbus
# Required-Stop:       $local_fs $syslog
# Default-Start:       2 3 4 5
# Default-Stop:        0 1 6
# Short-Description:   Starts bluetooth daemons
### END INIT INFO

. /lib/lsb/init-functions

DESC=bluetoothd
DAEMON=/usr/libexec/bluetooth/bluetoothd
#SSD_OPTIONS="--oknodo --quiet --exec $DAEMON --plugin=a2dp"
SSD_OPTIONS="--oknodo --quiet --exec $DAEMON" #Change to this if you want media control using DBus at the expense of volume control 
HCI=hci0

case "${1}" in
    start)
       log_daemon_msg "Starting Bluetooth daemon bluetoothd..."
       start-stop-daemon --start --background $SSD_OPTIONS
       log_progress_msg "${DAEMON}"

       hciconfig $HCI up > /dev/null 2>&1
       log_end_msg 0
       ;;

    stop)
        log_daemon_msg "Stopping Bluetooth daemon bluetoothd..."
        start-stop-daemon --stop $SSD_OPTIONS
        log_progress_msg "${DAEMON}"
        log_end_msg 0
       ;;

    restart)
       ${0} stop
       sleep 1
       ${0} start
       ;;

    status)
        status_of_proc "$DAEMON" "$DESC" && exit 0 || exit $?
       ;;

    *)
         echo "Usage: ${0} {start|stop|restart|status}"
         exit 1
       ;;
esac

exit 0

File: /etc/init.d/bluetooth-agent

#!/bin/sh -e
### BEGIN INIT INFO
# Provides: bluetooth-agent
# Required-Start: $remote_fs $syslog bluetooth pulseaudio
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Makes Bluetooth discoverable and connectable to 0000
# Description: Start Bluetooth-Agent at boot time.
### END INIT INFO
#! /bin/sh
# /etc/init.d/bluetooth-agent
USER=root
HOME=/root
export USER HOME
case "$1" in
    start)
        echo "setting bluetooth discoverable"
        sleep 1
        sudo hciconfig hci0 piscan
        start-stop-daemon -S -x /usr/local/bin/simple-agent.autotrust &
        echo "bluetooth-agent started"
        ;;
    stop)
        echo "Stopping bluetooth-agent"
        start-stop-daemon -K -x /usr/local/bin/simple-agent.autotrust
        ;;
    *)
        echo "Usage: /etc/init.d/bluetooth-agent {start|stop}"
        exit 1
        ;;
esac
exit 0

File: /etc/init.d/pulseaudio

#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          pulseaudio esound
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      udev network-manager
# Should-Stop:       udev network-manager
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start the PulseAudio sound server
# Description:       System mode startup script for
#                    the PulseAudio sound server.
### END INIT INFO

DAEMON=/usr/local/bin/pulseaudio
PIDDIR=/var/run/pulse
PIDFILE=$PIDDIR/pid
DAEMONUSER=pulse
PATH=/sbin:/bin:/usr/sbin:/usr/bin

test -x $DAEMON || exit 0

. /lib/lsb/init-functions

pulseaudio_start () {
        log_daemon_msg "Starting system PulseAudio Daemon"
        if [ ! -d $PIDDIR ]; then
                mkdir -p $PIDDIR
                chown $DAEMONUSER:$DAEMONUSER $PIDDIR
        fi
        start-stop-daemon -x $DAEMON -p $PIDFILE --start -- --system --disallow-exit --disallow-module-loading=0 --daemonize --log-target=syslog --high-priority
        status=$?
        if [ -e /var/run/pulse/.esd_auth ]; then
                chown pulse:pulse-access /var/run/pulse/.esd_auth
                chmod 640 /var/run/pulse/.esd_auth
        fi
        if [ -e /var/run/pulse/.pulse-cookie ]; then
                chown pulse:pulse-access /var/run/pulse/.pulse-cookie
                chmod 640 /var/run/pulse/.pulse-cookie
        fi
        log_end_msg ${status}
}

pulseaudio_stop () {
        log_daemon_msg "Stopping system PulseAudio Daemon"
        start-stop-daemon -p $PIDFILE --stop --retry 5 || echo -n "...which is not running"
        log_end_msg $?
}

case "$1" in
        start|stop)
                pulseaudio_${1}
                ;;
        restart|reload|force-reload)
                if [ -s $PIDFILE ] && kill -0 $(cat $PIDFILE) >/dev/null 2>&1; then
                        pulseaudio_stop
                        pulseaudio_start
                fi
                ;;
        force-stop)
                pulseaudio_stop
                killall pulseaudio || true
                sleep 2
                killall -9 pulseaudio || true
                ;;
        status)
                status_of_proc -p $PIDFILE "$DAEMON" "system-wide PulseAudio" && exit 0 || exit $?
                ;;
        *)
                echo "Usage: /etc/init.d/pulseaudio {start|stop|force-stop|restart|reload|force-reload|status}"
                exit 1
                ;;
esac

exit 0
BaReinhard commented 6 years ago

with the new installation what is the output of

pulseaudio --version
korte84 commented 6 years ago

5.0

BaReinhard commented 6 years ago

Ok, so that is the issue, your system should be seeing pulseaudio 6.0, this means it didn't get compiled for one reason or another. So for some reason it is not getting through bt_pa_config.sh .

I would try running ./bt_pa_config.sh as a non-root user, pi. No need for sudo, the command should look like:

./bt_pa_config.sh

of course youll need to be in the super-simple-raspberry-pi-audio-receiver-install directory first.

Let me know what the output is and if any errors come up.

korte84 commented 6 years ago

Ok I ran it and I get press enter to the 2 questions! I have one error at the end

configure: error: Unable to find libltdl version 2. Makes sure you have libtool 2.4 or later installed.

and this one

configure.ac:106: error: required file 'build-aux/config.rpath' not found


pi@raspberrypi:~/Super-Simple-Raspberry-Pi-Audio-Receiver-Install $ ./bt_pa_config.sh
Bluetooth device name: AMPLI_HK
mkdir: cannot create directory ‘/home/pi/pyScripts’: File exists
===> Executing: sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py
===> Executing: sudo chmod +x /usr/local/bin/volume-watcher.py
===> Executing: sudo cp lib/systemd/system/volume-watcher.service /lib/systemd/system/volume-watcher.service
===> Executing: sudo systemctl enable volume-watcher
===> Executing: cd .
===> Executing: sudo cp /tmp/machine-info /etc
===> Executing: sudo cp init.d/pulseaudio /etc/init.d
===> Executing: sudo chmod +x /etc/init.d/pulseaudio
===> Executing: sudo update-rc.d pulseaudio defaults
===> Executing: sudo cp init.d/bluetooth /etc/init.d
===> Executing: sudo chmod +x /etc/init.d/bluetooth
===> Executing: sudo update-rc.d bluetooth defaults
===> Executing: sudo cp init.d/bluetooth-agent /etc/init.d
===> Executing: sudo chmod +x /etc/init.d/bluetooth-agent
===> Executing: sudo update-rc.d bluetooth-agent defaults
===> Executing: sudo cp usr/local/bin/bluez-udev /usr/local/bin
===> Executing: sudo chmod 755 /usr/local/bin/bluez-udev
===> Executing: sudo cp usr/local/bin/simple-agent.autotrust /usr/local/bin
===> Executing: sudo chmod 755 /usr/local/bin/simple-agent.autotrust
===> Executing: sudo cp usr/local/bin/say.sh /usr/local/bin
===> Executing: sudo chmod 755 /usr/local/bin/say.sh
===> Executing: sudo cp usr/local/bin/bluezutils.py /usr/local/bin
===> Executing: sudo cp etc/pulse/daemon.conf /etc/pulse
./bt_pa_config.sh: line 66: /boot/config.txt: Permission denied
patching file /etc/udev/rules.d/99-com.rules
Hunk #1 succeeded at 1 with fuzz 1.
===> Executing: sudo chmod 644 /etc/udev/rules.d/99-com.rules
patching file /etc/bluetooth/main.conf
Hunk #1 succeeded at 7 with fuzz 1.
Hunk #2 succeeded at 12 with fuzz 1.
Hunk #3 FAILED at 17.
1 out of 3 hunks FAILED -- saving rejects to file /etc/bluetooth/main.conf.rej
patching file /etc/pulse/system.pa
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file /etc/pulse/system.pa.rej
mkdir: cannot create directory ‘/etc/pulsebackup’: File exists
fatal: destination path 'pulseaudio' already exists and is not an empty directory.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libsndfile1-dev' instead of 'libsndfile-dev'
intltool is already the newest version.
libavahi-client-dev is already the newest version.
libcap-dev is already the newest version.
libglib2.0-dev is already the newest version.
libjson0-dev is already the newest version.
libsamplerate0-dev is already the newest version.
libsbc-dev is already the newest version.
libsndfile1-dev is already the newest version.
libspeexdsp-dev is already the newest version.
libssl-dev is already the newest version.
libtdb-dev is already the newest version.
libtool is already the newest version.
libasound2-dev is already the newest version.
libbluetooth-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
fatal: destination path 'json-c' already exists and is not an empty directory.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal 
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
Multi-threaded support disabled. Use --enable-threading to enable.
RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking for inttypes.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for __thread support... yes
checking for vprintf... yes
checking for _doprnt... no
checking for working memcmp... yes
checking for realloc... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for vasprintf... yes
checking for open... yes
checking for vsyslog... yes
checking for strncasecmp... yes
checking for setlocale... yes
checking whether INFINITY is declared... yes
checking whether nan is declared... yes
checking whether isnan is declared... yes
checking whether isinf is declared... yes
checking whether _isnan is declared... no
checking whether _finite is declared... no
checking for GCC atomic builtins... yes
checking for uselocale... yes
checking if .gnu.warning accepts long strings... no
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for -Bsymbolic-functions linker flag... yes
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -Werror... yes
checking whether C compiler accepts -Wcast-qual... yes
checking whether C compiler accepts -Wno-error=deprecated-declarations... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Wwrite-string... no
checking whether C compiler accepts -Wno-unused-parameter... yes
checking whether C compiler accepts -D_GNU_SOURCE... yes
checking whether C compiler accepts -D_REENTRANT... yes
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking size of size_t... 4
checking size of int64_t... 8
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating json-c.pc
config.status: creating tests/Makefile
config.status: creating json-c-uninstalled.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: creating json_config.h
config.status: json_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-recursive
make[1]: Entering directory '/home/pi/json-c'
Making all in .
make[2]: Entering directory '/home/pi/json-c'
make[2]: Leaving directory '/home/pi/json-c'
Making all in tests
make[2]: Entering directory '/home/pi/json-c/tests'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/pi/json-c/tests'
make[1]: Leaving directory '/home/pi/json-c'
Making install in .
make[1]: Entering directory '/home/pi/json-c'
make[2]: Entering directory '/home/pi/json-c'
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libjson-c.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libjson-c.so.3.0.1 /usr/local/lib/libjson-c.so.3.0.1
libtool: install: (cd /usr/local/lib && { ln -s -f libjson-c.so.3.0.1 libjson-c.so.3 || { rm -f libjson-c.so.3 && ln -s libjson-c.so.3.0.1 libjson-c.so.3; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libjson-c.so.3.0.1 libjson-c.so || { rm -f libjson-c.so && ln -s libjson-c.so.3.0.1 libjson-c.so; }; })
libtool: install: /usr/bin/install -c .libs/libjson-c.lai /usr/local/lib/libjson-c.la
libtool: install: /usr/bin/install -c .libs/libjson-c.a /usr/local/lib/libjson-c.a
libtool: install: chmod 644 /usr/local/lib/libjson-c.a
libtool: install: ranlib /usr/local/lib/libjson-c.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/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.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/include/json-c'
 /usr/bin/install -c -m 644 arraylist.h debug.h json.h json_c_version.h json_config.h json_inttypes.h json_object.h json_object_iterator.h json_pointer.h json_tokener.h json_util.h json_visit.h linkhash.h printbuf.h '/usr/local/include/json-c'
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 json-c.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/home/pi/json-c'
make[1]: Leaving directory '/home/pi/json-c'
Making install in tests
make[1]: Entering directory '/home/pi/json-c/tests'
make[2]: Entering directory '/home/pi/json-c/tests'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/pi/json-c/tests'
make[1]: Leaving directory '/home/pi/json-c/tests'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
autoconf is already the newest version.
autogen is already the newest version.
automake is already the newest version.
build-essential is already the newest version.
libflac-dev is already the newest version.
libogg-dev is already the newest version.
libtool is already the newest version.
libvorbis-dev is already the newest version.
pkg-config is already the newest version.
python is already the newest version.
libasound2-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
fatal: destination path 'libsndfile' already exists and is not an empty directory.
checking for autogen ... yes
checking for autoconf ... yes
checking for automake ... yes
checking for libtool ... libtoolize
checking for pkg-config ... yes
checking for python ... yes
Generating configuration files for libsndfile, please wait ... 
  aclocal 
  libtoolize --automake --force
  autoheader
  automake --add-missing 
  autoconf
checking whether configure should try to set CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS... yes
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for C compiler vendor... gnu
checking for a sed that does not truncate output... /bin/sed
checking for C compiler version... 4.9.2
checking for C++ compiler vendor... gnu
checking for C++ compiler version... 4.9.2
checking for a sed that does not truncate output... (cached) /bin/sed
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for windres... no
checking whether ln -s works... yes
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for autogen... yes
checking for wine... no
checking for xcode-select... no
checking for ANSI C header files... (cached) yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether S_IRGRP is declared... yes
checking size of wchar_t... 4
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of float... 4
checking size of double... 8
checking size of void*... 4
checking size of size_t... 4
checking size of int64_t... 8
checking size of long long... 8
checking size of off_t... 4
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking size of off_t... 8
checking for ssize_t... yes
checking whether byte ordering is bigendian... no
checking for malloc... yes
checking for calloc... yes
checking for realloc... yes
checking for free... yes
checking for open... yes
checking for read... yes
checking for write... yes
checking for lseek... yes
checking for lseek64... yes
checking for fstat... yes
checking for fstat64... yes
checking for ftruncate... yes
checking for fsync... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for gmtime... yes
checking for gmtime_r... yes
checking for localtime... yes
checking for localtime_r... yes
checking for gettimeofday... yes
checking for mmap... yes
checking for getpagesize... yes
checking for setlocale... yes
checking for pipe... yes
checking for waitpid... yes
checking for library containing floor... -lm
checking for floor... yes
checking for ceil... yes
checking for fmod... yes
checking for lrint... yes
checking for lrintf... yes
checking for octave... no
checking for mkoctfile... no
checking for octave-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for flac >= 1.3.1 ... no
checking for ogg >= 1.1.3 ... yes
checking for vorbis >= 1.2.3 ... yes
checking for vorbisenc >= 1.2.3 ... yes

configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
configure: WARNING: *** libvorbis) is either missing (possibly only the development
configure: WARNING: *** headers) or is of an unsupported version.
configure: WARNING: ***
configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
configure: WARNING: *** are an all or nothing affair.

checking for sqlite3 >= 3.2 ... no
checking processor clipping capabilities... both
checking for ALSA... yes
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking whether C compiler accepts -O2... yes
checking whether C compiler accepts -pipe... yes
checking whether C++ compiler accepts -O2... yes
checking whether C++ compiler accepts -pipe... yes
checking whether the linker accepts -Wl,-O1... yes
checking whether the linker accepts -Wl,--as-needed... yes
checking whether the linker accepts -Wl,--no-undefined... yes
checking whether the linker accepts -Wl,--gc-sections... yes
checking whether C compiler accepts -Werror... no
checking whether C++ compiler accepts -Werror... no
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Wpointer-arith... yes
checking whether C compiler accepts -Wcast-align... yes
checking whether C compiler accepts -Wcast-qual... yes
checking whether C compiler accepts -Wshadow... yes
checking whether C compiler accepts -Wwrite-strings... yes
checking whether C compiler accepts -Wundef... yes
checking whether C compiler accepts -Wuninitialized... yes
checking whether C compiler accepts -Winit-self... yes
checking whether C compiler accepts -Wdeclaration-after-statement... yes
checking whether C compiler accepts -Wvla... yes
checking whether C compiler accepts -Wbad-function-cast... yes
checking whether C compiler accepts -Wnested-externs... yes
checking whether C compiler accepts -Wstrict-prototypes... yes
checking whether C compiler accepts -Wmissing-prototypes... yes
checking whether C compiler accepts -Wmissing-declarations... yes
checking whether C compiler accepts -Waggregate-return... yes
checking whether C++ compiler accepts -Wall... yes
checking whether C++ compiler accepts -Wextra... yes
checking whether C++ compiler accepts -Wpointer-arith... yes
checking whether C++ compiler accepts -Wcast-align... yes
checking whether C++ compiler accepts -Wcast-qual... yes
checking whether C++ compiler accepts -Wshadow... yes
checking whether C++ compiler accepts -Wwrite-strings... yes
checking whether C++ compiler accepts -Wundef... yes
checking whether C++ compiler accepts -Wuninitialized... yes
checking whether C++ compiler accepts -Winit-self... yes
checking whether C++ compiler accepts -Wctor-dtor-privacy... yes
checking whether C++ compiler accepts -Wnon-virtual-dtor... yes
checking whether C++ compiler accepts -Woverloaded-virtual... yes
checking whether C++ compiler accepts -Wreorder... yes
checking whether C++ compiler accepts -Wsign-promo... yes
checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Octave/Makefile
config.status: creating src/version-metadata.rc
config.status: creating src/sndfile.h
config.status: creating tests/test_wrapper.sh
config.status: creating tests/pedantic-header-test.sh
config.status: creating doc/libsndfile.css
config.status: creating libsndfile.spec
config.status: creating sndfile.pc
config.status: creating Scripts/build-test-tarball.mk
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-

  Configuration summary :

    libsndfile version : .................. 1.0.29pre1

    Host CPU : ............................ armv7l
    Host Vendor : ......................... unknown
    Host OS : ............................. linux-gnueabihf

    CFLAGS : ..............................  -O2 -pipe -Wall -Wextra -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wundef -Wuninitialized -Winit-self -Wdeclaration-after-statement -Wvla -Wbad-function-cast -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Waggregate-return 
    CXXFLAGS : ............................  -O2 -pipe -Wall -Wextra -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wundef -Wuninitialized -Winit-self -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo
    CPPFLAGS : ............................  -D_FORTIFY_SOURCE=2
    LDFLAGS : .............................  -Wl,-O1 -Wl,--as-needed -Wl,--no-undefined -Wl,--gc-sections

    Experimental code : ................... no
    Using ALSA in example programs : ...... auto
    External FLAC/Ogg/Vorbis : ............ no

  Tools :

    C Compiler Vendor is : ................ gnu (4.9.2)
    CXX Compiler Vendor is : .............. gnu (4.9.2)

    Sanitizer enabled : ................... no
    Stack smash protection : .............. no

  Installation directories :

    Library directory : ................... /usr/local/lib
    Program directory : ................... /usr/local/bin
    Pkgconfig directory : ................. /usr/local/lib/pkgconfig
    HTML docs directory : ................. /usr/local/share/doc/libsndfile

Compiling some other packages against libsndfile may require
the addition of '/usr/local/lib/pkgconfig' to the
PKG_CONFIG_PATH environment variable.

make  all-recursive
make[1]: Entering directory '/home/pi/libsndfile'
make[2]: Entering directory '/home/pi/libsndfile'
  CC       src/src_libsndfile_la-sndfile.lo
  CC       src/src_libsndfile_la-aiff.lo
  CC       src/src_libsndfile_la-au.lo
  CC       src/src_libsndfile_la-avr.lo
  CC       src/src_libsndfile_la-caf.lo
  CC       src/src_libsndfile_la-dwd.lo
  CC       src/src_libsndfile_la-flac.lo
  CC       src/src_libsndfile_la-g72x.lo
  CC       src/src_libsndfile_la-htk.lo
  CC       src/src_libsndfile_la-ircam.lo
  CC       src/src_libsndfile_la-macos.lo
  CC       src/src_libsndfile_la-mat4.lo
  CC       src/src_libsndfile_la-mat5.lo
  CC       src/src_libsndfile_la-nist.lo
  CC       src/src_libsndfile_la-paf.lo
  CC       src/src_libsndfile_la-pvf.lo
  CC       src/src_libsndfile_la-raw.lo
  CC       src/src_libsndfile_la-rx2.lo
  CC       src/src_libsndfile_la-sd2.lo
  CC       src/src_libsndfile_la-sds.lo
  CC       src/src_libsndfile_la-svx.lo
  CC       src/src_libsndfile_la-txw.lo
  CC       src/src_libsndfile_la-voc.lo
  CC       src/src_libsndfile_la-wve.lo
  CC       src/src_libsndfile_la-w64.lo
  CC       src/src_libsndfile_la-wavlike.lo
  CC       src/src_libsndfile_la-wav.lo
  CC       src/src_libsndfile_la-xi.lo
  CC       src/src_libsndfile_la-mpc2k.lo
  CC       src/src_libsndfile_la-rf64.lo
  CC       src/src_libsndfile_la-ogg_vorbis.lo
  CC       src/src_libsndfile_la-ogg_speex.lo
  CC       src/src_libsndfile_la-ogg_pcm.lo
  CC       src/src_libsndfile_la-ogg_opus.lo
  CC       src/ALAC/ag_dec.lo
  CC       src/ALAC/ag_enc.lo
  CC       src/ALAC/matrix_dec.lo
  CC       src/ALAC/matrix_enc.lo
  CC       src/ALAC/alac_decoder.lo
  CC       src/ALAC/alac_encoder.lo
  CCLD     src/ALAC/libalac.la
  CC       src/src_libcommon_la-common.lo
  CC       src/src_libcommon_la-file_io.lo
  CC       src/src_libcommon_la-command.lo
  CC       src/src_libcommon_la-pcm.lo
  CC       src/src_libcommon_la-ulaw.lo
  CC       src/src_libcommon_la-alaw.lo
  CC       src/src_libcommon_la-float32.lo
  CC       src/src_libcommon_la-double64.lo
  CC       src/src_libcommon_la-ima_adpcm.lo
  CC       src/src_libcommon_la-ms_adpcm.lo
  CC       src/src_libcommon_la-gsm610.lo
  CC       src/src_libcommon_la-dwvw.lo
  CC       src/src_libcommon_la-vox_adpcm.lo
  CC       src/src_libcommon_la-interleave.lo
  CC       src/src_libcommon_la-strings.lo
  CC       src/src_libcommon_la-dither.lo
  CC       src/src_libcommon_la-cart.lo
  CC       src/src_libcommon_la-broadcast.lo
  CC       src/src_libcommon_la-audio_detect.lo
  CC       src/src_libcommon_la-ima_oki_adpcm.lo
  CC       src/src_libcommon_la-alac.lo
  CC       src/src_libcommon_la-chunk.lo
  CC       src/src_libcommon_la-ogg.lo
  CC       src/src_libcommon_la-chanmap.lo
  CC       src/src_libcommon_la-windows.lo
  CC       src/src_libcommon_la-id3.lo
  CCLD     src/libcommon.la
  CCLD     src/libsndfile.la
  CC       programs/sndfile-info.o
  CC       programs/common.o
  CCLD     programs/sndfile-info
  CC       programs/sndfile-play.o
  CCLD     programs/sndfile-play
  CC       programs/sndfile-convert.o
  CCLD     programs/sndfile-convert
  CC       programs/sndfile-cmp.o
  CCLD     programs/sndfile-cmp
  CC       programs/sndfile-metadata-set.o
  CCLD     programs/sndfile-metadata-set
  CC       programs/sndfile-metadata-get.o
  CCLD     programs/sndfile-metadata-get
  CC       programs/sndfile-interleave.o
  CCLD     programs/sndfile-interleave
  CC       programs/sndfile-deinterleave.o
  CCLD     programs/sndfile-deinterleave
  CC       programs/sndfile-concat.o
  CCLD     programs/sndfile-concat
  CC       programs/sndfile-salvage.o
  CCLD     programs/sndfile-salvage
make[2]: Leaving directory '/home/pi/libsndfile'
make[1]: Leaving directory '/home/pi/libsndfile'
make  install-recursive
make[1]: Entering directory '/home/pi/libsndfile'
make[2]: Entering directory '/home/pi/libsndfile'
make[3]: Entering directory '/home/pi/libsndfile'
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   src/libsndfile.la '/usr/local/lib'
libtool: install: /usr/bin/install -c src/.libs/libsndfile.so.1.0.29 /usr/local/lib/libsndfile.so.1.0.29
libtool: install: (cd /usr/local/lib && { ln -s -f libsndfile.so.1.0.29 libsndfile.so.1 || { rm -f libsndfile.so.1 && ln -s libsndfile.so.1.0.29 libsndfile.so.1; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libsndfile.so.1.0.29 libsndfile.so || { rm -f libsndfile.so && ln -s libsndfile.so.1.0.29 libsndfile.so; }; })
libtool: install: /usr/bin/install -c src/.libs/libsndfile.lai /usr/local/lib/libsndfile.la
libtool: install: /usr/bin/install -c src/.libs/libsndfile.a /usr/local/lib/libsndfile.a
libtool: install: chmod 644 /usr/local/lib/libsndfile.a
libtool: install: ranlib /usr/local/lib/libsndfile.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/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.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c programs/sndfile-info programs/sndfile-play programs/sndfile-convert programs/sndfile-cmp programs/sndfile-metadata-set programs/sndfile-metadata-get programs/sndfile-interleave programs/sndfile-deinterleave programs/sndfile-concat programs/sndfile-salvage '/usr/local/bin'
libtool: install: /usr/bin/install -c programs/.libs/sndfile-info /usr/local/bin/sndfile-info
libtool: install: /usr/bin/install -c programs/.libs/sndfile-play /usr/local/bin/sndfile-play
libtool: install: /usr/bin/install -c programs/.libs/sndfile-convert /usr/local/bin/sndfile-convert
libtool: install: /usr/bin/install -c programs/.libs/sndfile-cmp /usr/local/bin/sndfile-cmp
libtool: install: /usr/bin/install -c programs/.libs/sndfile-metadata-set /usr/local/bin/sndfile-metadata-set
libtool: install: /usr/bin/install -c programs/.libs/sndfile-metadata-get /usr/local/bin/sndfile-metadata-get
libtool: install: /usr/bin/install -c programs/.libs/sndfile-interleave /usr/local/bin/sndfile-interleave
libtool: install: /usr/bin/install -c programs/.libs/sndfile-deinterleave /usr/local/bin/sndfile-deinterleave
libtool: install: /usr/bin/install -c programs/.libs/sndfile-concat /usr/local/bin/sndfile-concat
libtool: install: /usr/bin/install -c programs/.libs/sndfile-salvage /usr/local/bin/sndfile-salvage
 /bin/mkdir -p '/usr/local/share/doc/libsndfile'
 /usr/bin/install -c -m 644 doc/index.html doc/libsndfile.jpg doc/libsndfile.css doc/print.css doc/api.html doc/command.html doc/bugs.html doc/sndfile_info.html doc/new_file_type.HOWTO doc/win32.html doc/FAQ.html doc/lists.html doc/embedded_files.html doc/octave.html doc/tutorial.html '/usr/local/share/doc/libsndfile'
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 src/sndfile.hh '/usr/local/include'
 /bin/mkdir -p '/usr/local/share/man/man1'
 /usr/bin/install -c -m 644 man/sndfile-info.1 man/sndfile-play.1 man/sndfile-convert.1 man/sndfile-cmp.1 man/sndfile-metadata-get.1 man/sndfile-metadata-set.1 man/sndfile-concat.1 man/sndfile-interleave.1 man/sndfile-deinterleave.1 man/sndfile-salvage.1 '/usr/local/share/man/man1'
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 src/sndfile.h '/usr/local/include'
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 sndfile.pc '/usr/local/lib/pkgconfig'
make[3]: Leaving directory '/home/pi/libsndfile'
make[2]: Leaving directory '/home/pi/libsndfile'
make[1]: Leaving directory '/home/pi/libsndfile'
./bootstrap.sh: line 49: autopoint: command not found
autoreconf: Entering directory `.'
autoreconf: running: intltoolize --automake --copy --force
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:106: error: required file 'build-aux/config.rpath' not found
autoreconf: automake failed with exit status: 1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking for stow... no
checking whether make supports nested variables... (cached) yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gm4... no
checking for m4... m4
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.20.2
checking for XML::Parser... ok
checking for a sed that does not truncate output... /bin/sed
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... /bin/bash: build-aux/config.rpath: No such file or directory
done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking host operating system... linux
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -W... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -pipe... yes
checking whether C compiler accepts -Wno-long-long... yes
checking whether C compiler accepts -Wno-overlength-strings... yes
checking whether C compiler accepts -Wunsafe-loop-optimizations... yes
checking whether C compiler accepts -Wundef... yes
checking whether C compiler accepts -Wformat=2... yes
checking whether C compiler accepts -Wlogical-op... yes
checking whether C compiler accepts -Wsign-compare... yes
checking whether C compiler accepts -Wformat-security... yes
checking whether C compiler accepts -Wmissing-include-dirs... yes
checking whether C compiler accepts -Wformat-nonliteral... yes
checking whether C compiler accepts -Wold-style-definition... no
checking whether C compiler accepts -Wpointer-arith... yes
checking whether C compiler accepts -Winit-self... yes
checking whether C compiler accepts -Wdeclaration-after-statement... yes
checking whether C compiler accepts -Wfloat-equal... yes
checking whether C compiler accepts -Wmissing-prototypes... yes
checking whether C compiler accepts -Wstrict-prototypes... no
checking whether C compiler accepts -Wredundant-decls... yes
checking whether C compiler accepts -Wmissing-declarations... yes
checking whether C compiler accepts -Wmissing-noreturn... yes
checking whether C compiler accepts -Wshadow... yes
checking whether C compiler accepts -Wendif-labels... yes
checking whether C compiler accepts -Wcast-align... yes
checking whether C compiler accepts -Wstrict-aliasing... yes
checking whether C compiler accepts -Wwrite-strings... yes
checking whether C compiler accepts -Wno-unused-parameter... yes
checking whether C compiler accepts -ffast-math... yes
checking whether C compiler accepts -fno-common... yes
checking whether C compiler accepts -fdiagnostics-show-option... yes
checking whether C compiler accepts -fdiagnostics-color=auto... yes
checking whether the linker accepts "-Wl,-version-script=./src/map-file"... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether the linker accepts -Wl,-z,nodelete... yes
checking whether the linker accepts -Wl,--no-undefined... yes
checking whether gcc -std=gnu99 knows __sync_bool_compare_and_swap()... yes
checking support for required armv6 instructions... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
configure: error: Unable to find libltdl version 2. Makes sure you have libtool 2.4 or later installed.
make: *** No rule to make target 'clean'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
totti2 commented 6 years ago

1st: thx for the effort! I'd love to get this running again!

I didn't skip the patches ./bt_pa_config.sh ... patching file /etc/bluetooth/main.conf Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] y Hunk #1 succeeded at 7 with fuzz 1. Hunk #2 succeeded at 12 with fuzz 1. Hunk #3 FAILED at 17. 1 out of 3 hunks FAILED -- saving rejects to file /etc/bluetooth/main.conf.rej patching file /etc/pulse/system.pa Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] y Hunk #1 FAILED at 23. Hunk #2 succeeded at 57 with fuzz 1. 1 out of 2 hunks FAILED -- saving rejects to file /etc/pulse/system.pa.rej

pulseaudio gets installed and is version 6.0 but still no pairing

BaReinhard commented 6 years ago

Just to be sure, you have rebooted afterwards?

Can you view your raspberry pi from the Bluetooth menu on your device?

BaReinhard commented 6 years ago

Additionally, any missing dependencies will need to be added either manually or from apt-get.

What disk image is being used? Raspbian Jessie or stretch? And lite or with pixel?

totti2 commented 6 years ago

my setup: rpi3, fresh install of 2017-07-05-raspbian-jessie.img, no snd-card, no additional bluetooth-dongle

pairing works for me with these install-options

Do you want to install SnapCast? (y/n): n
Do you want AirPlay Enabled? (y/n) : y
Do you want Bluetooth A2DP Enabled? (y/n) : y
Do you want to setup as an Access Point? (Necessary for AirPlay, in location without a Wireless Network) (y/n) : n
Do you want Kodi installed? (y/n) : n
Do you want to use infrared remotes? (y/n) : n
Do you want to use a Sound Card? (y/n) : n
Do you want to setup device as a UPnP Renderer? (y/n) : n
Do you want all the Devices to use the same name? (y/n) : y
Device name: MultiPi
Do you want to use an AirPlay password? (y/n) : n

before, I was insisting on SnapCast. the issue might be lying there. I'll try jessie lite without SnapCast, maybe we've found the culprit

totti2 commented 6 years ago

I flashed a jessie lite, same setup, same install options: pairing works very low volume though, but that's due to the known issues to the PI's onboard sound-card, I assume.

I will reflash it with the snapcast-server option I have an Android Phone

BaReinhard commented 6 years ago

I'm assuming that may be correct. Ill give that a shot right now as well and see what the issue may be.

totti2 commented 6 years ago

no issue with same options as given above plus snapserver option. last test would be snapserver+snapclient.

btw: after my first comment in this thread i reflashed my sd-card...which I forgot to mention adapted my comment accordingly

BaReinhard commented 6 years ago

thanks for the heads up. I am currently testing the snapserver + snapclient.

BaReinhard commented 6 years ago

found the issue with SAP drivers, it looks like python-dbus was missing from the dependencies,

fix this via:

sudo apt-get install python-dbus

korte84 commented 6 years ago

Yes I rebooted every time i did any modification. The operating sys is Jessie lite (updated to the last version) + hifiberry dac standard

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

then i'm gonna install dependencies. Is kodi mandatory for your package ?

korte84 commented 6 years ago

what's this?

===> Executing: sudo cp etc/pulse/daemon.conf /etc/pulse
./bt_pa_config.sh: line 66: /boot/config.txt: Permission denied
patching file /etc/udev/rules.d/99-com.rules
Hunk #1 succeeded at 1 with fuzz 1.
===> Executing: sudo chmod 644 /etc/udev/rules.d/99-com.rules
patching file /etc/bluetooth/main.conf
Hunk #1 succeeded at 7 with fuzz 1.
Hunk #2 succeeded at 12 with fuzz 1.
Hunk #3 FAILED at 17.
1 out of 3 hunks FAILED -- saving rejects to file /etc/bluetooth/main.conf.rej
patching file /etc/pulse/system.pa
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
korte84 commented 6 years ago
configure: error: Unable to find libltdl version 2. Makes sure you have libtool 2.4 or later installed.
make: *** No rule to make target 'clean'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

i have libltdl 7 installed

BaReinhard commented 6 years ago

@korte84 first error was that it was unable to patch system.pa, you can manually add the lines in /etc/pulse/system.pa.rej to /etc/pulse/system.pa

And no kodi isn’t necessary. I would do a custom install and say no to kodi if you don’t want it. Or simply remove it sudo apt-get purge kodi (not sure that works, or if you need to use remove in place of purge)

It looks like there are missing dependencies for libtool. I haven’t ever seen that so I would try installing sudo apt-get install libtool

totti2 commented 6 years ago

Pairing possible here with snapserver and snapclient enabled This is what I did after flashing the sd-card with 2017-07-05-raspbian-jessie-lite

pi@multipi:~ $ history
    1  sudo raspi-config 
    2  sudo apt-get update 
    3  sudo apt-get upgrade
    4  sudo apt-get install git
    5  git clone https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install.git
    6  cd Super-Simple-Raspberry-Pi-Audio-Receiver-Install/
    7  sudo ./install.sh 

in raspi-config I just did the usual: local time, memory split, expand filesystem @korte84 Did you change any boot option, like auto-login in cli

python-dbus was installed already sap drivers still not initializing with latest version of python-dbus

pi@multipi:~ $ sudo apt-get install python-dbus
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-dbus is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

pi@multipi:~ $ apt-cache policy python-dbus
python-dbus:
  Installed: 1.2.0-2+b1
  Candidate: 1.2.0-2+b1
  Version table:
 *** 1.2.0-2+b1 0
        500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
        100 /var/lib/dpkg/status

pi@multipi:~ $ sudo journalctl |grep bluet
Dec 16 18:26:11 multipi bluetoothd[645]: Bluetooth daemon 5.23
Dec 16 18:26:11 multipi bluetoothd[645]: Starting SDP server
Dec 16 18:26:11 multipi bluetooth-agent[648]: setting bluetooth discoverable
Dec 16 18:26:11 multipi bluetoothd[645]: Bluetooth management interface 1.14 initialized
Dec 16 18:26:11 multipi bluetoothd[645]: Sap driver initialization failed.
Dec 16 18:26:11 multipi bluetoothd[645]: sap-server: Operation not permitted (1)
Dec 16 18:26:11 multipi bluetoothd[645]: Endpoint registered: sender=:1.3 path=/MediaEndpoint/A2DPSource
Dec 16 18:26:11 multipi bluetoothd[645]: Endpoint registered: sender=:1.3 path=/MediaEndpoint/A2DPSink
Dec 16 18:26:12 multipi bluetooth-agent[648]: bluetooth-agent started
Dec 16 18:29:04 multipi bluetoothd[645]: GAP and GATT are mandatory
Dec 16 18:29:04 multipi bluetoothd[645]: gap-gatt-profile profile probe failed for 9C:00:99:88:88
BaReinhard commented 6 years ago

@totti2 Maybe what fixed it for me was,

sudo update-rc.d bluetooth enable

I went through and removed all system daemons and enabled them again. After that SAP drivers had no errors

korte84 commented 6 years ago

Q: there's a way to reset the bt? Some time it's discovered avec some old names...

@totti2 not at my knowledge @bareinhard I will reinstall libtool as I can access my pc.

Ps. I think I'm gonna buy a bt dongle

totti2 commented 6 years ago

I reflashed without Snapcast but with usb-soundcard No pairing

renamed /etc/asound.conf pairing and playing music through 3.5mm jack is the content of asound.conf in sound_card_install.sh correct?

@korte84 I am succesfully using this with and without an extra dongle. I use a LogiLink device. @BaReinhard how exactly did you reenable the daemons? what do you mean by

removed all system daemons and enabled them again.

doesn't that mean, that the order of initialization of daemons has to be reviewed?

btw: in sound_card_install.sh line 6 if [ -z "$SoundCard ] is there a " missing?

korte84 commented 6 years ago

@totti2 i used to 😢 then it stopped. Sometime I discovered the pi with old names that I used or with "raspberrypi " (never used) but never with the actual name. With airplay + hi-fi berry I don't have any kind of problem but I have to use my Mac...

totti2 commented 6 years ago

delete the list of paired devices in your phone and pc/laptop, turn off/on bluetooth on your phone and pc/laptop/mac, then reboot it... sounds desperate, but bluetooth is rather black magic than true science. anyways: fixed it for me...sometimes

korte84 commented 6 years ago

Ahahah I'll try! And let you know

korte84 commented 6 years ago

I added --noplugin=sap and my mac discovers the BT but it keep the connection for only 5sec.. /usr/lib/bluetooth/bluetoothd --noplugin=sap

pi@raspberrypi:~ $ sudo bluetoothctl 
[NEW] Controller XX:XX:XX:XX:XX:XX AMPLI_HK [default]
[NEW] Device XX:XX:XX:XX:XX:XX MacBook Pro
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent 
Default agent request successful
[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.NotReady 
[bluetooth]# quit
Agent unregistered
[DEL] Controller XX:XX:XX:XX:XX:XX AMPLI_HK [default]

any ideas???it's because of the --noplugin stuff?

totti2 commented 6 years ago

How does your /etc/asound.conf look like? After running sound_card_install.sh I had some troubles. Plus, when I disabled onboard sound in /Boot/config.txt by setting dtparam=audio=off pairing was broken again. Maybe dig deeper into alsa-configs?!

BaReinhard commented 6 years ago

take a look at /usr/local/bin/bluez-udev you may need to change the default sink.

If you disable onboard sound, you may need to change your /etc/asound.conf to use card 0 instead of card 1.

korte84 commented 6 years ago

@totti2 and @BaReinhard I disabled onboard card and changed asound.conf using 0 instead of 1 it looks like:

cm.pulse {
    type pulse
    card 0
}
ctl.pulse {
    type pulse
    card 0
}

pcm.!default {
    type hw
    card 0
}
ctl.!default {
    type hw
    card 0
}

audio works with airplay

@BaReinhard what is the default sink? bluez-udev.txt

BaReinhard commented 6 years ago

@korte84 I would try tracking down the bug this way.

sudo systemctl stop bluetooth-agent
simple-agent.autotrust&
# Connect your device, see if any errors occur.
sudo pactl list sinks
sudo pactl list sink-inputs

Let us know what you find.

korte84 commented 6 years ago

ok i can pair my android phone but I cannot connect.

pi@raspberrypi:~ $ simple-agent.autotrust&
[1] 19645
pi@raspberrypi:~ $ Agent registered

pi@raspberrypi:~ $ sudo pactl list sinks
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
pi@raspberrypi:~ $ sudo pactl list sink-inputs
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
pi@raspberrypi:~ $ 

at the blank line it waits and i have to press enter to continue ...

totti2 commented 6 years ago

He's talking about this but this going to work after successful pairing only.

Have a look at this . It's a bit more than you need, but works for me. and it's extendable.

BaReinhard commented 6 years ago

@korte84 The failure of pactl is more telling than anything. You will need to ensure that pulseaudio is running as a daemon. As of right now it is not started.

sudo update-rc.d pulseaudio remove
sudo systemctl disable pulseaudio
sudo update-rc.d pulseaudio defaults
sudo update-rc.d pulseaudio enable
sudo reboot

Before trying to connect log back in and see if pulseaudio is running sudo systemctl status pulseaudio Then try connecting connecting to the Pi, but before you do forget the PI on your device.

Note: for automated connection, pulseaudio needs to be running, otherwise there is nothing for bluez-udev to connect the sinks to.

korte84 commented 6 years ago
pi@raspberrypi:~ $ sudo update-rc.d pulseaudio remove
insserv: Service pulseaudio has to be enabled to start service bluetooth-agent
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
pi@raspberrypi:~ $ sudo systemctl disable pulseaudio
Synchronizing state for pulseaudio.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d pulseaudio defaults
Executing /usr/sbin/update-rc.d pulseaudio disable
insserv: warning: current start runlevel(s) (empty) of script `pulseaudio' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `pulseaudio' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `pulseaudio' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `pulseaudio' overrides LSB defaults (0 1 6).
sudo update-rc.d pulseaudio defaults
insserv: warning: current start runlevel(s) (empty) of script `pulseaudio' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `pulseaudio' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `pulseaudio' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `pulseaudio' overrides LSB defaults (0 1 6).
sudo systemctl status pulseaudio
● pulseaudio.service - LSB: Start the PulseAudio sound server
   Loaded: loaded (/etc/init.d/pulseaudio)
   Active: active (exited) since Mon 2017-12-18 22:52:22 UTC; 26s ago
  Process: 582 ExecStart=/etc/init.d/pulseaudio start (code=exited, status=0/SUCCESS)

Dec 18 22:52:22 raspberrypi systemd[1]: Starting LSB: Start the PulseAudio s....
Dec 18 22:52:22 raspberrypi systemd[1]: Started LSB: Start the PulseAudio so....
Hint: Some lines were ellipsized, use -l to show in full.
BaReinhard commented 6 years ago

Can you list the full log

sudo systemctl status pulseaudio -l

korte84 commented 6 years ago
pi@raspberrypi:~ $ sudo systemctl status pulseaudio -l
● pulseaudio.service - LSB: Start the PulseAudio sound server
   Loaded: loaded (/etc/init.d/pulseaudio)
   Active: active (exited) since Mon 2017-12-18 23:44:18 UTC; 11h ago
  Process: 587 ExecStart=/etc/init.d/pulseaudio start (code=exited, status=0/SUCCESS)

Dec 18 23:44:18 raspberrypi systemd[1]: Started LSB: Start the PulseAudio sound server.

i found out, doing a sudo systemctl that the ● bluetooth-agent.service loaded failed failed LSB: Makes Bluetooth discoverable and connectable to 0000 has failed everytime i reboot

totti2 commented 6 years ago

Please allow me a shot in the dark: Just to be sure: did you use a Raspbian Jessie?

Please don't get me wrong: Have you ever since reflashed the OS and tried from the beginning? Since it's working for me, it's probably the better/faster way.

korte84 commented 6 years ago

Don't worry ;) yes it's jessie

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

I think I'm gonna close this issue because I feel like I'm wasting your time. I really thank you for the super reactive support and for the time you spent to try to solve the problem If Ill be able to find the solution I will post here a message

Best regards

E

BaReinhard commented 6 years ago

@korte84

The bluetooth-agent is the issue here. Simply try the command

simple-agent.autotrust

If an error comes up list it here. Also if possible try sudo systemctl status bluetooth-agent -l

I’m assuming there is some missing dependency for the simple agent which causes the Bluetooth-agent to failed.

Inside the Bluetooth-agent daemon it’s either lines 20 or 21 causing the issue

https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/blob/master/init.d/bluetooth-agent#L20

I would try either one of those commands in your terminal to see which one is failing.