ninharp / ninESP

ninHOME Node - Web Configurable Modular ESP8266 Firmware
https://ninharp.github.io/ninESP/
26 stars 10 forks source link

Compiling dev wont work #13

Open florian-asche opened 5 years ago

florian-asche commented 5 years ago
export ESP_HOME=/opt/esp-open-sdk
cd /opt/
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
cd esp-open-sdk
make VENDOR_SDK=1.5.1 STANDALONE=y

cd  $ESP_HOME
git clone https://github.com/raburton/esptool2
cd esptool2
make
export PATH=$PATH:$ESP_HOME/esptool2

cd /opt/
git clone --branch dev --recurse-submodules https://github.com/ninharp/ninESP.git
cd ninESP

cd Sming/Sming 
# Checkout to develop branch of Sming
git checkout develop --recurse-submodules
# Update Sming submodules
git submodule update --init --recursive
# Do a dist clean on the Sming repository
make dist-clean
# Change back to ninESP
cd ../..

./patch-linux.sh
export SMING_HOME=/opt/ninESP/Sming/Sming
export PATH=/opt/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
make clean

# Compile
make all

# Erase the ESP8266 flash
make flashinit

# Flash the firmware
make flash
stem/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/timers.o lwip/core/timers.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/udp.o lwip/core/udp.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/ipv4/autoip.o lwip/core/ipv4/autoip.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/ipv4/icmp.o lwip/core/ipv4/icmp.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/ipv4/igmp.o lwip/core/ipv4/igmp.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/ipv4/inet.o lwip/core/ipv4/inet.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/ipv4/inet_chksum.o lwip/core/ipv4/inet_chksum.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/ipv4/ip_addr.o lwip/core/ipv4/ip_addr.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/ipv4/ip.o lwip/core/ipv4/ip.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/core/ipv4/ip_frag.o lwip/core/ipv4/ip_frag.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/netif/etharp.o lwip/netif/etharp.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o lwip/app/dhcpserver.o lwip/app/dhcpserver.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -Os -Iinclude -I/opt/esp-open-sdk/sdk/include -Wl,-EL -mlongcalls -mtext-section-literals -I/opt/ninESP/Sming/Sming/System/include -IArch/Esp8266/System/include -IArch/Esp8266/Components/esp8266/include -I/opt/ninESP/Sming/Sming/Wiring -Wl,-EL -finline-functions -fdata-sections -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals   -c -o espconn_dummy.o espconn_dummy.c
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ar rcs /opt/ninESP/Sming/Sming/Arch/Esp8266/Compiler/lib/liblwip_open.a lwip/core/def.o lwip/core/dhcp.o lwip/core/dns.o lwip/core/init.o lwip/core/mem.o lwip/core/memp.o lwip/core/netif.o lwip/core/pbuf.o lwip/core/raw.o lwip/core/sntp.o lwip/core/stats.o lwip/core/sys_arch.o lwip/core/sys.o lwip/core/tcp.o lwip/core/tcp_in.o lwip/core/tcp_out.o lwip/core/timers.o lwip/core/udp.o lwip/core/ipv4/autoip.o lwip/core/ipv4/icmp.o lwip/core/ipv4/igmp.o lwip/core/ipv4/inet.o lwip/core/ipv4/inet_chksum.o lwip/core/ipv4/ip_addr.o lwip/core/ipv4/ip.o lwip/core/ipv4/ip_frag.o lwip/netif/etharp.o lwip/app/dhcpserver.o espconn_dummy.o
make[3]: Verzeichnis „/opt/ninESP/Sming/Sming/Arch/Esp8266/Components/esp-open-lwip/esp-open-lwip“ wird verlassen
Installing 'sming' library
(!) SSL support is not enabled. To enable it type: 'make clean; make ENABLE_SSL=1'
Done
make --no-print-directory -C Arch/Esp8266/Tools/spiffy TARGET=/opt/ninESP/Sming/Sming/Arch/Esp8266/Tools/spiffy/spiffy BUILD_DIR=/opt/ninESP/Sming/Sming/out/build/Esp8266/Arch/Esp8266/Tools/spiffy/Linux V= SPIFFS_SMING=/opt/ninESP/Sming/Sming/Arch/Esp8266/Components/spiffs SPIFFS_BASE=/opt/ninESP/Sming/Sming/Components/spiffs
CC spiffy.c
CC /opt/ninESP/Sming/Sming/Components/spiffs/src/spiffs_cache.c
CC /opt/ninESP/Sming/Sming/Components/spiffs/src/spiffs_nucleus.c
CC /opt/ninESP/Sming/Sming/Components/spiffs/src/spiffs_hydrogen.c
CC /opt/ninESP/Sming/Sming/Components/spiffs/src/spiffs_gc.c
CC /opt/ninESP/Sming/Sming/Components/spiffs/src/spiffs_check.c
LD /opt/ninESP/Sming/Sming/Arch/Esp8266/Tools/spiffy/spiffy
make --no-print-directory -C Arch/Esp8266/Tools/esptool2 TARGET=/opt/ninESP/Sming/Sming/Arch/Esp8266/Tools/esptool2/esptool2 BUILD_DIR=/opt/ninESP/Sming/Sming/out/build/Esp8266/Arch/Esp8266/Tools/esptool2/Linux V= 
CC esptool2.c
gcc -O2 -Wall -std=c99 -c esptool2.c -o /opt/ninESP/Sming/Sming/out/build/Esp8266/Arch/Esp8266/Tools/esptool2/Linux/esptool2.o
CC esptool2_elf.c
gcc -O2 -Wall -std=c99 -c esptool2_elf.c -o /opt/ninESP/Sming/Sming/out/build/Esp8266/Arch/Esp8266/Tools/esptool2/Linux/esptool2_elf.o
LD /opt/ninESP/Sming/Sming/Arch/Esp8266/Tools/esptool2/esptool2
gcc -o /opt/ninESP/Sming/Sming/Arch/Esp8266/Tools/esptool2/esptool2 /opt/ninESP/Sming/Sming/out/build/Esp8266/Arch/Esp8266/Tools/esptool2/Linux/esptool2.o /opt/ninESP/Sming/Sming/out/build/Esp8266/Arch/Esp8266/Tools/esptool2/Linux/esptool2_elf.o
make[2]: Verzeichnis „/opt/ninESP/Sming/Sming“ wird verlassen
Installing 'sming' library
(!) SSL support is not enabled. To enable it type: 'make clean; make ENABLE_SSL=1'
Done
make[1]: Verzeichnis „/opt/ninESP/Sming/Sming“ wird verlassen
make -C /opt/ninESP/Sming/Sming/Arch/Esp8266/Components/rboot/rboot
make[1]: Verzeichnis „/opt/ninESP/Sming/Sming/Arch/Esp8266/Components/rboot/rboot“ wird betreten
CC rboot-stage2a.c
LD /opt/ninESP/out/build/Esp8266/rboot-stage2a.elf
E2 /opt/ninESP/out/build/Esp8266/rboot-hex2a.h
CC rboot.c
LD /opt/ninESP/out/build/Esp8266/rboot.elf
E2 /opt/ninESP/out/firmware/rboot.bin
make[1]: Verzeichnis „/opt/ninESP/Sming/Sming/Arch/Esp8266/Components/rboot/rboot“ wird verlassen
Checking for spiffs files
web/build directory exists. Creating out/firmware/spiff_rom.bin
Creating rom 'out/firmware/spiff_rom.bin' of size 0x3d090 (250000) bytes.
Adding files in directory 'web/build'.
Added 'style.css.gz' to spiffs (1136 bytes).
Added 'wifi-sprites.png' to spiffs (1769 bytes).
Added 'helper.js.gz' to spiffs (742 bytes).
Added 'settings.html' to spiffs (4222 bytes).
Added 'bootstrap-core.css.gz' to spiffs (16117 bytes).
Added 'index.html' to spiffs (6341 bytes).
Added 'core.js.gz' to spiffs (30471 bytes).
Added 'mqtt.html' to spiffs (2905 bytes).
Added 'periph.html' to spiffs (8577 bytes).
Added '.lastModified' to spiffs (29 bytes).
OC out/build/Esp8266/libmain2.a
C+ app/webinterface.cpp
In file included from app/application.h:14:0,
                 from app/webinterface.cpp:11:
