C-Nano Client include error on Arduino
tilegg opened this issue ยท 2 comments
Affected Client: C-Nano
Affected version: 0.4.6
When using the kRPC Lib version 0.4.6 from the Arduino IDE sketches using it fail to compile:
"C:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\mega" "-IC:\Users\Documents\Arduino\libraries\arduino_898323\src" "C:\Users\Documents\Arduino\libraries\arduino_898323\src\communication.cpp" -o "nul"
"C:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\mega" "-IC:\Users\Documents\Arduino\libraries\arduino_898323\src" "C:\Users\Documents\Arduino\libraries\arduino_898323\src\decoder.cpp" -o "nul"
"C:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\mega" "-IC:\Users\Documents\Arduino\libraries\arduino_898323\src" "C:\Users\Documents\Arduino\libraries\arduino_898323\src\encoder.cpp" -o "nul"
"C:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\mega" "-IC:\Users\Documents\Arduino\libraries\arduino_898323\src" "C:\Users\Documents\Arduino\libraries\arduino_898323\src\error.cpp" -o "nul"
"C:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\mega" "-IC:\Users\Documents\Arduino\libraries\arduino_898323\src" "C:\Users\Documents\Arduino\libraries\arduino_898323\src\krpc.cpp" -o "nul"
"C:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\mega" "-IC:\Users\Documents\Arduino\libraries\arduino_898323\src" "C:\Users\Documents\Arduino\libraries\arduino_898323\src\krpc.pb.cpp" -o "nul"
"C:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\mega" "-IC:\Users\Documents\Arduino\libraries\arduino_898323\src" "C:\Users\Documents\Arduino\libraries\arduino_898323\src\memory.cpp" -o "nul"
"C:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\mega" "-IC:\Users\Documents\Arduino\libraries\arduino_898323\src" "C:\Users\Documents\Arduino\libraries\arduino_898323\src\pb_common.cpp" -o "nul"
"C:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\tiegs\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\mega" "-IC:\Users\Documents\Arduino\libraries\arduino_898323\src" "C:\Users\Documents\Arduino\libraries\arduino_898323\src\pb_common.cpp" -o "C:\Users\tiegs\AppData\Local\Temp\arduino_build_183562\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\Documents\Arduino\libraries\arduino_898323\src\pb_common.cpp:6:23: fatal error: pb_common.h: No such file or directory
#include "pb_common.h"
^
compilation terminated.
Using library arduino_898323 at version 0.4.6 in folder: C:\Users\Documents\Arduino\libraries\arduino_898323
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
Invalid library found in C:\Users\Documents\Arduino\libraries\kRPC: C:\Users\Documents\Arduino\libraries\kRPC
It looks like this may be related to the addition of the _cnano suffix in v0.4.6.