Skip to content

OrangePi_2G-IOT: unexpected operator #4

@GusakIurii

Description

@GusakIurii

I do not understand whether everything is established correctly?
Are I / O numbers correct?
From the example blink - #define LED 1 - flashing B5 GPIO 37
And to blink B24 GPIO 56, what should I put?

root@OrangePi:~/WiringPi# ./build OrangePi_2G-IOT
Build WiringPi on OrangePi
./build: 11: [: OrangePi_2G-IOT: 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 ‘OrangePi_digitalWrite’:
OrangePi.c:692:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
   write(fd, buf, strlen(buf));
   ^
[Link (Dynamic)]
[Install Headers]
[Install Dynamic Lib]

WiringPi Devices Library
[UnInstall]
[Compile] ds1302.c
[Compile] maxdetect.c
[Compile] piNes.c
[Compile] gertboard.c
[Compile] piFace.c
[Compile] lcd128x64.c
[Compile] lcd.c
[Compile] piGlow.c
[Link (Dynamic)]
[Install Headers]
[Install Dynamic Lib]

GPIO Utility
[Compile] gpio.c
gpio.c:754:13: warning: ‘doPadDrive’ defined but not used [-Wunused-function]
 static void doPadDrive (int argc, char *argv [])
             ^
gpio.c:842:13: warning: ‘doGbw’ defined but not used [-Wunused-function]
 static void doGbw (int argc, char *argv [])
             ^
gpio.c:884:13: warning: ‘doGbr’ defined but not used [-Wunused-function]
 static void doGbr (int argc, char *argv [])
             ^
gpio.c: In function ‘doLoad’:
gpio.c:217:4: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    system(cmd);
    ^
gpio.c:223:4: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    system(cmd);
    ^
gpio.c:254:4: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    system(cmd);
    ^
gpio.c:259:7: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
       system(cmd);
       ^
[Compile] extensions.c
[Compile] readall.c
[Compile] pins.c
[Compile] OrangePi.c
[Link]
[Install]

All Done.

NOTE: To compile programs with wiringBP v2, you need to add:
    -lwiringPi
  to your compile line(s) To use the Gertboard, MaxDetect, etc.
  code (the devLib), you need to also add:
    -lwiringPiDev
  to your compile line(s).


root@OrangePi:~/WiringPi# ./build OrangePi_2G-IOT install
Build WiringPi on OrangePi
./build: 11: [: OrangePi_2G-IOT: unexpected operator
wiringPi Build script
=====================


WiringPi Library
[UnInstall]
make: Nothing to be done for 'all'.
[Install Headers]
[Install Dynamic Lib]

WiringPi Devices Library
[UnInstall]
make: Nothing to be done for 'all'.
[Install Headers]
[Install Dynamic Lib]

GPIO Utility
make: Nothing to be done for 'all'.
[Install]

All Done.

NOTE: To compile programs with wiringBP v2, you need to add:
    -lwiringPi
  to your compile line(s) To use the Gertboard, MaxDetect, etc.
  code (the devLib), you need to also add:
    -lwiringPiDev
  to your compile line(s).

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