d-a-v / esp82xx-nonos-linklayer

esp8266 link layer API for new ip stack - applied to lwIP-v2
31 stars 22 forks source link

Compiling with PPP #15

Open ovelhoandre opened 6 years ago

ovelhoandre commented 6 years ago

First, thank you for your work!

I'm trying to compile with PPP, so I added the PPP defines in the "lwipopts.h" file in glue-lwip->arduino, I added $(patsubst %.c,$(BUILD)/%.o,$(wildcard netif/ppp/*.c)) \, $(patsubst %.c,$(BUILD)/%.o,$(wildcard netif/ppp/polarssl/*.c)) \, -include $(BUILD)/*/*/*/*/*.d and -include $(BUILD)/*/*/*/*/*/*.d to the Makefile.lwip2 file. But when I use liblwip2.a in the project, I get the Undefined reference for PPP functions, any ideia?

d-a-v commented 6 years ago

Do you make clean / make install from arduino's tools/sdk/lwip2/ directory ? In that case, can you see whether PPP is compiling in the logs ?

ovelhoandre commented 6 years ago

The problem was extern "C" {} on ppp includes in my project. The challenge now is to do NAT between PPP and wifi station.

2018-04-25 17:58 GMT-03:00 david gauchard notifications@github.com:

Do you make clean / make install from arduino's tools/sdk/lwip2/ directory ? In that case, can you see whether PPP is compiling in the logs ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/d-a-v/esp82xx-nonos-linklayer/issues/15#issuecomment-384431878, or mute the thread https://github.com/notifications/unsubscribe-auth/ALIMK3NCY7tkdWKvEL86t1GoieXdtvuAks5tsON0gaJpZM4Tf12S .

-- Saudações,

Andre Luis de Aguiar Lopes Me. Eng. Eletricista CREA-RS198.087 Cel: +55 51 9878-5911

d-a-v commented 6 years ago

NAT is coming (it's waiting for fixes in a branch).

ovelhoandre commented 6 years ago

Thanks so much, meanwhile I'll try this: https://github.com/ajaybhargav/lwip_nat.