arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.04k stars 4.78k forks source link

LwIP variant "v1.4 Prebuilt" not available in Arduino IDE #2448

Closed dweston closed 6 years ago

dweston commented 6 years ago

Reached the "Configure Arduino IDE" stage and all OK except there is no 'v1.4 Prebuilt' option available in the "IwIP Variant:" drop down menu. Only options available are: v2 Lower Memory v2 Higher Bandwidth v1.4 Higher Bandwidth v1.4 Compile from source

Have I missed something?

alton76 commented 6 years ago

I’m assuming you are using ESP2.4 built

Select V2 lover Memory

On Sun, Apr 15, 2018 at 4:58 PM Dion Weston notifications@github.com wrote:

Reached the "Configure Arduino IDE" stage and all OK except there is no 'v1.4 Prebuilt' option available in the "IwIP Variant:" drop down menu. Only options available are: v2 Lower Memory v2 Higher Bandwidth v1.4 Higher Bandwidth v1.4 Compile from source

Have I missed something?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/2448, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae1zH6cRdyhYRrziGn_e3Jwq-zD_Vp8Mks5towucgaJpZM4TVZOg .

dweston commented 6 years ago

Yes I'm using the ASP2.4.1 build.

Thank you. I will proceed with "v2 Lower Bandwidth" selected.

arendst commented 6 years ago

Just updated the wiki with the relevant information https://github.com/arendst/Sonoff-Tasmota/wiki/Arduino-IDE

dweston commented 6 years ago

Interesting that after selecting the "v2 Lower Bandwidth" LwIP variant option, as per the advice above, when I proceeded to the "Compile Tasmota" action the complied failed - 'exit status 1'. While I considered what to try next I took a look back at the 'IwIP Variant:' options menu and the content had entirely changed from the original: "v2 Lower Memory v2 Higher Bandwidth v1.4 Higher Bandwidth v1.4 Compile from source"

to

"v2 Prebuilt (MSS=536) v2 Prebuilt (MSS=1460, unstable) v1.4 Prebuilt v1.4 Compile from source"

Given earlier advice I'd noted in this issues list, I selected 'v1.4 Prebuilt' and tried to re-compile. The compile failed again

I think the most relevant elements of the compile error messages - which appear identical to the first compile attempt - are as follows:

Arduino: 1.8.5 (Mac OS X), Board: "Generic ESP8266 Module, Serial, 80 MHz, nodemcu, 26 MHz, 40MHz, DOUT, 1M (no SPIFFS), v1.4 Prebuilt, Disabled, None, 115200" ....... /libraries/SPI/SPI.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_181118/arduino.ar" -lhal -lphy -lpp -lnet80211 -llwip_gcc -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lmesh -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,--end-group "-L/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_181118" /Applications/Tasmota.app/Contents/Java/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lmesh collect2: error: ld returned 1 exit status ........ exit status 1 Error compiling for board Generic ESP8266 Module.

arendst commented 6 years ago

Your file paths may be too long using kv/n5vj2lv54bs9blbz41m3nqnc0000gs ?

dweston commented 6 years ago

I've reduced the file paths to the minimum possible by moving the 'sonoff' sketches folder and the libraries to the sketches folder in the 'portable' folder inside the Arduino IDE app itself. File path to the libraries is now: /Applications/Tasmota.app/Contents/Java/portable/sketchbook/libraries

