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) NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file? (Read 10599 times)
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Sep 4th, 2016 at 1:14pm
Print Post  
I've installed the ESP-8266 v2.3.0 library using the board manager. It's installed to C:\Users\Joe\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0

I cant change the install location, my sketchbook location is set to Z:\general-backup\Software\Arduino%20Development\Default Sketchbook

So how can i make boards install to the sketchbook/hardware folder?

Next question, the build fails when selecting NodeMCU 1.0 (ESP-12E Module)

Build results:
(separate posts due to post length restrictions)
« Last Edit: Sep 4th, 2016 at 1:18pm by j12 »  
Back to top
 
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Reply #1 - Sep 4th, 2016 at 1:16pm
Print Post  
Code
Select All
Compiling debug version of 'DoorbellMP3' for 'NodeMCU 1.0 (ESP-12E Module)'
Build folder: v2
Additional Defines: VM_DEBUG;VM_DEBUG_ENABLE 1;VM_DEBUG_BANDWIDTH_THROTTLE_MS 33;VM_DEBUGGER_TYPE_HARDWARESERIAL 0;VM_DEBUGGER_TYPE_SOFTWARESERIAL 1;VM_DEBUGGER_TYPE_FASTSERIAL 2;VM_DEBUGGER_TYPE_USB 3;VM_DEBUGGER_TYPE_TEENSY 4;VM_DEBUGGER_TYPE_UART 5;VM_DEBUGGER_TYPE_USART 6;VM_DEBUGGER_TYPE_USBSERIAL 7;VM_DEBUGGER_TYPE_TTYUART 8;VM_DEBUGGER_TYPE_NET_CONSOLE 9;VM_DEBUGGER_TYPE_Uart 10;VM_DEBUGGER_TYPE_COSA 11;VM_DEBUGGER_TYPE_CDCSerialClass 12;VM_DEBUGGER_TYPE_HARDWARESERIAL1 13;VM_DEBUGGER_TYPE_HARDWARESERIAL2 14;VM_DEBUGGER_TYPE_HARDWARESERIAL3 15;VM_DEBUGGER_TYPE VM_DEBUGGER_TYPE_HARDWARESERIAL;VM_DEBUG_BREAKPAUSE;
Architecture Tools: \1.20.0-26-gb404fb9-2/bin/
Sketchbook: file:\\\Z:\general-backup\Software\Arduino%20Development\Default%20Sketchbook
Sketch Include Paths
Core Include Paths
Include Path res\esp8266'
Include Path riants\nodemcu'
Library Include Paths (1)
c\1.20.0-26-gb404fb9-2\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip/include" re" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=106011 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers" cores\esp8266" variants\nodemcu" bellMP3.cpp" -o "nul"
c\1.20.0-26-gb404fb9-2\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip/include" re" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=106011 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers" cores\esp8266" variants\nodemcu" -I"Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src" "Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src\WiFiEspClient.cpp" -o "nul"
c\1.20.0-26-gb404fb9-2\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip/include" re" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=106011 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers" cores\esp8266" variants\nodemcu" -I"Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src" "Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src\WiFiEsp.cpp" -o "nul"
c\1.20.0-26-gb404fb9-2\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip/include" re" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=106011 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers" cores\esp8266" variants\nodemcu" -I"Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src" "Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src\WiFiEspUdp.cpp" -o "nul"
 

  
Back to top
 
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Reply #2 - Sep 4th, 2016 at 1:17pm
Print Post  
continued...

Code
Select All
c\1.20.0-26-gb404fb9-2\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip/include" re" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=106011 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers" cores\esp8266" variants\nodemcu" -I"Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src" "Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src\WiFiEspServer.cpp" -o "nul"
c\1.20.0-26-gb404fb9-2\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip/include" re" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=106011 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers" cores\esp8266" variants\nodemcu" -I"Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src" "Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src\utility\RingBuffer.cpp" -o "nul"
c\1.20.0-26-gb404fb9-2\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip/include" re" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=106011 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers" cores\esp8266" variants\nodemcu" -I"Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src" "Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src\utility\EspDrv.cpp" -o "nul"
c\1.20.0-26-gb404fb9-2\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip/include" re" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=106011 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\go3lalhr.4sd\Micro Platforms\default\debuggers" cores\esp8266" variants\nodemcu" -I"Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src" "Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src\utility\EspDrv.cpp" -o "nul"