include/user_config.h:26:40: fatal error: espinc/c_types_compatible.h: No such file or directory
  #include <espinc/c_types_compatible.h>
                                        ^
compilation terminated.
/opt/ninESP/Sming/Sming/modules.mk:71: recipe for target 'out/build/Esp8266/app/webinterface.o' failed
make: *** [out/build/Esp8266/app/webinterface.o] Error 1
florian-asche commented 5 years ago
export ESP_HOME=/opt/esp-open-sdk
cd /opt/
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
cd esp-open-sdk
make VENDOR_SDK=1.5.1 STANDALONE=y

cd  $ESP_HOME
git clone https://github.com/raburton/esptool2
cd esptool2
make
export PATH=$PATH:$ESP_HOME/esptool2

cd /opt/
git clone --branch dev --recurse-submodules https://github.com/ninharp/ninESP.git
cd ninESP

cd Sming/Sming
make dist-clean
cd ..
git checkout 28b05f15700e05e143a9b50d421debd3252171f9
cd ..

./patch-linux.sh
export SMING_HOME=/opt/ninESP/Sming/Sming
export PATH=/opt/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
make clean

# Compile
make all

# Erase the ESP8266 flash
make flashinit

# Flash the firmware
make flash

also not working

souravj96 commented 4 years ago

@florian-asche try to download it manually from this url https://github.com/Sermus/ESP8266_ArduinoIDE/blob/master/Espressif/ESP8266/cores/esp8266/Sming/Sming/system/include/espinc/c_types_compatible.h and place it inside Sming/Sming/Arch/Esp8266/Components/esp8266/include/espinc/c_types_compatible.h

sheminasalam commented 4 years ago

did the compilation work?