08-17-2019, 03:15 AM
Hi,
Using a clean rp3 Buster install, the Manual's Installation guide for Debian Buster was used to install the apt sources and libmbed*.deb packages. The library installation required apt --fix-broken install to complete:
The build fails on #include <luajit-2.0/lua.h> yet the library seems to be installed OK. Any suggestions?
Using a clean rp3 Buster install, the Manual's Installation guide for Debian Buster was used to install the apt sources and libmbed*.deb packages. The library installation required apt --fix-broken install to complete:
Code:
pi@raspberrypi:~ $ sudo apt-get install dialog
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmbedtls12 : Depends: libmbedx509-0 (>= 2.14) but 2.6.0-1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
pi@raspberrypi:~ $ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
rpi.gpio-common
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libmbedx509-0
The following packages will be upgraded:
libmbedx509-0
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 87.0 kB of archives.
After this operation, 13.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 hlzmel/fsmg/raspbian/raspbian buster/main armhf libmbedx509-0 armhf 2.16.0-1 [87.0 kB]
Fetched 87.0 kB in 2s (50.0 kB/s)
Reading changelogs... Done
(Reading database ... 152214 files and directories currently installed.)
Preparing to unpack .../libmbedx509-0_2.16.0-1_armhf.deb ...
Unpacking libmbedx509-0:armhf (2.16.0-1) over (2.6.0-1) ...
Setting up libmbedx509-0:armhf (2.16.0-1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
pi@raspberrypi:~ $ sudo apt-get install build-essential cmake git dialog libwiringx libwiringx-dev libpcap0.8-dev libmbedtls-dev liblua5.2-dev libluajit-5.1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.6).
cmake is already the newest version (3.13.4-1).
dialog is already the newest version (1.3-20190211-1).
git is already the newest version (1:2.20.1-2).
liblua5.2-dev is already the newest version (5.2.4-1.1).
libluajit-5.1-dev is already the newest version (2.1.0~beta3+dfsg-5.1).
libmbedtls-dev is already the newest version (2.16.0-1).
libpcap0.8-dev is already the newest version (1.8.1-6).
libwiringx is already the newest version (2.0-240-g4e620af).
libwiringx-dev is already the newest version (2.0-240-g4e620af).
The following package was automatically installed and is no longer required:
rpi.gpio-common
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
pi@raspberrypi:~ $ git clone --depth 5 -b rewrite github.com/pilight/pilight.git
Cloning into 'pilight'...
warning: redirecting to github.com/pilight/pilight.git/
remote: Enumerating objects: 1157, done.
remote: Counting objects: 100% (1157/1157), done.
remote: Compressing objects: 100% (832/832), done.
remote: Total 1157 (delta 448), reused 690 (delta 318), pack-reused 0
Receiving objects: 100% (1157/1157), 2.57 MiB | 343.00 KiB/s, done.
Resolving deltas: 100% (448/448), done.
pi@raspberrypi:~ $ cd pilight/
The build fails on #include <luajit-2.0/lua.h> yet the library seems to be installed OK. Any suggestions?
Code:
pi@raspberrypi:~/pilight $ sudo ./setup.sh
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ pilight configuration options │
│ ┌────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │[*] WEBSERVER enable the built-in webserver │ │
│ │[*] WEBSERVER_HTTPS enable webserver ssl protocol │ │
│ │[*] EVENTS enable the eventing functionality │ │
│ │[ ] ZWAVE enable Z-Wave support │ │
│ │[ ] IR enable IR remotes support │ │
│ │[*] PILIGHT_UNITTEST build pilight unittests │ │
│ │[*] PROTOCOL_ALECTO_WS1700 support for the Alecto WS1700 protocol │ │
│ │[*] PROTOCOL_ALECTO_WSD17 support for the Alecto WSD 17 protocol │ │
│ │[*] PROTOCOL_ALECTO_WX500 support for the Alecto WX500 protocol │ │
│ │[*] PROTOCOL_AURIOL support for the Auriol weather station protocol │ │
│ └────↓(+)────────────────────────────────────────────────────────────────────────────10%─────┘ │
│ │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ < Save and Install > <Cancel and Install> < Abort > │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
mkdir: cannot create directory ‘build’: File exists
-- Looking for libpcap - found (/usr/lib/arm-linux-gnueabihf/libpcap.so)
-- Looking for libwiringx - found (/usr/lib/libwiringx.so)
-- Looking for libmbedtls - found (/usr/lib/arm-linux-gnueabihf/libmbedtls.so)
-- Looking for libmbedcrypto - found (/usr/lib/arm-linux-gnueabihf/libmbedcrypto.so)
-- Looking for libmbedx509 - found (/usr/lib/arm-linux-gnueabihf/libmbedx509.so)
-- Looking for libluajit - found (/usr/lib/arm-linux-gnueabihf/libluajit-5.1.so)
-- WARNING --
Manually compiling and installing pilight will also clear all module folders:
/usr/local/lib/pilight/protocols/
/usr/local/lib/pilight/hardware/
/usr/local/lib/pilight/actions/
/usr/local/lib/pilight/operators/
-- WARNING --
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/pilight/build
Scanning dependencies of target pilight
[ 0%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrgpio.c.o
In file included from /home/pi/pilight/libs/avrdude/../pilight/config/settings.h:12,
from /home/pi/pilight/libs/avrdude/avrgpio.c:37:
/home/pi/pilight/libs/avrdude/../pilight/config/../lua_c/lua.h:12:10: fatal error: luajit-2.0/lua.h: No such file or directory
#include <luajit-2.0/lua.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pilight.dir/build.make:110: CMakeFiles/pilight.dir/libs/avrdude/avrgpio.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:440: CMakeFiles/pilight.dir/all] Error 2
make: *** [Makefile:152: all] Error 2