EspDrv.cpp: 20:26: fatal error: avr/pgmspace.h: No such file or directory
   #include <avr/pgmspace.h>
   compilation terminated


	An error was encountered during the 'Deep Search' discovery process.
	Either resolve the error or switch off the 'Deep Search Includes' option.
	Tip: When deep search is switched off, headers must be #included in the [project_name.ino] for all required libraries (for example: #include <SPI.h>)
	Tip: Deep search must be off if the project source contains links/shortcuts to code outside of the project structure. The source will have been #included using a relative path preceeded by ..\ (for example: #include "..\..\foo\foo.h")
 

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Reply #3 - Sep 4th, 2016 at 7:24pm
Print Post  
There have been a lot of changes in arduino and also the esp8266

The arduino board manager system doesn't use the sketchbook\hardware folder and has to be where it is.

The esp8266 system has also been through a lot of changes and has migrated to the arduino board manager system.

In many cases older libraries for esp2266 might not be relevant and the esp8266 is more mature than it used to be which means it provides a large number of build-in libraries that are installed with the hardware. 

Many of the esp lib names start with ESP8266_ so they are easy to spot and there is a wifi one.

Can you please tell me if your code compiles in the arduino ide?

Thanks
  
Back to top
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Reply #4 - Sep 5th, 2016 at 11:53am
Print Post  
No, same error.

Code
Select All

Z:\general-backup\Software\Arduino Development\Default Sketchbook\libraries\WiFiEsp\src\utility\EspDrv.cpp:20:26: fatal error: avr/pgmspace.h: No such file or directory

 #include <avr/pgmspace.h>

                          ^

compilation terminated.

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
 

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Reply #5 - Sep 5th, 2016 at 12:20pm
Print Post  
Okay this is a problem with the library you have used.

As suggested previously I think it is wrong to use the WiFiEsp library and think it should be removed from your sketchbook\libraries folder

I think you need to then look in the list of available/installed libraries to find the real ESP8266_ libraries that includes a wifi and is installed with the hardware (produced by the author of the hardware)

I think the issue is that you found and installed an old library for esp8266 that isn't supported anymore
  
Back to top
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Reply #6 - Sep 10th, 2016 at 7:40pm
Print Post  

I clicked on the ESP library in the lib manager, it went grey, but after rescanning over and over there seems to be no way to install it, so, i opened arduino, inserted the json line in prefs, went to board manager and clicked on the ESP library. It then gives a drop menu to select the version (this is missing from VM board manager?) so i chose 2.3.0.
My project now compiles in arduino.
It also compiles in VS now too. The visual micro library manager seems broken in some way? But im working now.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Reply #7 - Sep 10th, 2016 at 7:51pm
Print Post  
Thanks for the update.

Do you mean board manager and not library manager?
  
Back to top
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Reply #8 - Sep 10th, 2016 at 8:03pm
Print Post  
Without changing anything, i closed and reopened visual studio, and now it wont compile, same error as 1st post.

Arduino IDE working just fine so i've had to abandon Visual studio and VM for the moment until this can be fixed.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NodeMCU 1.0 (ESP-12E Module) -- Build error, missing file?
Reply #9 - Sep 10th, 2016 at 8:19pm
Print Post  
Okay these are the things that will help solve the puzzle when you have a mo...

1) in visual micro make sure there isn't an esp866 json file specified in the Ide Locations window

2) switch on arduino ide file>preferences>verbose and then compile and email or attach the output as a .txt file to this thread. email to info[at]visualmicro.com

3) Switch on "vmicro>compiler>show build properties" and "vmicro>compiler>verbose". then click build>clean. Then build and post the output as .txt or email.

4) If you are using a library you have downloaded from the web then please give the url. If installed using library manager then please give the name(s)

Sorry if you have already submitted this information. If so let me know.

Thanks

« Last Edit: Sep 10th, 2016 at 8:45pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint