- install nano, autoconf, automake, libtool, compiletc, squashfs-tools
Code: Select all
export CFLAGS="-Os -pipe" export CXXFLAGS="-Os -pipe" export LDFLAGS="-Wl,-O1"
- install libugpio-dev. Maybe needs to be built from sources from here: https://github.com/mhei/libugpio/. Do all of the following steps for libugpio-dev before building lcdproc.
- Current lcdproc sources here: https://github.com/lcdproc/lcdproc
- move sources to /tmp, e.g. /tmp/lcdproc/
- cd /tmp/lcdproc
- sh autogen.sh (may be omitted if using a release instead of current dev)
Code: Select all
./configure --prefix=/usr/local --disable-libusb --disable-libusb-1-0 --disable-libhid --disable-libpng --disable-ethlcd --disable-libftdi --disable-freetype --enable-drivers=hd44780
- make server
- mkdir /tmp/lcdproc-server
- sudo make DESTDIR=/tmp/lcdproc-server install-server
- on executables, run: sudo strip --strip-all *
- on libraries (*.so), run: sudo strip --strip-unneeded *
- create LCDd.conf in /tmp/lcdproc-server/usr/local/etc
(LCDd.conf needs to be adapted - see attached example) - mksquashfs /tmp/lcdproc-server /tmp/lcdproc-server.tcz
- md5sum /tmp/lcdproc-server.tcz >/tmp/lcdproc-server.tcz.md5.txt, remove absolute path from within the file afterwards
- Create /tmp/lcdproc-server.tcz.dep with only libugpio.tcz within
- cp /tmp/lcdproc-server.tcz* /mnt/mmcblk0p2/tce/optional/, make sure ownerships and permissions are correct
- install extension with tce-load -i, may require manual addition to onboot.lst
- add /usr/local/sbin/LCDd to /opt/bootlocal.sh
Setting up an HD44780 display with piCorePlayer
Setting up an HD44780 display with piCorePlayer
You do not have the required permissions to view the files attached to this post.
Last edited by Frank on Wednesday 23. February 2022, 08:33, edited 8 times in total.
Setting up lcd_lms.pl
EDIT: Ported to Python3
Just use the script from here
Now, I want to use the lcd_lms.pl script from https://github.com/jscrane/lcd_lms
Therefore, we need to install a few Perl modules, using the cpan command (configure cpan to use sudo if asked to):
[list]
[*]cpan install Date::Parse
[*]In my case, cpan failed to install the modules after building. A sudo make install in the module's build directory did the trick
[*]Further modules: Switch, URI::Escape, Log::Message::Simple
[*]Repeat the steps of the first post to create extensions (and remove the home .cpan directory )
[*]Finally, add /home/tc//lcd_lms.pl to the piCorePlayer User Commands (in the Tweaks section)
[/list]
Just use the script from here
Therefore, we need to install a few Perl modules, using the cpan command (configure cpan to use sudo if asked to):
[list]
[*]cpan install Date::Parse
[*]In my case, cpan failed to install the modules after building. A sudo make install in the module's build directory did the trick
[*]Further modules: Switch, URI::Escape, Log::Message::Simple
[*]Repeat the steps of the first post to create extensions (and remove the home .cpan directory )
[*]Finally, add /home/tc//lcd_lms.pl to the piCorePlayer User Commands (in the Tweaks section)
[/list]
Last edited by Frank on Thursday 24. February 2022, 07:31, edited 7 times in total.