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] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) VS2017comm + latest VM + Arduino 1.8.x (Read 18930 times)
An Be
Junior Member
**
Offline


Posts: 14
Joined: Mar 26th, 2017
VS2017comm + latest VM + Arduino 1.8.x
Mar 26th, 2017 at 5:57pm
Print Post  
hello, i can't get rid of following compiling error ...

Compiling 'Blink' for 'Arduino/Genuino Uno'
 
Blink.ino: In file included from
 
arduino.h: 23:20: fatal error: stdlib.h: No such file or directory
   #include <stdlib.h>
   compilation terminated

     An error was encountered during the 'Deep Search' library discovery process.
Build failed for project 'Blink'


i reinstalled all several times, but no success. may you have an idea? win10 + VS2017comm + latest VM + Arduino 1.8.x

br andreas
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #1 - Mar 26th, 2017 at 6:31pm
Print Post  
Hi,

Please switch on "vMicro>Compiler>Verbose", "show build properties" and "show build folder" to see the actual build info.

After attempting a build with these settings please copy the output and paste into a new .txt file using windows notepad.exe

Then email to info[at]visualmicro.com along with a link to this post.

Thanks
  
Back to top
WWW  
IP Logged
 
An Be
Junior Member
**
Offline


Posts: 14
Joined: Mar 26th, 2017
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #2 - Mar 27th, 2017 at 7:28am
Print Post  
which modules must be activated for VS2017comm installation? maybe a missing part causes the error. i've activated ".net desktop development" and "desktop development with c++" only ...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #3 - Mar 27th, 2017 at 1:32pm
Print Post  
C++ but it only affects intellisense, does not affect the building/compiling of arduino programs. 

If you were using arduino 1.8.2 which was only released a few days ago then you need to upgrade visual micro as there has been a new release.

The previous version of visual micro supported arduino 1.8.1 and below
  
Back to top
WWW  
IP Logged
 
An Be
Junior Member
**
Offline


Posts: 14
Joined: Mar 26th, 2017
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #4 - Mar 27th, 2017 at 1:58pm
Print Post  
i tried over the weekend all combinations with VS2017 <> VM old & new w/ aduino 1.81/2 and non worked - it lead always to the same error! switched back to VS2015comm + latest VM + Arduino 1.8.1 and all worked.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #5 - Mar 27th, 2017 at 2:10pm
Print Post  
Did you email the information requested above?
  
Back to top
WWW  
IP Logged
 
An Be
Junior Member
**
Offline


Posts: 14
Joined: Mar 26th, 2017
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #6 - Mar 27th, 2017 at 7:15pm
Print Post  
yes, i already did it yesterday ...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #7 - Mar 27th, 2017 at 7:33pm
Print Post  
Oh sorry it was in my junk.

Looking at the output you have sent I can see you have done some configuration work to relocate downloaded packages to   a special location. 

I can also now see (or it looks as if) that you have used board manager to install the arduino avr 1.6.17 core.

You do not need to use board manager for Arduino avr boards such as the Uno. Doing so actually causes you to fall behind when you upgrade the arduino ide.

Because I can't see you file system I am not sure why you are encountering the error but I think we can assume that your arduino 1.6.17 downloaded core is only a partial or incorrect core.

I suggest deleting it so that we use the avr that is always pre-installed with the arduino ide. 

Delete the following folder then restart the ide

C:\1Drive\workspace\Arduino\_Vmicro\packages\arduino

I also generally don't recommend overriding he contributions folder in the options. It means you end up with a different configuration to the arduino ide which can be confusing unless you fully understand and can communicate the difference  when requiring for support.

If you want more control over downloaded content the arduino ide can be installed from the zip on the aduino web site into your workspace. Then create a folder below the ide called "portable". Both visual micro and arduino will use it for downloaded contributions.

Alternatively leave the contributions path empty so the default it used.
  
Back to top
WWW  
IP Logged
 
An Be
Junior Member
**
Offline


Posts: 14
Joined: Mar 26th, 2017
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #8 - Mar 30th, 2017 at 10:05am
Print Post  
hello tim, 