Compile error in the linking phase still the same: Linking everything together... "/Applications/Tasmota.app/Contents/Java/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-gcc" -g -w -Os -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static "-L/Applications/Tasmota.app/Contents/Java/portable/packages/esp8266/hardware/esp8266/2.4.1/tools/sdk/lib" "-L/Applications/Tasmota.app/Contents/Java/portable/packages/esp8266/hardware/esp8266/2.4.1/tools/sdk/ld" "-L/Applications/Tasmota.app/Contents/Java/portable/packages/esp8266/hardware/esp8266/2.4.1/tools/sdk/libc/xtensa-lx106-elf/lib" "-Teagle.flash.1m0.ld" -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -o "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/sonoff.ino.elf" -Wl,--start-group "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/sketch/core_esp8266_timer.c.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/sketch/core_esp8266_wiring_digital.c.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/sketch/core_esp8266_wiring_pwm.c.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/sketch/sonoff.ino.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/PubSubClient-2.6.09/PubSubClient.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/Ticker/Ticker.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/ESP8266WiFi.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/ESP8266WiFiAP.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/ESP8266WiFiMulti.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/ESP8266WiFiSTA.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/ESP8266WiFiScan.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/WiFiClient.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/WiFiClientSecure.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/WiFiServer.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/WiFiServerSecure.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WiFi/WiFiUdp.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266HTTPClient/ESP8266HTTPClient.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266httpUpdate/ESP8266httpUpdate.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WebServer/ESP8266WebServer.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WebServer/ESP8266WebServerSecure.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WebServer/Parsing.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266WebServer/detail/mimetable.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/DNSServer/DNSServer.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/ESP8266mDNS/ESP8266mDNS.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/Wire/Wire.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/IRrecv.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/IRsend.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/IRtimer.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/IRutils.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Aiwa.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Argo.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Carrier.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Coolix.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Daikin.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Denon.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Dish.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Fujitsu.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_GlobalCache.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Gree.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Haier.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Hitachi.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_JVC.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Kelvinator.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_LG.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Lasertag.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Magiquest.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Midea.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Mitsubishi.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_NEC.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Nikai.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Panasonic.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Pronto.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_RC5_RC6.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_RCMM.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Samsung.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Sanyo.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Sharp.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Sherwood.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Sony.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Toshiba.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Trotec.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/IRremoteESP8266/ir_Whynter.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/TasmotaSerial-1.1.0/TasmotaSerial.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/NeoPixelAvr.c.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/NeoPixelEsp.c.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/HsbColor.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/HslColor.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/HtmlColor.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/HtmlColorNameStrings.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/HtmlColorNames.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/HtmlColorShortNames.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/NeoEsp8266UartMethod.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/NeoGamma.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/NeoPixelAnimator.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/RgbColor.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/NeoPixelBus-2.2.9/internal/RgbwColor.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/libraries/SPI/SPI.cpp.o" "/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549/arduino.ar" -lhal -lphy -lpp -lnet80211 -llwip_gcc -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lmesh -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,--end-group "-L/var/folders/kv/n5vj2lv54bs9blbz41m3nqnc0000gs/T/arduino_build_535549" /Applications/Tasmota.app/Contents/Java/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lmesh

arendst commented 6 years ago

Mesh is part of the ESP8266 Arduino library. I suggest you reinstall the library as you also mentioned you suddenly moved from 2.4.1 options (v2 lower memory) to 2.4.0 options (v1.4 prebuilt).

It seems your installation is not complete.

dweston commented 6 years ago

I uninstalled the ESP8266 Board version 2.4.1 and reverted to ESP8266 Board version 2.4.0.

I checked the IwIP Variant: menu options and 'v1.4 Prebuilt' was still present as an option.

The compile has now completed without error.

I should add that the prerequisites options still do not fully align with those shown in the https://github.com/arendst/Sonoff-Tasmota/wiki/Arduino-IDE images. The 'Upload Using:' parameter setting is no longer visible. I therefore don't know whether 'Serial' or 'OTA_upload' is selected.

dweston commented 6 years ago

Looks like a successful install: Sonoff_POW_upload.PDF

meingraham commented 6 years ago

I'm getting this error as well.

I'm running on Windows 7... so I had to get the 1.8.5 IDE from another site because the "official" Arduino download site grayed out the download since it appears to be checking for Windows 8 or 10. Am I wasting my time trying to set up on Windows 7? I do have a questions about the 2.4.1 version of platform.txt regardless of this Windows version question (below).

I don't think my issue is path length related. My sketchbook path seems pretty short - C:\Users\\Documents\Arduino\

I saw a reference above regarding reverting to board version 2.4.0 solving the problem. One thing that was missing as I was following the IDE setup was in the "copy files" section. For board version 2.4.1 it said to grab the platform.txt from the 2.4.1 folder in the TASMOTA source code. I just downloaded the 5.12.0 source code archive and the only folders I saw were the 'version 2.3.0' and 'version 2.4.0'. There was no 'version 2.4.1' folder. Having no 2.4.1 version available, I used the 2.4.0 platform.txt to replace the ESP8266 board's platform.txt. It seems like since the wiki calls out using a 2.4.1 version specifically, that maybe this is a problem? Should I get the 2.4.1 version of platform.txt (where?) or edit (what?) the 2.4.0 version of platform.txt?

Thanks.

arendst commented 6 years ago

Look in the developer branch fro all you need.

meingraham commented 6 years ago

Replacing the platform file with the 2.4.1 version resolved the compilation error. Thanks!

gsbad commented 6 years ago

Same problem here