This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling error V400_b006 using arduino 1.6.4 and correct libraries
#1
Hello,

I'm trying to compile the last release (V400_b006) using arduino 1.6.4, but I'm having some compiling errors.

In what regards the libraries, I renamed the original libraries folder to libraries.old and copied the supplied libraries folder to the arduino folder. Then, from the libraries.old folder, I copied all individual libraries folders to the new libraries folder and whenever there was a conflict, I choose "skip", in order to maintain the supplied libraries intact.

Any idea?
Thanks,
Jabss

Code:
Arduino: 1.6.4 (Linux), Board: "Arduino Nano, ATmega328"

In file included from /home/jabss/arduino-1.6.4/hardware/arduino/avr/cores/arduino/WString.h:29:0,
                 from /home/jabss/arduino-1.6.4/hardware/arduino/avr/cores/arduino/Print.h:26,
                 from /home/jabss/arduino-1.6.4/hardware/arduino/avr/cores/arduino/Stream.h:26,
                 from /home/jabss/arduino-1.6.4/hardware/arduino/avr/libraries/Wire/Wire.h:26,
                 from /home/jabss/arduino-1.6.4/libraries/AC_DS3231/AC_DS3231.cpp:17:
/home/jabss/arduino-1.6.4/libraries/AC_DS3231/AC_DS3231.cpp:33:31: error: variable 'daysInMonth' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t daysInMonth [] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 };
                               ^
Multiple libraries were found for "AC_GFX.h"
Used: /home/jabss/arduino-1.6.4/libraries/AC_GFX
Not used: /home/jabss/arduino-1.6.4/libraries/AC_ST7735
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.


Attached File(s) Image(s)
   
#2
Hi

The best way to deal with the libraries is keep the original ones where they are, and install the supplied libraries in Documents (or My Documents)/Arduino/libraries

But, by what I see in your paths, I think you are using Linux. I'm not sure, but I think you can create a directory in /home/jabss/ called Arduino, and inside it create another called libraries. Put all the supplied libraries in, then in Arduino Preferences - > Sketchbook Location, type /home/jabss/Arduino.

I never used Arduino IDE in Linux, so I'm just guessing. Hope it works.

If you are trying to compile in WSDL mode, there are some errors on the code and it don't compile, but I can assure you that it compile well in Cumulus mode.
I never was able to make the WSDL and the AuriolDuino work perfectly, anyway I will update the lastest release to V400_b007, which also compiles in WSDL mode.
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel

[Image: banner_EN.php]

#3
Hello,

I've tried the new V400_b007 on an windows arduino (given libraries on documents/Arduino/Libraries) and tried to compile without any changes on the code (just to check if it goes through successfully), but the error is the same:

Code:
error: variable 'daysInMonth' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t daysInMonth [] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 };
                               ^

EDIT: Found out that this problem is somehow related with the Arduino IDE I'm using (version 1.6.0).
Downloaded and tried with the previous (1.0.5) and it compiled successfully.
Thanks,

Any suggestion?
Thanks,
Jabss
#4
Some versions of Arduino IDE 1.6.x requires that when a variable is declared with the PROGMEM parameter, it also be declared as constant.

The error comes from a line of code in one of the used libraries, so my sugestion is: Upgrade Arduino IDE to 1.7.1 or keep using 1.0.5 to compile AuriolDuino V400_b007.
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel

[Image: banner_EN.php]

#5
Hello,

It compiles fine with Arduino 1.0.5. I didn't do much testing, but I can now see some readings in the PC serial connection:

Code:
GEN:T1F20+00000000
GEN:t0F10+002700
GEN:B155001005012345671234567
GEN:R1F5000007450000000000000
GEN:R1F5000007450000000000000
GEN:R1F5000007450000000000000
GEN:R1F5000007450000000000000
GEN:T1F20+00000000
GEN:t0F10+002700
GEN:B155001005012345671234567
GEN:T1F20+00000000
GEN:t0F10+002700
GEN:B155001006012345671234567
GEN:R1F5000007450000000000000
GEN:R1F5000007450000000000000
GEN:R1F5000007450000000000000
GEN:R1F5000007450000000000000
GEN:T1F20+00000000
GEN:t0F10+002700
GEN:B155001006012345671234567
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001006012345671234567
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001006012345671234567
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001006012345671234567
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001006012345671234567
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001006012345671234567
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001005012345671234567
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001005012345671234567
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001005012345671234567
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001005012345671234567
GEN:R1F50000000007450000000000000
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001005012345671234567
GEN:T1F20+00000220
GEN:t0F10+002800
GEN:B155001005012345671234567
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000
GEN:R1F50000000007450000000000000

Time to build a parser!

Thanks,
Jabss
#6
It's your intention using it with WSDL?
If not, (as you talked in write a parser), it could be more easy for you, running the software in Cumulus mode. The output will follow the easyweather data format, which is much well documented than the WSDL format.
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel

[Image: banner_EN.php]

#7
Yes, indeed Cumulus has a much better format.

I'll update the forum with my developments.

Thanks,
Jabss
#8
Wink

Thank you
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel

[Image: banner_EN.php]





Users browsing this thread: 1 Guest(s)