Comments (11)
Well doesn't this work automatically? The library liblwip2.a is prebuilt and everything controlled via platform.txt is included.
Or do you mean that we should include rules for rebuilding the lwip2 library from the git submodule?
BTW, looks like it was the changes in this commit that broke the previous version of makeEspArduino 😏
from makeesparduino.
when compiling with VERBOSE=1 and looking at the linking stage i see:
-lhal -lphy -lpp -lnet80211 -llwip_gcc -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lmesh -lwpa2 -lstdc++ -lm -lc -lgcc
but the lwip2 lib is in the archive liblwip2.a so the I think LWIP2 support is opt-in at least for now. no?
ah and no, i didn't mean to compile the lib from source, even though it could be done.
from makeesparduino.
Also the emitted include path for the headers is in my case -I../../Arduino-ESP8266/tools/sdk/lwip/include, but it would have to be -I../../Arduino-ESP8266/tools/sdk/lwip2/include.
from makeesparduino.
Ok, I guess this is intended to be controlled via the property build.lwip_include for compilations but I can't find any references in the link command.
Nevertheless once I have figured this out there will be an optional LWIP_VERSION or alike which can be used to control this in makeEspArduino
from makeesparduino.
I have seen build.lwip_lib=-llwip_gcc
do you mean that?
from makeesparduino.
I guess so, I have to test in Arduino IDE to check
from makeesparduino.
Fixed in latest commit. Use the variable LWIP_VARIANT, more info in the commit message
Thanks for keeping an eye on what happens in esp8266/Arduino 😃
from makeesparduino.
Thanks, now I can switch between different LWIP VERSION 1 variants (I tested all 4 of them), but still non of those gave me the LWIP VERSION 2.
For LWIP 2 we would need to change the LWIP include path to [..]/sdk/lwip2/include and link against -llwip2.a
Maybe we need an additional control varaible like the LWIP_VERSION=2 you mentioned above?
Thanks for your great work! Maintaining this is a never ending game of whac-a-mole! :-D
from makeesparduino.
Strange, the settings for "open" (which is the default) are
generic.menu.LwIPVariant.open=v2
generic.menu.LwIPVariant.open.build.lwip_include=lwip2/include
generic.menu.LwIPVariant.open.build.lwip_lib=-llwip2
And this gives lwip2 when I build
from makeesparduino.
from makeesparduino.
OH, LOL, c'mon.. seriously?
I just did not pull. sorry for the confusion! all is well! (as usual) 👍
thanks! closing!
from makeesparduino.
Related Issues (20)
- LittleFS compile errors on esp8266 HOT 4
- Getting Xtensa Error HOT 1
- ESP32 python: can't open file '/esptool.py': [Errno 2] No such file or directory HOT 6
- how to build for esp32s3 etc.? HOT 4
- Variant ESP32 devices HOT 1
- Arch WSL g++ HOT 2
- Calling 'make clean' twice will trigger config parser. HOT 7
- build_opt.h: No such file or directory HOT 5
- Duplicate SKETCH when including on working directory HOT 5
- compiling a sketch with Bodmers TFT_eSPI library HOT 2
- Problems with include path HOT 7
- Compilation error on core's version 3.1.0 HOT 5
- Compilation of a simple program for esp32 fails because it tries to include library SoftwareSerial only available for architecture avr HOT 1
- .git folder appears to be included during make HOT 9
- Arduino IDE 2.x does not have preferences.txt HOT 1
- Add support for Arduino Core 3.0.0 HOT 5
- ESP32 builds stopped working after changes in the platform.txt file from the arduino-esp32 project (support relative paths in UNIX search PATH) HOT 2
- missing core dump partition HOT 1
- no mk file HOT 1
- Not compatible with latest ESP32 SDK 2.0.14? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from makeesparduino.