Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

using lcd proc with pifacecad

Help
JerryZ
2014-05-02
2014-05-13
  • JerryZ
    JerryZ
    2014-05-02

    Hi All,

    I am trying to get LCDproc going on my pifacecad but it exits with the following error :


    hd44780: unknown ConnectionType: pifacecad
    Driver [hd44780] init failed, return code -1
    Could not load driver hd44780
    There is no output driver
    Critical error while initializing, abort.


    I have compiled it with : ./configure --enable-drivers=hd44780

    Must be missing, something, but I have no clue what.

    I'm using the following LCDd.conf : http://paste.debian.net/96934/

    Any nudge in the right direction is apreciated ;-)

    best regards
    Jerry

     
  • Markus Dolze
    Markus Dolze
    2014-05-03

    The pifacecad connection type requires 'linux/spi/spidev.h' header to be available at your system at compile time.

    Check either:

    • The output of configure for 'checking for linux/spi/spidev.h'
    • config.log for the same text
    • config.h for HAVE_SPI
     
    Last edit: Markus Dolze 2014-05-03
  • JerryZ
    JerryZ
    2014-05-03

    Hi I checked the config.log file for the text :


    configure:5587: checking linux/spi/spidev.h usability
    configure:5587: gcc -c -Wall -O3 -Wno-unused-function conftest.c >&5
    configure:5587: $? = 0
    configure:5587: result: yes
    configure:5587: checking linux/spi/spidev.h presence
    configure:5587: gcc -E conftest.c
    configure:5587: $? = 0
    configure:5587: result: yes
    configure:5587: checking for linux/spi/spidev.h
    configure:5587: result: yes


    complete config.log is here --> http://paste.debian.net/97172/

    Checked for HAVE_SPI in config.h :


    /Define to 1 if you have the spi headers/
    define HAVE_SPI 1


    complete config.h is here --> http://paste.debian.net/97173/

    Thnx for helping me.

    Best regards
    Jerry

     
  • Markus Dolze
    Markus Dolze
    2014-05-05

    I just tried with lcdproc 0.5.7 and it works as expected. You should verify that the hd44780.so file built is actually used (at the location used in the LCDd.conf).

     
  • JerryZ
    JerryZ
    2014-05-13

    Sorry for the delay,

    You were right,

    I thought that the driver was still : /usr/lib/lcdproc/hd44780.so
    but during the build the new driver was located somewhere else : /usr/local/lib/lcdproc/hd44780.so

    I totaly missed that.
    It works like a charm now,
    Many thnx for your help and the driver