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
Normal Topic Oak (ESP8266) no longer compiles (solved, use arduino board manager to install esp8266) (Read 5218 times)
Nevyn
Junior Member
**
Offline


Posts: 11
Location: North Yorkshire
Joined: Apr 13th, 2016
Oak (ESP8266) no longer compiles (solved, use arduino board manager to install esp8266)
Jun 10th, 2016 at 11:49am
Print Post  
Just made two updates today so not sure which one breaks the compilation - lovely.

So started VS this morning and it told me there was an update to Visual Micro so I installed this.

Next thing, I remembered that there was an update to the Oak libraries, they are now at version 1.0.2 so I used the Visual Micro managed to download the new libraries.

That's when things started to go wrong.  I noticed that there was no syntax highlighting for the String and uint8_t types, odd.  Hitting the compile shortcut generated an error.  OK, might be a library problem, so go back to 1.0.1 which I know did work earlier in the week when I last rebuilt my projects.  Restart VS and I get a similar error.

I am getting the message Error compiling core in the output window.

Any advice would be welcome,
Mark
« Last Edit: Jun 10th, 2016 at 6:57pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Oak (ESP8266) no longer compiles
Reply #1 - Jun 10th, 2016 at 11:51am
Print Post  
Switch on VMicro>Compiler>Verbose then click Build>Clean then build and post or email the output
  
Back to top
IP Logged
 
Nevyn
Junior Member
**
Offline


Posts: 11
Location: North Yorkshire
Joined: Apr 13th, 2016
Re: Oak (ESP8266) no longer compiles
Reply #2 - Jun 10th, 2016 at 1:09pm
Print Post  
Compiler output:

Code
Select All
Compiling 'I2CTest' for 'Oak by Digistump (Pin 1 Safe Mode - Default)'
Build folder: file:///C:/Users/Mark/AppData/Local/Temp/VMicroBuilds/I2CTest/digistump_oak1
Summary: Header=1 Prototypes=3 Imports=1
Additional Defines:
Architecture Tools: {runtime.tools.xtensa-lx106-elf-gcc.path}/bin/
Sketchbook: file:\\\Y:\SoftwareDevelopment\Arduino
Sketch Include Paths
Include Path 'Y:\SoftwareDevelopment\Arduino\I2CTest'
Core Include Paths
Include Path ores\oak'
Include Path ariants\oak1'
Library Include Paths (1)
Include Path ibraries\Wire'
All import libraries will be re-compiled
Build Core Paths: res\oak
"{runtime.tools.xtensa-lx106-elf-gcc.path}/bin/xtensa-lx106-elf-gcc" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ /tools/sdk/include" -c -g -x assembler-with-cpp -MMD -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_OAK -DARDUINO_ARCH_OAK -DESP8266 \cores\oak" \variants\oak1" ores\oak\cont.S" -o S.o" 
The system cannot find the file specified
	Process: "{runtime.tools.xtensa-lx106-elf-gcc.path}\bin\xtensa-lx106-elf-gcc" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ /tools/sdk/include" -c -g -x assembler-with-cpp -MMD -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_OAK -DARDUINO_ARCH_OAK -DESP8266 \cores\oak" \variants\oak1" ores\oak\cont.S" -o S.o" 
"{runtime.tools.xtensa-lx106-elf-gcc.path}/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ /tools/sdk/include" -c -O2 -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_OAK -DARDUINO_ARCH_OAK -DESP8266 \cores\oak" \variants\oak1" ariants\oak1\pins_arduino.cpp" -o arduino.cpp.o"
The system cannot find the file specified
	Process: "{runtime.tools.xtensa-lx106-elf-gcc.path}\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ /tools/sdk/include" -c -O2 -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_OAK -DARDUINO_ARCH_OAK -DESP8266 \cores\oak" \variants\oak1" ariants\oak1\pins_arduino.cpp" -o arduino.cpp.o"
Error compiling core 

« Last Edit: Jun 10th, 2016 at 1:12pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Oak (ESP8266) no longer compiles
Reply #3 - Jun 10th, 2016 at 1:14pm
Print Post  
Thanks

Please open the Arduino Ide and use the Board Manager to install the latest esp core.

Visual Micro uses the SharpZip library to unpack the zips and tar files. For some reason the esp8266 libs sometimes don't expand correctly. 

So using the Arduino board manager for the esp core is best right now. The author of the sharplib system has tried to fix this recently but obviously not with much success.

Restart Visual micro after installing via Arduino or click the "Micro Explorer>Rescan"
« Last Edit: Jun 10th, 2016 at 1:15pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Nevyn
Junior Member
**
Offline


Posts: 11
Location: North Yorkshire
Joined: Apr 13th, 2016
Re: Oak (ESP8266) no longer compiles
Reply #4 - Jun 10th, 2016 at 2:00pm
Print Post  
Had to remove the library totally using the Arduino IDE and then add it back in.

I'm now back up and running - thanks for the quick turn around.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Oak (ESP8266) no longer compiles
Reply #5 - Jun 10th, 2016 at 2:10pm
Print Post  
I will log it again with SharpLibZip

Thanks for the update
  
Back to top
IP Logged
 
Nevyn
Junior Member
**
Offline


Posts: 11
Location: North Yorkshire
Joined: Apr 13th, 2016
Re: Oak (ESP8266) no longer compiles
Reply #6 - Jun 10th, 2016 at 5:11pm
Print Post  
Let me know if you need someone to test the fix.

Regards,
Mark
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint