Errors when compiling with dev branch
Errors when compiling with dev branch
I have tried pulling down the dev branch, and I am seeing the following compiler errors, which prevent me from even attempting an upload:
In file included from sketch_nov23a.cpp:31:
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:305: error: a brace-enclosed initializer is not allowed here before '{' token
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:368: error: ISO C++ forbids initialization of member 'ParamArrayByte'
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:368: error: making 'ParamArrayByte' static
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:368: error: invalid in-class initialization of static data member of non-integral type 'unsigned char* [94]'
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:370: error: a brace-enclosed initializer is not allowed here before '{' token
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:401: error: ISO C++ forbids initialization of member 'ParamArrayInt'
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:401: error: making 'ParamArrayInt' static
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:401: error: invalid in-class initialization of static data member of non-integral type 'int* [19]'
In file included from sketch_nov23a.cpp:31:
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:305: error: a brace-enclosed initializer is not allowed here before '{' token
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:368: error: ISO C++ forbids initialization of member 'ParamArrayByte'
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:368: error: making 'ParamArrayByte' static
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:368: error: invalid in-class initialization of static data member of non-integral type 'unsigned char* [94]'
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:370: error: a brace-enclosed initializer is not allowed here before '{' token
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:401: error: ISO C++ forbids initialization of member 'ParamArrayInt'
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:401: error: making 'ParamArrayInt' static
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:401: error: invalid in-class initialization of static data member of non-integral type 'int* [19]'
Re: Reef Angel Web Wizard
Sorry, is this for the web wizard or you are trying to use the Arduino IDE?
Roberto.
Re: Reef Angel Web Wizard
The IDE. Trying to use cloud WiFi and upload using the Bluetooth adapter via the IDE.
Re: Errors when compiling with dev branch
You may need to use the new Arduino IDE.
I can't remember if the old one compiles dev branch.
http://forum.reefangel.com/viewtopic.php?f=7&t=6790
I can't remember if the old one compiles dev branch.
http://forum.reefangel.com/viewtopic.php?f=7&t=6790
Roberto.
Re: Errors when compiling with dev branch
It seems you may have broken this out from the original thread. Not sure it’s going to make as much sense without the original context.
Some of us are trying to use cloud WiFi but still want to upload using the Bluetooth adapter. The web wizard doesn’t support the Bluetooth adapter. And the IDE doesn’t support cloud WiFi, due to older libraries.
Therefore, someone suggested we pull down the dev branch (which is what the web wizard is using for whatever reason) into the IDE and then use the Bluetooth adapter. That’s when I saw the compiler errors.
Some of us are trying to use cloud WiFi but still want to upload using the Bluetooth adapter. The web wizard doesn’t support the Bluetooth adapter. And the IDE doesn’t support cloud WiFi, due to older libraries.
Therefore, someone suggested we pull down the dev branch (which is what the web wizard is using for whatever reason) into the IDE and then use the Bluetooth adapter. That’s when I saw the compiler errors.
Re: Errors when compiling with dev branch
I’ll give that a shot...
Re: Errors when compiling with dev branch
And now, after using IDE 1.8.6, I'm getting...
/var/folders/3m/3bb43tld2fj36jzpj5p4ry780000gs/T//cc1YIvJ2.ltrans2.ltrans.o: In function `main':
cc1YIvJ2.ltrans2.o:(.text.startup+0xef4): undefined reference to `ReefAngelClass::CloudPortal()'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Reef Angel Plus Controller.
/var/folders/3m/3bb43tld2fj36jzpj5p4ry780000gs/T//cc1YIvJ2.ltrans2.ltrans.o: In function `main':
cc1YIvJ2.ltrans2.o:(.text.startup+0xef4): undefined reference to `ReefAngelClass::CloudPortal()'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Reef Angel Plus Controller.
Re: Errors when compiling with dev branch
Are you sure you are using the dev branch and it is placed in the correct place?
https://github.com/reefangel/Libraries/archive/dev.zip
This path is very strange: /var/folders/3m/3bb43tld2fj36jzpj5p4ry780000gs/T//cc1YIvJ2.ltrans2.ltrans.o:
Looks like a linux machine.
https://github.com/reefangel/Libraries/archive/dev.zip
This path is very strange: /var/folders/3m/3bb43tld2fj36jzpj5p4ry780000gs/T//cc1YIvJ2.ltrans2.ltrans.o:
Looks like a linux machine.
Roberto.
Re: Errors when compiling with dev branch
OS X. I believe I am using the latest dev branch and have placed it in the correct location. Will try again.
Re: Errors when compiling with dev branch
No luck. If I remove the line ReefAngel.CloudPortal(); from the function void loop() it compiles.
Re: Errors when compiling with dev branch
Can you send me a screen shot of File->Preferences window of your Arduino IDE?
Roberto.
Re: Errors when compiling with dev branch
is the sketchbook location where you placed the dev branch?
Can you send me a screenshot of your folder structure?
Can you send me a screenshot of your folder structure?
Roberto.
Re: Errors when compiling with dev branch
Yes, it’s the location where I put the dev libraries. Here’s the structure:
/Users/sbidny/Documents/Arduino 1.8.6/libraries/
I will grab a screenshot when I get a chance as well.
/Users/sbidny/Documents/Arduino 1.8.6/libraries/
I will grab a screenshot when I get a chance as well.
Re: Errors when compiling with dev branch
It's definitely picking up the dev libraries, FWIW, since the call to ReefAngel.StandardHeater1() is working. The older libraries did not support this call. I believe they required ReefAngel.StandardHeater().
Re: Errors when compiling with dev branch
Screenshot of folder structure:
Re: Errors when compiling with dev branch
Light bulb turned on.
I think you are also missing the updated features file.
https://github.com/reefangel/FeaturesAndUpdateFiles
Update the files on your folder /Users/sbidny/Documents/Arduino 1.8.6/libraries/update
I think you are also missing the updated features file.
https://github.com/reefangel/FeaturesAndUpdateFiles
Update the files on your folder /Users/sbidny/Documents/Arduino 1.8.6/libraries/update
Roberto.
Re: Errors when compiling with dev branch
That seemed to do it. I am now able to compile. Will try to upload using the Bluetooth adapter when I get home tonight. Thanks!
Re: Errors when compiling with dev branch
I was able to upload using the Bluetooth adapter. However, I am now seeing tons of trailing random characters on the display. Seems as if it’s using uninitialized character buffers for strings.
Could it be that the prior version automatically initialized allocated buffers and that the new version requires an explicit initialization?
Could it be that the prior version automatically initialized allocated buffers and that the new version requires an explicit initialization?
Re: Errors when compiling with dev branch
Just playing around right now, so there's not much to it. Basically, all it's doing is setting the 0-10v ports to 100%.
Code: Select all
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <PAR.h>
#include <ReefAngel.h>
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.AddStandardMenu(); // Add Standard Menu
ReefAngel.Use2014Screen(); // Let's use 2014 Screen
}
void loop()
{
ReefAngel.PWM.SetDaylight(100);
ReefAngel.PWM.SetActinic(100);
ReefAngel.Portal("sbidny");
ReefAngel.CloudPortal();
ReefAngel.DDNS("reef"); // Your DDNS is sbidny-reef.myreefangel.com
// This should always be the last line
ReefAngel.ShowInterface();
}
Re: Errors when compiling with dev branch
FYI, when I upload the same (minus the ReefAngel.CloudPortal() call) via Arduino 1.0.1, I don't see the same issue with trailing characters.
I'll try uploading using 1.8.6 without the CloudPortal() call.
I'll try uploading using 1.8.6 without the CloudPortal() call.
Re: Errors when compiling with dev branch
Same issue.
Re: Errors when compiling with dev branch
I wonder if this is a MacOSX issue only.
I'm not able to replicate.
lnevo, can you report if you have this issue?
I'm not able to replicate.
lnevo, can you report if you have this issue?
Roberto.
Re: Errors when compiling with dev branch
I’ll try to get it going from Windows and see if the problem persists.