VS Arduino
>> >> VS2017comm + latest VM + Arduino 1.8.x
https://www.visualmicro.com/forums/YaBB.pl?num=1490551047

Message started by An Be on Mar 26th, 2017 at 5:57pm

Title: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Mar 26th, 2017 at 5:57pm
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

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 26th, 2017 at 6:31pm
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

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Mar 27th, 2017 at 7:28am
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 ...

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 27th, 2017 at 1:32pm
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

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Mar 27th, 2017 at 1:58pm
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.

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 27th, 2017 at 2:10pm
Did you email the information requested above?

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Mar 27th, 2017 at 7:15pm
yes, i already did it yesterday ...

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 27th, 2017 at 7:33pm
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.

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Mar 30th, 2017 at 10:05am
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

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 30th, 2017 at 10:53am
Does it work in the arduino ide?

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Mar 30th, 2017 at 11:09am
yes, the arduino IDE always worked - it doesn't care which version (181/182) or which board on the example "blink"

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 30th, 2017 at 11:18am
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

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Mar 30th, 2017 at 11:22am
sorry, i just didn't mention that the error occurs on both settings in the tool bar ...

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 30th, 2017 at 11:23am
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.

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Mar 30th, 2017 at 11:38am
tha AVR toolchain is set and works, only addiional boards fail in the enviroment, eg tool bar -> visual micro -> board sanguino

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 30th, 2017 at 11:47am
The output you emailed to me was for the arduino uno.

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Mar 30th, 2017 at 11:56am
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

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 30th, 2017 at 9:17pm
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

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Mar 30th, 2017 at 9:45pm
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

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Apr 4th, 2017 at 5:58pm
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

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Apr 4th, 2017 at 6:00pm
i used the VM installer only. and it was again the digistump and sanguino stuff. they, btw install an older avr-gcc

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Apr 4th, 2017 at 6:06pm
I am sure the sanguino is very clever but it's always been difficult. I think it needs an overhaul especially with latest tool chains and also the build instructions do not support long file names (missing double quotes around files).

That said Visual Micro should still support it. There have been a number of releases in the past week or so to handle problems associated with platforms that state an older tools version (or no version) yet a newer one is installed.

This situation was compounded with arduino 1.8.2 because it installed versions that were not listed in the indexes. They have rectified that but the newer releases of visual micro handle it better now so we should be much more robust.

What version of visual micro is installed? "Tools>extensions and updates>arduino ide/vm"?

Thanks

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Apr 4th, 2017 at 6:09pm
VM 1703.31.0

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Apr 4th, 2017 at 6:14pm
Ah sorry I missed the fact you installed manually and thought you had used the arduino ide board manager (which you can always do)

In your email you said this:-

[code]boards were not installed properly from VM. there was missing directories and files, so i did it by hand and then it worked
[/code]

Was it the digistump or sandrino packages you had to install manually from the zip before it worked or did you not get to test each individually?

Thanks

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Apr 4th, 2017 at 6:22pm
all failed with "stdlib.h" not found, and i fugured out, that the avr dir was not installed (see pic)
Screenshot_202231_0417.png ( 16 KB | 1 Download )

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Apr 4th, 2017 at 7:02pm
Thanks, I will try updating the SharpLibZip from Git. It's used for the unpack. It's strange because I installed the same toolchain okay.

One question. Can you confirm that in addition to digistump and snguino you were also installed Arduino AVR? The screen shot related to the arduino toolchain.


Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Apr 4th, 2017 at 7:08pm
as i stated, i installed everything via VM also AVR, but all come up with the missing stdlib error. i asume, that this is in combination to have not a 100% clean system, just a handmade cleaning ...

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Apr 4th, 2017 at 7:12pm
Thanks, was that avr 1.6.18?

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by An Be on Apr 4th, 2017 at 7:19pm
yes

Title: Re: VS2017comm + latest VM + Arduino 1.8.x
Post by Visual Micro on Apr 14th, 2017 at 5:55pm
@Lino : New thread created here for an "intellisense only" error report.

@AnBe the latest update contains an update SharpZip library. I hope that solves any issues expanding the package zip,tar,gzip files etc.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.