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

Troubleshooting • Waveshare OLED/LCD HAT (A)

$
0
0
Hi there all, apologies this is my first post and no proper introduction but I've been at this for hours now, and I had to log in on my actual rpi itself so I could copy all the terminal stuff and it is running like tar.

To preface, it's an RPi 3B+ running what I assume is the most recent Bookworm. Starting to think something lighter would have been more beneficial but here we are.

All I'm trying to do is make a Pi-Hole with an onboard display, and I went for Waveshares triple screen thinking it would be a nice, all-encompassing little display for just the necessary basics (and add little LCDs to play around with), and I haven't even got to the Pi-Hole making bit because I can't even get the on-board display I'm trying to use to, well, even display.

I'm following this guide on it, from Waveshare themselves - https://www.waveshare.com/wiki/OLED/LCD_HAT_(A)


I get all the way up to "Download Drives" to

Code:

sudo cmake ..
and it just halts.

I can get the python demos to display, so I at least know the screens are functional, however, moving on with the guide up to

Code:

sudo cmake ..
and followup

Code:

sudo make -j8
nets me this:

Code:

pigbeetle@prospector:~/rpi-fbcp/build $ sudo cmake ..CMake Warning (dev) in CMakeLists.txt:  No project() command is present.  The top-level CMakeLists.txt file must  contain a literal, direct call to the project() command.  Add a line of  code such as    project(ProjectName)  near the top of the file, but after cmake_minimum_required().  CMake is pretending there is a "project(Project)" command on the first  line.This warning is for project developers.  Use -Wno-dev to suppress it.-- The C compiler identification is GNU 12.2.0-- The CXX compiler identification is GNU 12.2.0-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working C compiler: /usr/bin/cc - skipped-- Detecting C compile features-- Detecting C compile features - done-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Check for working CXX compiler: /usr/bin/c++ - skipped-- Detecting CXX compile features-- Detecting CXX compile features - doneCMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):  Compatibility with CMake < 2.8.12 will be removed from a future version of  CMake.  Update the VERSION argument <min> value or use a ...<max> suffix to tell  CMake that the project does not need compatibility with older versions.-- Configuring done-- Generating done-- Build files have been written to: /home/pigbeetle/rpi-fbcp/buildpigbeetle@prospector:~/rpi-fbcp/build $ sudo make -j8[ 50%] Building C object CMakeFiles/fbcp.dir/main.c.o/home/pigbeetle/rpi-fbcp/main.c:9:10: fatal error: bcm_host.h: No such file or directory    9 | #include <bcm_host.h>      |          ^~~~~~~~~~~~compilation terminated.make[2]: *** [CMakeFiles/fbcp.dir/build.make:76: CMakeFiles/fbcp.dir/main.c.o] Error 1make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/fbcp.dir/all] Error 2make: *** [Makefile:91: all] Error 2
(Called my pi-hole Prospector cause it's, you know, gonna be a filter lol)

I'm new to all this and i don't really know if
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command.
actually has anything to do with why it's failing. Likewise, the

Code:

sudo install fbcp /usr/local/bin/fbcp
command doesn't work either, or the final

Code:

sudo ./fbcp
so I'm assuming I need to solve that cmake line.

It seems for all intents and purposes I'm almost done getting it to work, and would greatly appreciate any help, preferably in a step-by-step fashion. Thank you in advance!

Statistics: Posted by Pigbeetle — Wed Jun 05, 2024 8:27 pm — Replies 0 — Views 20



Viewing all articles
Browse latest Browse all 7167

Trending Articles