i now have following situation: i cleared all VS+VM+Arduino installation on my win10 and reinstalled VM2015comm + Vmlatest + Arduino 1.81 this let the aruduino AVRs compile ok. but when installing any other package like digistump or sanguino the a.m. tool chain fails again with the same error ...

arduino.h: 23:20: fatal error: stdlib.h: No such file or directory
   #include <stdlib.h>
   compilation terminated

do you have any other idea?

thx andreas
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #9 - Mar 30th, 2017 at 10:53am
Print Post  
Does it work in the arduino ide?
  
Back to top
WWW  
IP Logged
 
An Be
Junior Member
**
Offline


Posts: 14
Joined: Mar 26th, 2017
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #10 - Mar 30th, 2017 at 11:09am
Print Post  
yes, the arduino IDE always worked - it doesn't care which version (181/182) or which board on the example "blink"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #11 - Mar 30th, 2017 at 11:18am
Print Post  
Please set the tool bar to Visual Micro and not Arduino 1.6/1.8

I think there is a problem with the older boards in board manager that use an old tool chain. It conflicts with the new tools provided with the arduino ide. 

If you just use Visual Micro and Board Manager to install everything you need it will be okay. We will look at supporting both the ide and board manager in future release but you don't need it anymore. Just use the Visual Micro option instead of the Arduino 1.6/1.8 option
« Last Edit: Mar 30th, 2017 at 11:20am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
An Be
Junior Member
**
Offline


Posts: 14
Joined: Mar 26th, 2017
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #12 - Mar 30th, 2017 at 11:22am
Print Post  
sorry, i just didn't mention that the error occurs on both settings in the tool bar ...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #13 - Mar 30th, 2017 at 11:23am
Print Post  
Okay so that probably means you haven't installed an Arduino AVR tool chain in the Board Manager. Install the latest which I think is 1.6.17, then click rescan.
  
Back to top
WWW  
IP Logged
 
An Be
Junior Member
**
Offline


Posts: 14
Joined: Mar 26th, 2017
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #14 - Mar 30th, 2017 at 11:38am
Print Post  
tha AVR toolchain is set and works, only addiional boards fail in the enviroment, eg tool bar -> visual micro -> board sanguino
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #15 - Mar 30th, 2017 at 11:47am
Print Post  
The output you emailed to me was for the arduino uno.
« Last Edit: Mar 30th, 2017 at 11:50am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
An Be
Junior Member
**
Offline


Posts: 14
Joined: Mar 26th, 2017
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #16 - Mar 30th, 2017 at 11:56am
Print Post  
correct, it was made with VM2017 - my workaround was then the step back to VM2015. i will provide you with the current error files today or tomorrow
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #17 - Mar 30th, 2017 at 9:17pm
Print Post  
Hi,

Please try the latest version of visual micro from here

This release better manages the situation where a board core was designed for an older toolchain which is not installed but a newer or similar tool chain can be found. 

Thanks
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #18 - Mar 30th, 2017 at 9:45pm
Print Post  
You have sent an email saying the update did not help.

Using the "Visual Micro" option you need to install an Arduino AVR board package such as 1.6.18 (the latest) in Board Manager.

OR

You can use the Arduino 1.6/1.8 option in Visual Micro. The issues caused by the arduino 1.8.2 update have been resolved. read below.

....

Restart the ide after making changes. If you still have build problem then email the output again.

Thanks



Info

Arduino have made a fix today that will make board manager work better. That along with the latest visual micro gives a system that better handles tool chain versions that are not installed. 

Some older boards such as the digistump rely on (were designed for) an older version of arduino. Visual Micro will now automatically use the latest version if the older version is no longer installed.

Which AVR toolchain have you installed on Board Manager? If none then you should install one, probably the latest. Or use the Arduino 1.6/1.8 application in Visual Micro
« Last Edit: Mar 30th, 2017 at 9:46pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017comm + latest VM + Arduino 1.8.x
Reply #19 - Apr 4th, 2017 at 5:58pm
Print Post  
Thanks for the email. 

You have said that installing hardware using the visual micro board manager has caused some issues because some files were not installed.extracted. That using the board manager in the arduino ide resolved the issue.

Can you please tell me which hardware you were installing.

Thanks
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint