Skip to content

Library does not compile! #11

@karstengit

Description

@karstengit

I followed the steps for an OrangePi PC but there are errors in the source Code!

Build WiringPi on OrangePi
./build: 11: [: OrangePi_H3: unexpected operator
wiringPi Build script
=====================


WiringPi Library
[UnInstall]
[Compile] wiringPi.c
[Compile] wiringSerial.c
[Compile] wiringShift.c
[Compile] piHiPri.c
[Compile] piThread.c
[Compile] wiringPiSPI.c
[Compile] wiringPiI2C.c
[Compile] softPwm.c
[Compile] softTone.c
[Compile] softServo.c
[Compile] mcp23008.c
[Compile] mcp23016.c
[Compile] mcp23017.c
[Compile] mcp23s08.c
[Compile] mcp23s17.c
[Compile] sr595.c
[Compile] pcf8574.c
[Compile] pcf8591.c
[Compile] mcp3002.c
[Compile] mcp3004.c
[Compile] mcp4802.c
[Compile] mcp3422.c
[Compile] max31855.c
[Compile] max5322.c
[Compile] sn3218.c
[Compile] drcSerial.c
[Compile] RaspberryPi.c
[Compile] OrangePi.c
OrangePi.c: In function ‘readR’:
OrangePi.c:532:14: error: ‘GPIOL_BASE’ undeclared (first use in this function)
  if (addr >= GPIOL_BASE) {
              ^
OrangePi.c:532:14: note: each undeclared identifier is reported only once for each function it appears in
OrangePi.c: In function ‘writeR’:
OrangePi.c:559:14: error: ‘GPIOL_BASE’ undeclared (first use in this function)
  if (addr >= GPIOL_BASE) {
              ^
OrangePi.c: In function ‘OrangePi_set_gpio_mode’:
OrangePi.c:585:13: error: ‘GPIOL_BASE’ undeclared (first use in this function)
   phyaddr = GPIOL_BASE + (bank * 36) + ((index >> 3) << 2);
             ^
OrangePi.c: In function ‘OrangePi_digitalWrite’:
OrangePi.c:670:13: error: ‘GPIOL_BASE’ undeclared (first use in this function)
   phyaddr = GPIOL_BASE + (bank * 36) + 0x10;
             ^
OrangePi.c: In function ‘OrangePi_digitalRead’:
OrangePi.c:759:13: error: ‘GPIOL_BASE’ undeclared (first use in this function)
   phyaddr = GPIOL_BASE + (bank * 36) + 0x10;
             ^
Makefile:131: recipe for target 'OrangePi.o' failed
make: *** [OrangePi.o] Error 1

Make Failed...
Please check the messages and fix any problems. If you're still stuck,
then please email all the output and as many details as you can to
  projects@drogon.net```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions