Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) (ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro (Read 2693 times)
DJay
Newbies
*
Offline


Posts: 5
Joined: Apr 17th, 2019
(ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro
Apr 17th, 2019 at 8:38am
Print Post  
I've ensured I have Python 2.7.x and bonjour installed but the error is still the same. I have tried on Visual Studio 2017 and 2019 and made sure Visual Micro is up to date. I'd appreciate any help on the matter, thank you.

The build output is attached to this post.

The build error occurs on entering this code in my setup function:

Code (C++)
Select All
	// OTA
	ArduinoOTA.onStart([]() {
		Serial.println("Start");
	});
	ArduinoOTA.begin(); 



I have made sure to include the "ArduinoOTA.h" and "ESP8266mDNS.h" headers. The full file containing the code is also attached if necessary.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: (ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro
Reply #1 - Apr 17th, 2019 at 11:28am
Print Post  
Thanks for the info

Does it compile if you switch the toolbar from debug to release?

If not then please post the verbose output from the arduino ide. that can be enabled using "file>preferences>compile verbose"

Thanks
  
Back to top
WWW  
IP Logged
 
DJay
Newbies
*
Offline


Posts: 5
Joined: Apr 17th, 2019
Re: (ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro
Reply #2 - Apr 17th, 2019 at 12:22pm
Print Post  
Tim@Visual Micro wrote on Apr 17th, 2019 at 11:28am:
Thanks for the info

Does it compile if you switch the toolbar from debug to release?

If not then please post the verbose output from the arduino ide. that can be enabled using "file>preferences>compile verbose"

Thanks


Thanks for the reply,
It does not compile if I switch to release and gives the same error.

I've attached the Arduino IDE verbose build output to this message.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: (ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro
Reply #3 - Apr 17th, 2019 at 12:51pm
Print Post  
Thanks

Can you please confirm the urls you used to install the adafruit libs
  
Back to top
WWW  
IP Logged
 
DJay
Newbies
*
Offline


Posts: 5
Joined: Apr 17th, 2019
Re: (ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro
Reply #4 - Apr 17th, 2019 at 12:59pm
Print Post  
Tim@Visual Micro wrote on Apr 17th, 2019 at 12:51pm:
Thanks

Can you please confirm the urls you used to install the adafruit libs


Adafruit_GFX was installed from the official library manager so it's from here (https://github.com/adafruit/Adafruit-GFX-Library)

Adafruit_ILI9341esp was taken from the source zip files found here (https://nailbuster.com/?page_id=341)
  
Back to top
 
IP Logged
 
DJay
Newbies
*
Offline


Posts: 5
Joined: Apr 17th, 2019
Re: (ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro
Reply #5 - Apr 17th, 2019 at 3:38pm
Print Post  
Ahh! I finally got it to work but unfortunately I don't know why it works which isn't very helpful for you but I'll retrace my steps for making it work here:

1. Reinstall ESP8266 Core by cloning the git directory (I was previously using release 2.5.0 but I noticed PolledTimeout.h had errors and was missing some functions - oneshotMs)

2. Deleted local installations of ArduinoOTA and ESP8266mDNS so that it would use the versions provided in ESP8266 core instead

3. Cleaned my build

Now it builds successfully but unfortunately I have no idea why it worked in Arduino IDE but not Visual Micro. Sorry. Let me know if there's anything I can provide which might help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: (ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro
Reply #6 - Apr 18th, 2019 at 7:12pm
Print Post  
What folder were the local versions of the libs in?
  
Back to top
WWW  
IP Logged
 
DJay
Newbies
*
Offline


Posts: 5
Joined: Apr 17th, 2019
Re: (ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro
Reply #7 - Apr 18th, 2019 at 7:44pm
Print Post  
Tim@Visual Micro wrote on Apr 18th, 2019 at 7:12pm:
What folder were the local versions of the libs in?


They were in the default directory that the Arduino IDE installs libraries. In my case: C:\Users\dhjay\Documents\Arduino\libraries
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: (ESP8266) ArduinoOTA compiles in Arduino IDE but not Visual Micro
Reply #8 - Apr 19th, 2019 at 2:44pm
Print Post  
Thanks, I will look into it. This is the location where your downloaded libs are saved as opposed to the location of libs that are installed with the arduino ide. The user installed location as you have said is "sketch book folder\libraries" which is normally mydocuments\libraries.

I will look into why arduino was giving priority to the libraries in the hardware package folder. The original idea of the skeytchbook\libraries folder to be able to override the pre installed versions. Obviously not the case in some instances we will look into it.


Thanks again for the report.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint