Hi,
Do the examples inluded with bcm2835 compile OK?
If so I would say that there is an issue with the epaper code. Perhaps lib/
Config/DEV_Config.c should #include <fcntl.h> before #include "DEV_Config.h"
Cheers.
On Friday, 16 October 2020 06:18:42 AEST l_n0a wrote:
> By removing the c99 standard from the Makefile, the demos compile
>
> On Thursday, 15 October 2020 at 12:46:12 UTC+1 l_n0a wrote:
> > gcc -g -O0 -Wall -D USE_DEBUG -std=c99 -c lib/Config/DEV_Config.c -o
> > bin/DEV_Config.o
> > In file included from lib/Config/DEV_Config.h:60,
> >
> > from lib/Config/DEV_Config.c:30:
> > /usr/local/include/bcm2835.h:692:8: error: unknown type name ‘off_t’
> >
> > extern off_t bcm2835_peripherals_base;
> >
> > ^~~~~
> >
> > make: *** [Makefile:29: bin/DEV_Config.o] Error 1
> >
> > On Thursday, 15 October 2020 at 12:44:22 UTC+1 l_n0a wrote:
> >> I am using a Raspberry Pi Zero W to commuicate with an IT8951-ePaper
> >> display <
https://www.waveshare.com/6inch-HD-e-Paper-HAT.htm> over SPI.
> >> The demo file supplied by waveshare from this git repo
> >> <
https://github.com/waveshare/IT8951-ePaper.git> fails to compile due to
> >> an *error: unknown type name 'off_t'*.
> >> The BCM2835 driver compiles no problem for versions 1.62 - 1.68.
> >> Has anyone had this issue before or knows how it can be resolved?
--
Mike McCauley VK4AMM
mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com 5R3MRFM2+X6
Phone
+61 7 5598-7474