Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3456

C/C++ • Github Unified_LCD woes

$
0
0
Hi,

When I picked up a 16x2 RGB LCD clone of the Adafruit board, the supplier suggested I utilize Dougie Lawson's Unified_LCD at https://github.com/DougieLawson/Raspber ... nified_LCD to talk to it.

Got the git cloning done, as well as:
sudo apt-get install libi2c-dev - The install completed.

cmake . - The cmake . mentioned that the checks for working compilers was skipped.

make - The make stumbled with 2 errors on the first attempt, and with similar results on the second pass (which follows):

jason@raspberrypi:~/git_files/RaspberryPi/Unified_LCD S make

[2%] Built target iptest

[4%] Linking C executable pcfboth

/usr/bin/ld: CMakeFiles/pcfboth.dir/pcfLcd.c.o:(.bss+0x0): multiple definition of gpio_reg'; CMak eFiles/pcfboth.dir/pcfboth.c.o:(.bss+0x0): first defined here

/usr/bin/ld: CMakeFiles/pcfboth.dir/pcfLcd.c.o:(.bss+0x4): multiple definition of i2c_fd'; CMakeFiles/pcfboth.dir/pcfboth.c.o:(.bss+0x4): first defined here

/usr/bin/ld: CMakeFiles/pcfboth.dir/commonLcd.c.o:(.bss+0x0): multiple definition of 'gpio_reg'; c MakeFiles/pcfboth.dir/pcfboth.c.o:(.bss+0x0): first defined here

/usr/bin/ld: CMakeFiles/pcfboth.dir/commonLcd.c.o:(.bss+0x4): multiple definition of 'i2c_fd'; CMa keFiles/pcfboth.dir/pcfboth.c.o:(.bss+0x4): first defined here

collect2: error: ld returned 1 exit status

make[2]: *** [CMakeFiles/pcfboth.dir/build.make: 164: pcfboth] Error 1
make[1]: *** [CMakeFiles/Makefile2:150: CMakeFiles/pcfboth.dir/all] Error 2

make: *** [Makefile:103: all] Error 2


Don't know if this repo is the best option or not, and issues like these are new to me. I'm hoping Dougie Lawson can touch base and point me in the right direction ...

Thanks.

Statistics: Posted by Jason_2708 — Fri Jan 19, 2024 2:43 am — Replies 1 — Views 74



Viewing all articles
Browse latest Browse all 3456

Trending Articles