Hi Chris,
Current code in master compiles with Arduino 1.5.8. You can see Arduino build command lines from <iotivity>/auto_build.sh : https://github.com/iotivity/iotivity/blob/master/auto_build.sh EX: scons resource TARGET_OS=arduino UPLOAD=false BOARD=mega TARGET_ARCH=avr TARGET_TRANSPORT=IP SHIELD=ETH RELEASE=1 Also, have a look at this file: https://github.com/iotivity/iotivity/blob/master/extlibs/arduino/SConscript If ?ARDUINO_HOME? is not passed at command line, scons build system downloads Arduino 1.5.8 from Arduino website, and patches it with Iotivity specific patches. I am assuming that you are seeing ?now? compilation errors, because those patches are not applied. Thanks Sachin PS: Yes. The build instructions on Iotivity site are out-of-date L From: iotivity-dev-bounces at lists.iotivity.org [mailto:[email protected]] On Behalf Of Chris Larson Sent: Wednesday, June 10, 2015 8:39 AM To: iotivity-dev at lists.iotivity.org Subject: [dev] Arduino build- undefined reference to `now' Never used a mailing list before so please redirect this to the correct location (SO, Jira???) I'm trying to build for arduino due using scons $ scons TARGET_OS=arduino TARGET_ARCH=avr BOARD=megaADK ARDUINO_HOME=~/iotivity/iotivity/extlibs/arduino/arduino-1.5.7 and I get this error /home/chris/iotivity/iotivity/resource/csdk/connectivity/src/caprotocolmessage.c:809: undefined reference to `now' collect2: error: ld returned 1 exit status I have added the Time libraries to the arduino framework. I know there is something really simple I'm missing, but the build instructions on the iotivity.org site are out of date. Thank you for your help, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150610/87fb49e2/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 7768 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150610/87fb49e2/attachment.p7s>
