Strona 1 z 2
Kompilacja zakończona błędem LCD4Linux na Raspberry PI 2
: 25 sierpnia 2015, 18:05
autor: kamil2234
Cześć mam problem z kompilacją lcd4linux. Robię to pierwszy raz więc nie wiem gdzie mogę popełniać błąd.
Kod: Zaznacz cały
svn co https://ssl.bulix.org/svn/lcd4linux/trunk lcd4linux
cd lcd4linux
./configure --with-drivers=all (wszysto do tego momentu ok)
make
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.14 -I m4
/bin/bash: aclocal-1.14: command not found
Makefile:566: recipe for target 'aclocal.m4' failed
make: *** [aclocal.m4] Error 127
.
Może mi ktoś powiedzieć gdzie popełniam błąd lub co mam nie tak?
Dane o systemie
Kod: Zaznacz cały
pi@raspberrypi3 $ cat /etc/debian_version
7.8
aclocal --version
Kod: Zaznacz cały
aclocal (GNU automake) 1.11.6
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey <tromey@redhat.com>
and Alexandre Duret-Lutz <adl@gnu.org>.
autoreconf -i
Kod: Zaznacz cały
plugins.m4:408: warning: macro `AM_ICONV' not found in library
configure:7883: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
: 25 sierpnia 2015, 18:19
autor: marcin1982
Zaintstaluj pakiety automake i build-essential.
: 25 sierpnia 2015, 18:21
autor: kamil2234
posiadam te pakiety
: 25 sierpnia 2015, 18:23
autor: pawkrol
Spróbuj doinstalować
@marcin1982 mnie uprzedził
Tak na marginesie lcd4linux jest przecież w repo.
Dodane:
Ewentualnie spróbuj pakiet autotools-dev
: 25 sierpnia 2015, 18:28
autor: kamil2234
Dalej to samo
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.14 -I m4
/bin/bash: aclocal-1.14: command not found
Makefile:566: recipe for target 'aclocal.m4' failed
make: *** [aclocal.m4] Error 127
Tak na marginesie lcd4linux jest przecież w repo.
Tak wiem - ale musiałem dodać sterowniki od ramki samsung SPF-85V i SPF-72H, których normalnie nie ma wkompilowanych.
: 25 sierpnia 2015, 19:46
autor: pawkrol
Spróbuj tak:
Doinstaluj gettext libtool
: 25 sierpnia 2015, 20:14
autor: marcin1982
Sprawdziłem częściowo, bo nie chce mi się instalować wszyskich zależności itd.
Kod: Zaznacz cały
make clean
autoreconf -fi
./configure --prefix=/usr
make -j$(nproc)
make DESTDIR=/XXXXXXXXXXX install
A może zamiast ręcznej zabawy lepiej byłoby skorzystać z pakietu źródłowego, tylko oczywiście go zmodyfikować itd?
: 25 sierpnia 2015, 20:20
autor: kamil2234
zrobiłem według instrukcji
pawkrol
doinstalowałem gettext libtoola potem:
Po wpisaniu lcd4linux -l mam sterowniki do swojej ramki

Jeszcze nie sprawdzałem wiec mam nadzieję że działają.
Kod: Zaznacz cały
LCD4Linux 0.11.0-SVN-1193
Copyright (C) 2005, 2006, 2007, 2008, 2009 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
available display drivers:
ASTUSB : ASTUSB display interface
Beckmann+Egle : MT16x1 MT16x2 MT16x4 MT20x1 MT20x2 MT20x4 MT24x1 MT24x2 MT32x1 MT32x2 MT40x1 MT40x2 MT40x4 CT20x4
BWCT : BWCT USB to HD44780 interface
Crystalfontz : 626 631 632 633 634 635 636
Cwlinux : CW1602 CW12232 CW12832
D4D : 4D Systems Display Graphics Modules
DPF : Hacked dpf-ax digital photo frame
EA232graphic : GE120-5NV24 GE128-6N3V24 GE128-6N9V24 KIT160-6 KIT160-7 KIT240-6 KIT240-7 KIT320-8 GE128-7KV24 GE240-6KV24 GE240-6KCV24 GE240-7KV24 GE240-7KLWV24 GE240-6KLWV24 KIT120-5 KIT129-6
EFN : EFN LED modules + EUG100 Ethernet to serial converter
FutabaVFD : Futaba VFD M402SD06GL
FW8888 : Allnet-FW8888
G-15 : Logitech G-15 or Z-10 / Dell M1730
GLCD2USB : GLCD2USB homebrew USB interface for graphic displays
HD44780 : generic Noritake Soekris HD66712 LCM-162
Image : PPM
IRLCD : USBtiny LCD controller
LCD2USB : LCD2USB homebrew USB interface for HD44780 text displays
LCDTerm : LCDTerm serial-to-HD44780 adapter board
LEDMatrix : LEDMATRIX by Till Harbaum
LPH7508 : LPH7508
LW_ABP : Logic Way ABP driver
M50530 : M50530
MatrixOrbital : LCD0821 LCD2021 LCD1641 LCD2041 LCD4021 LCD4041 LK202-25 LK204-25 LK404-55 VFD2021 VFD2041 VFD4021 VK202-25 VK204-25 GLC12232 GLC24064 GLK24064-25 GLK12232-25 LK404-AT VFD1621 LK402-12 LK162-12 LK204-25PC LK202-24-USB LK204-24-USB VK204-24-USB DE-LD011 DE-LD021 DE-LD023
MatrixOrbitalGX : Matrix Orbital GX Series driver
MilfordInstruments : MI216 MI220 MI240 MI420
Newhaven : Newhaven driver
Noritake : GU311 GU311_Graphic
NULL : NULL driver for testing purposes
Pertelian : Pertelian X2040 displays
PHAnderson : PHAnderson serial-to-HD44780 adapter
PICGraphic : PICGraphic serial-to-graphic by Peter Bailey
picoLCD : picoLCD 20x2 Text LCD
picoLCDGraphic : picoLCD 256x64 Graphic LCD
RouterBoard : HD44780 HD66712
Sample : Sample driver
SamsungSPF : SamsungSPF driver, supported models [SPF-72H, SPF-75H, SPF-85H, SPF-85V, SPF-107H]
ShuttleVFD : Shuttle SG33G5M, Shuttle PF27 upgrade kit
SimpleLCD : generic vt100
T6963 : T6963
TeakLCM : TeakLCM driver
TREFON : TREFON USB LCD
USBHUB : USBHUB
USBLCD : USBLCD
WincorNixdorf : BA63 BA66
X11 : any X11 server
available plugins:
cfg, math, string, test, time, apm, asterisk, button_exec, cpuinfo, dbus, diskstats, dvb, exec, event, fifo, file, hddtemp, huawei, i2c_sensors, iconv, imon, isdn, kvv, loadavg, meminfo, mpris_dbus, netdev, netinfo, pop3, ppp, proc_stat, raspi, sample, seti, statfs, uname, uptime, w1retap, wireless, xmms
dziękuję za pomoc

: 25 sierpnia 2015, 20:23
autor: marcin1982
Sprawdź czy wszystko działa i jeśli tak - oznacz temat jako rozwiązany zgodnie z reg. forum.
: 25 sierpnia 2015, 21:18
autor: kamil2234
Przygotowałem jakiś przykładowy konfiguracyjny /etc/lcd4linux.conf i nie odpala.
Oto mój plik konfiguracyjny :
Kod: Zaznacz cały
Display Samsung {
Driver 'SamsungSPF'
Model 'SPF-85V'
Size '20x2'
Update 500
}
Widget CPU {
class 'Text'
expression uname('machine')
prefix 'CPU '
width 9
align 'L'
update tick
}
Layout Default {
Row1 {
Col1 'CPU'
}
}
Variables {
tick 500
}
Display 'Samsung'
Layout 'Default'
Kiedy usiłuję uruchomić: lcd4linux -Fvv
mam taki error:
Kod: Zaznacz cały
LCD4Linux 0.11.0-SVN-1193 starting
security error: owner and/or group of '/etc/lcd4linux.conf' don't match
Error reading configuration. Exit!
Oczywiście dawałem prawa zgodnie z dokumentacją
Kod: Zaznacz cały
sudo chmod 600 /etc/lcd4linux.conf
sudo chown root.root /etc/lcd4linux.conf
Potem nawet ustawiłem na 777 i dalej mam ten problem.