ESP8266 LUA and the ongoing issues with Windows

I just grabbed the latest Windows-compatible Lua software and tried to import it into Eclipse on Windows…   followed the usual -  put it in examples after renaming to “nodemcu-firmware”.  Imported, tried CLEAN and..

09:22:43 **** Build of configuration Default for project nodemcu-firmware ****
make clean
Cannot run program "make": Launching failed

Error: Program "make" not found in PATH
PATH=[C:\Windows\system32;C:/Program Files (x86)/Java/jre1.8.0_25/bin/client;C:/Program Files (x86)/Java/jre1.8.0_25/bin;C:/Program Files (x86)/Java/jre1.8.0_25/lib/i386;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Oracle\Java\javapath;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\adb;C:\Program Files\nodejs\;C:\Users\Peter\AppData\Roaming\npm;C:\Espressif\xtensa-lx106-elf\bin]

09:22:43 Build Finished (took 47ms)

Oh dear.


3 thoughts on “ESP8266 LUA and the ongoing issues with Windows

  1. # WIN32
    # We are under windows.
    ifeq ($(XTENSA_CORE),lx106)
    # It is xcc
    AR = xt-ar
    CC = xt-xcc
    NM = xt-nm
    CPP = xt-cpp
    OBJCOPY = xt-objcopy
    #MAKE = xt-make
    CCFLAGS += -Os –rename-section .text=.irom0.text –rename-section .literal=.irom0.literal
    # It is gcc, may be cygwin
    # Can we use -fdata-sections?
    CCFLAGS += -Os -ffunction-sections -fno-jump-tables
    AR = xtensa-lx106-elf-ar
    CC = xtensa-lx106-elf-gcc
    NM = xtensa-lx106-elf-nm
    CPP = xtensa-lx106-elf-cpp
    OBJCOPY = xtensa-lx106-elf-objcopy
    MAKE = mingw32-make #add this line

    I think MAKE should be mingw32-make.exe not the default make.exe in Makefile.

  2. See other comment… resulted in a clean compile all the way through to the end then..

    xtensa-lx106-elf-gcc -L../lib -nostdlib -T../ld/ -Wl,–no-check-sections -u call_user_start -Wl,-static -Wl,–start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -lwpa -lmain -ljson user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a lwip/.output/eagle/debug/lib/liblwip.a json/.output/eagle/debug/lib/libjson.a ssl/.output/eagle/debug/lib/libssl.a upgrade/.output/eagle/debug/lib/libupgrade.a platform/.output/eagle/debug/lib/libplatform.a libc/.output/eagle/debug/lib/liblibc.a lua/.output/eagle/debug/lib/liblua.a smart/.output/eagle/debug/lib/smart.a wofs/.output/eagle/debug/lib/wofs.a spiffs/.output/eagle/debug/lib/spiffs.a modules/.output/eagle/debug/lib/libmodules.a -Wl,–end-group -o .output/eagle/debug/image/
    ../tools/ elf2image .output/eagle/debug/image/ -o ..\\bin\\
    make[1]: ../tools/ Command not found
    make[1]: *** [.output/eagle/debug/bin/] Error 127
    make[1]: Leaving directory `/c/Espressif/examples/nodemcu-firmware/app’
    make: *** [.subdirs] Error 2

    11:55:37 Build Finished (took 1m:866ms)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s