Closed peigen closed 1 year ago
➜ wiringOP git:(next) ./build clean wiringPi: [Clean] DevLib: [Clean] gpio: [Clean] Examples: [Clean] Gertboard: [Clean] PiFace: [Clean] Quick2Wire: [Clean] PiGlow: [Clean] scrollPhat: [Clean] Deb: ➜ wiringOP git:(next) ./build 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] 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] ads1115.c [Compile] sn3218.c [Compile] bmp180.c [Compile] htu21d.c [Compile] ds18b20.c [Compile] rht03.c [Compile] drcSerial.c [Compile] drcNet.c [Compile] pseudoPins.c [Compile] wpiExtensions.c pseudoPins.c: In function ‘myAnalogRead’: pseudoPins.c:50:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 50 | int *ptr = (int *)node->data0 ; | ^ pseudoPins.c: In function ‘myAnalogWrite’: pseudoPins.c:59:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 59 | int *ptr = (int *)node->data0 ; | ^ pseudoPins.c: In function ‘pseudoPinsSetup’: pseudoPins.c:89:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 89 | node->data0 = (unsigned int)ptr ; | ^ [Compile] w25q64.c [Compile] oled.c [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] scrollPhat.c [Compile] piGlow.c [Link (Dynamic)] [Install Headers] [Install Dynamic Lib] GPIO Utility [Compile] gpio.c [Compile] readall.c gpio.c: In function ‘doUsbP’: gpio.c:944:25: warning: unused parameter ‘argc’ [-Wunused-parameter] 944 | static void doUsbP (int argc, char *argv []) | ~~~~^~~~ gpio.c:944:37: warning: unused parameter ‘argv’ [-Wunused-parameter] 944 | static void doUsbP (int argc, char *argv []) | ~~~~~~^~~~~~~ readall.c:1099:13: warning: ‘piPlusReadall’ defined but not used [-Wunused-function] 1099 | static void piPlusReadall (int model) | ^~~~~~~~~~~~~ [Link] [Install] All Done. NOTE: To compile programs with wiringPi, 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). ➜ wiringOP git:(next)
看仔细点,没有报错。