fbcp-ili9341 not working, even a little bit, desperate for ideas

fbcp-ili9341 not working, even a little bit, desperate for ideas

I'm running a Raspi 4B with TwisterOS and two screens, one HDMI and one Waveshare 3.5" thru GPIO which doesn't display anything except for white, I'm like 90% sure this is because it's got no driver, which is what I'm trying to amend, I followed the steps, in the github, typed in cmake -DSPI_BUS_CLOCK_DIVISOR=8 -DWAVESHARE35B_ILI9486=ON .. for the [options] section, then, when i input make -jit outputs a concerningly long string of errors (seen below), is this fixable or is the second screen thru GPIO idea just doomed?

[  4%] Building CXX object CMakeFiles/fbcp-ili9341.dir/keyboard.cpp.o
[  9%] Building CXX object CMakeFiles/fbcp-ili9341.dir/fbcp-ili9341.cpp.o
[ 14%] Building CXX object CMakeFiles/fbcp-ili9341.dir/display.cpp.o
[ 19%] Building CXX object CMakeFiles/fbcp-ili9341.dir/ssd1351.cpp.o
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: error: unrecognized command-line option '-mhard-float'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-marm'
[ 23%] Building CXX object CMakeFiles/fbcp-ili9341.dir/mem_alloc.cpp.o
[ 52%] Building CXX object CMakeFiles/fbcp-ili9341.dir/low_battery.cpp.o
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
[ 28%] Building CXX object CMakeFiles/fbcp-ili9341.dir/ili9341.cpp.o
[ 38%] Building CXX object CMakeFiles/fbcp-ili9341.dir/st7735r.cpp.o
[ 38%] Building CXX object CMakeFiles/fbcp-ili9341.dir/hx8357d.cpp.o
[ 42%] Building CXX object CMakeFiles/fbcp-ili9341.dir/gpu.cpp.o
[ 47%] Building CXX object CMakeFiles/fbcp-ili9341.dir/statistics.cpp.o
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
[ 61%] Building CXX object CMakeFiles/fbcp-ili9341.dir/ili9486.cpp.o
[ 57%] Building CXX object CMakeFiles/fbcp-ili9341.dir/diff.cpp.o
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: error: unrecognized command-line option '-mhard-float'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
[ 71%] Building CXX object CMakeFiles/fbcp-ili9341.dir/mpi3501.cpp.o
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
[ 76%] Building CXX object CMakeFiles/fbcp-ili9341.dir/ili9488.cpp.o
[ 66%] Building CXX object CMakeFiles/fbcp-ili9341.dir/dma.cpp.o
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: error: unrecognized command-line option '-marm'
[ 80%] Building CXX object CMakeFiles/fbcp-ili9341.dir/mailbox.cpp.o
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-marm'
[ 85%] Building CXX object CMakeFiles/fbcp-ili9341.dir/mz61581.cpp.o
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
[ 95%] Building CXX object CMakeFiles/fbcp-ili9341.dir/text.cpp.o
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: error: unrecognized command-line option '-mhard-float'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:118: CMakeFiles/fbcp-ili9341.dir/fbcp-ili9341.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
c++: error: unrecognized command-line option '-mhard-float'
[ 90%] Building CXX object CMakeFiles/fbcp-ili9341.dir/spi.cpp.o
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: error: unrecognized command-line option '-mhard-float'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:90: CMakeFiles/fbcp-ili9341.dir/display.cpp.o] Error 1
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-marm'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:300: CMakeFiles/fbcp-ili9341.dir/ssd1351.cpp.o] Error 1
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:202: CMakeFiles/fbcp-ili9341.dir/keyboard.cpp.o] Error 1
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized argument in option '-mabi=aapcs-linux'
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: note: valid arguments to '-mabi=' are: ilp32 lp64
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: error: unrecognized argument in option '-mtls-dialect=gnu2'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:244: CMakeFiles/fbcp-ili9341.dir/mem_alloc.cpp.o] Error 1
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized command-line option '-mhard-float'
c++: note: valid arguments to '-mtls-dialect=' are: desc trad
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized command-line option '-marm'
c++: error: unrecognized command-line option '-marm'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:160: CMakeFiles/fbcp-ili9341.dir/ili9341.cpp.o] Error 1
c++: error: unrecognized command-line option '-mfloat-abi=hard'
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:216: CMakeFiles/fbcp-ili9341.dir/low_battery.cpp.o] Error 1
c++: error: unrecognized command-line option '-mhard-float'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:132: CMakeFiles/fbcp-ili9341.dir/gpu.cpp.o] Error 1
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:314: CMakeFiles/fbcp-ili9341.dir/st7735r.cpp.o] Error 1
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:328: CMakeFiles/fbcp-ili9341.dir/statistics.cpp.o] Error 1
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:146: CMakeFiles/fbcp-ili9341.dir/hx8357d.cpp.o] Error 1
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:76: CMakeFiles/fbcp-ili9341.dir/diff.cpp.o] Error 1
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:230: CMakeFiles/fbcp-ili9341.dir/mailbox.cpp.o] Error 1
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:272: CMakeFiles/fbcp-ili9341.dir/mz61581.cpp.o] Error 1
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:188: CMakeFiles/fbcp-ili9341.dir/ili9488.cpp.o] Error 1
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized command-line option '-mhard-float'
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:286: CMakeFiles/fbcp-ili9341.dir/spi.cpp.o] Error 1
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:258: CMakeFiles/fbcp-ili9341.dir/mpi3501.cpp.o] Error 1
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:342: CMakeFiles/fbcp-ili9341.dir/text.cpp.o] Error 1
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:104: CMakeFiles/fbcp-ili9341.dir/dma.cpp.o] Error 1
c++: error: unrecognized command-line option '-mfloat-abi=hard'
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:174: CMakeFiles/fbcp-ili9341.dir/ili9486.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/fbcp-ili9341.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
u/TimAllenNoise — 21 hours ago
▲ 0 r/cmake

