Skip to content

Instantly share code, notes, and snippets.

@Baael
Last active October 29, 2023 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Baael/0aed372ea5989b031a93 to your computer and use it in GitHub Desktop.
Save Baael/0aed372ea5989b031a93 to your computer and use it in GitHub Desktop.
Intel Edison troubles

Trouble: missing libdev.h and libdev0

Where: openzwave

Solution:

wget http://downloads.yoctoproject.org/releases/yocto/yocto-1.5/ipk/i586/libudev0_182-r7_i586.ipk
opkg install libudev0_182-r7_i586.ipk
wget http://downloads.yoctoproject.org/releases/yocto/yocto-1.5/ipk/i586/libudev-dev_182-r7_i586.ipk
opkg install libudev-dev_182-r7_i586.ipk

install mplayer on bluez5 with pulseaudio

not needed, but may cause troubles when not installed:

opkg install libavahi-client-dev  
opkg install systemd-dev  

reinstall pulseaudio to be sure that libpulse will exists:

opkg install mpg123  
opkg install pulseaudio --force-reinstall --force-overwrite  
opkg install pulseaudio-dev --force-reinstall --force-overwrite 

check if libpulse is installed:

pkg-config --libs --cflags libpulse  

install yasm

wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz 
tar xvf yasm-1.3.0.tar.gz
cd yasm-1.3.0  
sed -i 's#) ytasm.*#)#' Makefile.in && ./configure --prefix=/usr &&  make  
make install

install mplayer

wget ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.1.tar.xz
tar xvf MPlayer-1.1.1.tar.xz
cd MPlayer-1.1.1
./configure && make && make install

config mplayer to use pulseaudio by default:

echo "ao=pulse" > ~/.mplayer/config

add your bluetooth device and set it as default sink, since now it will be usable with mplayer.

#!/bin/bash
mac_addr="$1"
sink_addr=$(echo "$mac_addr" | tr ':' '_')
echo "Connecting device $mac_addr and sink $sink_addr"
rfkill unblock bluetooth
bluetoothctl <<< "disconnect $mac_addr"
bluetoothctl <<< "unblock $mac_addr"
sleep 2
while bluetoothctl <<< "info $mac_addr" | grep "Connected: no"; do
bluetoothctl <<< "connect $mac_addr"
echo "connecting $mac_addr ...."
sleep 10
done
sleep 12
pactl set-default-sink bluez_sink.58_51_00_00_01_BD

Socat

wget http://downloads.yoctoproject.org/releases/yocto/yocto-1.5/ipk/i586/socat_1.7.2.2-r0_i586.ipk
opkg install socat_1.7.2.2-r0_i586.ipk

timezone for Warsaw in edison

opkg install tzdata-europe
rm /etc/localtime
ln -s /usr/share/zoneinfo/Europe/Warsaw /etc/localtime
@matbee-eth
Copy link

You'll need coreutils to compile mplayer, else you'll see

make: install: Command not found
Makefile:910: recipe for target 'install-dirs' failed
make: *** [install-dirs] Error 127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment