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) Intellisense cannot open source file 'pthread.h' (also unistd.h) (Read 11042 times)
Richard-D
Junior Member
**
Offline


Posts: 12
Joined: Dec 21st, 2014
Intellisense cannot open source file 'pthread.h' (also unistd.h)
Mar 28th, 2015 at 7:31pm
Print Post  
I have installed Visual Micro on Microsoft Visual Studio Community 2013, but it is far from working correctly. If have an empty sketch (only setup and loop):

Code (C++)
Select All
void setup() { }

void loop() { } 




But I get these messages in the error list. Any idea how to solve this?




     3      IntelliSense: cannot open source file "pthread.h"      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\TTYUART.h      27      1      IntelTest
     2      IntelliSense: cannot open source file "unistd.h"      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\interrupt.h      33      1      IntelTest
     4      IntelliSense: cannot open source file "unistd.h"      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\UtilTime.h      29      1      IntelTest
     21      IntelliSense: cannot open source file "unistd.h"            24      1      IntelTest
     1      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\HardwareSerial.h      40      13      IntelTest
     5      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      26      16      IntelTest
     6      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      27      16      IntelTest
     7      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      28      16      IntelTest
     8      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      29      16      IntelTest
     9      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      30      16      IntelTest
     10      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      31      16      IntelTest
     11      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      32      16      IntelTest
     12      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      33      16      IntelTest
     13      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      34      16      IntelTest
     14      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      35      16      IntelTest
     15      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      36      16      IntelTest
     16      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      37      16      IntelTest
     17      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      38      16      IntelTest
     18      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      39      12      IntelTest
     19      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      40      12      IntelTest
     20      IntelliSense: expected a '{'      c:\Intel\arduino-1.6.0+Intel\hardware\intel\i686\cores\arduino\WCharacter.h      41      12      IntelTest
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense cannot open source file 'pthread.h' (also unistd.h)
Reply #1 - Mar 28th, 2015 at 9:29pm
Print Post  
Hi,

This might just be an intellisense update is required for the new editson ide which we haven't tested with yet.

Does the compile work? The compile and the intellisense are separate items.

Thanks
  
Back to top
IP Logged
 
Richard-D
Junior Member
**
Offline


Posts: 12
Joined: Dec 21st, 2014
Re: Intellisense cannot open source file 'pthread.h' (also unistd.h)
Reply #2 - Mar 29th, 2015 at 3:28pm
Print Post  
The build does not work also. I get this output from the Micro Build window (tried every COM port available):

Uploading to I/O board using 'COM5'
Uploader started for board Intel® Edison
Upload method will be: bootloader
Uploading via Bootloader 
c:\Intel\arduino-1.6.0+Intel\hardware\tools\x86\bin\bash.exe "--verbose" "--noprofile" "{cmd.script}" "{cmd.bin}" "{upload.elf}" "COM5"
/usr/bin/bash: {cmd.script}: No such file or directory
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense cannot open source file 'pthread.h' (also unistd.h)
Reply #3 - Mar 29th, 2015 at 3:34pm
Print Post  
Okay thanks. There have been some major ide changes during the past month between arduino and others.

We are working on the next release of vm and there is sometimes a small lag when major changes occur

We support the previous release of the intel edison/arduino ide which was compatible with arduino 1.5.x. 

It sounds like we don't support the new edison ide release

Arduino has also just release 1.6.2 and that breaks everything. So we support up to version 1.6.1 of Arduino and the 1.5.x version of the Intel Ide.

If you can't find the previous intel ide ver let me know and I will find you a link.

We will review the Intel Ide along with the changes we make for arduino 1.6.2. 

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense cannot open source file 'pthread.h' (also unistd.h)
Reply #4 - Mar 29th, 2015 at 3:37pm
Print Post  
Previous Intel release is here 

https://downloadcenter.intel.com/download/24782
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense cannot open source file 'pthread.h' (also unistd.h)
Reply #5 - Mar 29th, 2015 at 7:07pm
Print Post  
I had a look at the latest ide for the Edison and it might be easy for you to make it work with visual micro

Edit the applications.txt in "programfiles/visual micro/visual micro for arduino/micro platforms"

You will find a line of text in the file like this
Code
Select All
intelarduino15x.upload.maximum_size=262144 



change it to have the additional line as shown below
Code
Select All
intelarduino15x.upload.maximum_size=262144
intelarduino15x.build.working_directory={runtime.ide.path} 




The re-start the visual micro ide
« Last Edit: Mar 29th, 2015 at 7:09pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Rei Vilo
Member
***
Offline


Posts: 123
Joined: Jan 10th, 2012
Re: Intellisense cannot open source file 'pthread.h' (also unistd.h)
Reply #6 - Mar 29th, 2015 at 7:10pm
Print Post  
Tim@Visual Micro wrote on Mar 29th, 2015 at 3:34pm:
Arduino has also just release 1.6.2 and that breaks everything. So we support up to version 1.6.1 of Arduino


The ASCII files for boards, platforms and programmers are no longer under C:\Autres\arduino-1.6.0\hardware\avr  but are now located under the hidden folder [font=Courier .2[/font].

All the material for the Arduino Due is an optional download.

It looks like Arduino wants to destroy everything  Sad
« Last Edit: Mar 29th, 2015 at 7:37pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense cannot open source file 'pthread.h' (also unistd.h)
Reply #7 - Mar 29th, 2015 at 7:40pm
Print Post  
Thanks Smiley What a waste of time  Smiley
  
Back to top
IP Logged
 
Richard-D
Junior Member
**
Offline


Posts: 12
Joined: Dec 21st, 2014
Re: Intellisense cannot open source file 'pthread.h' (also unistd.h)
Reply #8 - Mar 30th, 2015 at 6:51am
Print Post  
Tim@Visual Micro wrote on Mar 29th, 2015 at 7:07pm:
intelarduino15x.build.working_directory={runtime.ide.path}

Made the changes, issues remain Sad
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intel upload fails
Reply #9 - Apr 29th, 2015 at 6:57pm
Print Post  
Sorry for the delay. 

If of interest the latest beta of Visual Micro supports Intel boards using the new Arduino 1.6.3 downloadable firmware system or using the modified Intel Ide.

The issue was that Visual Micro was not extracting platform specific build commands (windows as opposed to mac or linux) from the platform definition. 

Intel are the first company to use different upload commands for different pc o/s platforms so a good bug found and thanks for reporting it.
« Last Edit: Apr 29th, 2015 at 6:59pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint