Just managed to get IrMaster (including DecodeIR) to run on a
Raspberry Pi. The way I did it was:
1. Installing
Raspian wheezy with HW Floatingpoint support, following the instructions therein.
2. Installing openjdk 7 using the command
3. Installing the
binary distribution of IrMaster into /usr/local/irmaster
4. Making links
Code: Select all
cd /usr/loca/bin
ln .-s ../irmaster/irmaster.sh irmaster
ln -s ../irmaster/irmaster.sh irpmaster
5. Create directory for DecodeIR,
Code: Select all
cd /usr/loca/irmaster
mkdir Linux-arm
and copy
libDecodeIr.so for Raspberry Pi therein.
6. changing irmaster.sh like
Code: Select all
#!/bin/sh
# This wrapper is used to start both IrMaster and IrpMaster,
# depending on what name it is called.
# Intended for Unix-like systems (like Linux and MacOsX),
# may need to be locally adapted.
# When changing this file, it is a good idea to
# delete ~/.IrMaster.properties.xml
# Preferred Java VM
#JAVA=java
JAVA=/opt/jdk1.6.0_30/bin/java
# Where IrMaster is installed
#IRMASTERHOME=`dirname $0`
#IRMASTERHOME=`pwd`
IRMASTERHOME=/usr/local/irmaster
# Path to DecodeIR
# If the code below does not work, just set LIBRARY_PATH to the directory
# containing the shared lib to use, like in the commented-out example lines.
if [ `uname -m` = "x86_64" ] ; then
ARCH=amd64
else
ARCH=i386
fi
LIBRARY_PATH=${IRMASTERHOME}/`uname -s`-${ARCH}
#LIBRARY_PATH=/usr/local/irmaster/Linux-amd64
#LIBRARY_PATH=/usr/local/lib
if [ `basename $0` = "irpmaster" ] ; then
# Run IrpMaster from the current directory
${JAVA} -Djava.library.path=${LIBRARY_PATH} -jar ${IRMASTERHOME}/IrMaster.jar IrpMaster --config ${IRMASTERHOME}/IrpProtocols.ini "$@"
else
# cd to the installation director to get the relative path names in
# the default properties to fit, can be omitted if making file names
# in the properties absolute.
cd ${IRMASTERHOME}
${JAVA} -Djava.library.path=${LIBRARY_PATH} -jar ${IRMASTERHOME}/IrMaster.jar -p ${HOME}/.IrMaster.properties.xml "$@"
fi
... and everything it works... Can now be started by "irmaster" or "irpmaster" from the command line". Although "somewhat" slower.
May also work with other configuration, e.g. Debian wheezy without HW FP support and using Oracle's Java. I have not tried it.