Need help with fbcp framebuffer mirroring

Hi all! I'd like to firstly declare I am a total novice little baby and preemptively apologize for dumb noob questions.

Now, the issue: I'm trying to build a dual screen Cyberdeck using a raspberry pi running TwisterOS, one of the screens (3.5 inch waveshare) connects via GPIO so I need to use fbcp to make it work, I've been following the instructions (copy pasting commands into my command prompt) and I've been slapped with the following wall of error whenever i type $ cmake [options] .. I, of course, have no idea what this means, I just want my screens to work, any and all advice much appreciated

CMake Warning:
  Ignoring extra path from command line:

   "/home/pi/fbcp-ili9341/build/[options]"
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.

CMake 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.


-- Doing a Release build
-- Board revision: b03115
CMake Warning at CMakeLists.txt:40 (message):
  The board revision of this hardware is not known.  Please add detection to
  this board in CMakeLists.txt.  (proceeding to compile against a generic
  multicore CPU)


-- Scaling source image to view. If the HDMI resolution does not match the SPI display resolution, this will produce blurriness. Match the HDMI display resolution with the SPI resolution in /boot/config.txt to get crisp pixel perfect rendering, or alternatively pass -DDISPLAY_CROPPED_INSTEAD_OF_SCALING=ON to crop instead of scale if you want to view the center of the screen pixel perfect when HDMI and SPI resolutions do not match.
-- Preserving aspect ratio when scaling source image to the SPI display, introducing letterboxing/pillarboxing if HDMI and SPI aspect ratios are different (Pass -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON to stretch HDMI to cover full screen if you do not care about aspect ratio)
CMake Error at CMakeLists.txt:136 (message):
  Please define -DSPI_BUS_CLOCK_DIVISOR=<some even number> on the CMake
  command line! (see files ili9341.h/waveshare35b.h for details) This
  parameter along with core_freq=xxx in /boot/config.txt defines the SPI
  display speed.  Smaller divisor number=faster speed, higher number=slower.


-- Configuring incomplete, errors occurred!
See also "/home/pi/fbcp-ili9341/build/CMakeFiles/CMakeOutput.log".
reddit.com
u/TimAllenNoise — 6 days ago

GPIO + HDMI Dual screening help?

I've got a Rpi4B running TwisterOS and I'm trying to get it to dual screen on a Waveshare 4.3 inch HDMI LCD (B) and a Waveshare 3.5 inch RPi LCD (A), the former works no problem but the latter won't display anything other than white, even with the drivers and everything.

I tried using the 3.5 inch screen by itself and it worked fine, is there some line of code I'm missing or something? Can the Rpi4 not display HDMI and also GPIO?

Extremely confused, all comments are appreciated, thanks!

reddit.com
u/TimAllenNoise — 11 days ago

Can't figure out how to change screen res on RPi 4B + Waveshare 3.5" tactile screen.

Hi! certified newbie here trying to build a wrist-mounted, dual screen cyberdeck;
Like the title says, I'm running with a sort of strange screen resolution of 480 x 320, it connects to the first 26 GPIO pins, and it works perfectly fine, however all the windows and programs I open are much too big for the screen, is there a way to force a custom resolution somehow? I've already searched this query in many different places but I can only get solutions for hdmi outputs. All necessary drivers are already in.

is there something I can put into the config.txt to fix this?

reddit.com
u/TimAllenNoise — 28 days ago

Can't figure out how to change screen res on RPi 4B + Waveshare 3.5" tactile screen.

Hi! certified newbie here trying to build a cyberdeck;
Like the title says, I'm running with a sort of strange screen resolution of 480 x 320, it connects to the first 26 GPIO pins, all the windows and programs I open are much too big for the screen, is there a way to force a custom resolution somehow? I've already searched this query in many different places but I can only get solutions for hdmi outputs. All necessary drivers are already in.

is there something I can put into the config.txt to fix this?

reddit.com
u/TimAllenNoise — 28 days ago

Recommendation Request: Looking for documentaries about horseshoe crabs

Does anyone know a good detailed documentary about horseshoe crabs behavior and biology and stuff?

reddit.com
u/TimAllenNoise — 2 months ago
▲ 4 r/Patapon+1 crossposts

Is it possible to transfer Patapon 1+2 replay save data to Patapon 3 for ppsspp?

I saw patapon on steam a bit ago, got curious, played it and fell in love, only to be met with the dismay of no patapon 3 rerelease for pc, so i got the ppsspp .iso file, upon booting it, it asked for patapon 2 save data, so, despite it's unlikeliness, is there a way to extract or convert it or something?

reddit.com
u/TimAllenNoise — 3 months ago
▲ 30 r/csharp

Visual studio isn't detecting obvious errors

I'm an ultra rookie, we're learning C# in school and we've gotta make a game, everything works fine on the shitty school office PCs, but my home computer refuses to acknowledge any errors, Unity acknowledges them just fine. Google has given me nothing, other reddit threads asking the same question haven't solved it either, VS troubleshooting guide's got nothing.

I'd really appreciate some help.

u/TimAllenNoise — 3 months ago