- Using a FTDI adapter as an IR emitter
- Using a FTDI adapter as an IR emitter – 2
- Using a FTDI adapter as an IR emitter – 3
- Using a FTDI adapter as an IR emitter – 4
- Using a FTDI adapter as an IR emitter – 5
Now back to where we extracted LIRC:
cd lirc-0.9.4d ./configure
If all conditions are satisfied we get this at the end:
...
checking for FTDI... no
checking for FTDI... yes
...
Summary of selected options:
----------------------------------------
prefix: /usr/local
sysconfdir: ${prefix}/etc
x_progs:
host: armv5tejl-unknown-linux-gnueabi
host_os: linux-gnueabi
forkpty: -lutil
usb_libs -lusb -lusb-1.0
lockdir: /var/lock/lockdev
Conditionals:
BUILD_ALSA_SB_RC:no
BUILD_DSP:yes
BUILD_FTDI:yes
BUILD_HIDDEV:yes
BUILD_I2CUSER:yes
BUILD_LIBALSA:no
BUILD_LIBPORTAUDIO:no
BUILD_USB:yes
BUILD_XTOOLS:no
HAVE_DOXYGEN:no
HAVE_LIBUDEV:no
HAVE_MAN2HTML:no
HAVE_PYMOD_YAML:no
INSTALL_ETC:yes
NEED_PYTHON3:no
SYSTEMD_INSTALL:yes
DEVEL:no
HAVE_UINPUT:yes
DARWIN:no
LINUX_KERNEL:yes
We may now proceed with
make
and in a perfect world or at least with my Ubuntu it will build everything fine. But on my EV3 for two times I got this:
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/robot/lirc-0.9.4d/missing aclocal-1.15 -I m4 /home/robot/lirc-0.9.4d/missing: line 81: aclocal-1.15: command not found WARNING: 'aclocal-1.15' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package: <http://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <http://www.gnu.org/software/autoconf> <http://www.gnu.org/software/m4/> <http://www.perl.org/> Makefile:479: recipe for target 'aclocal.m4' failed make: *** [aclocal.m4] Error 127
That’s strange because my Ubuntu doesn’t have autoconf installed.
I tried installing several packages but make always failed. After some googling I found a workaround. Is rather strange and honestly I don’t know why but it works:
sudo apt install automake m4 autoconf autoreconf -i
This wil take a lot of time (at least half an hour) but after that the compiling process works as expected (almost an hour more):
./configure make sudo make install