loboris / ESP32-PPPOS-EXAMPLE

Example of using ESP32 with GSM modem and lwip+pppos
217 stars 67 forks source link

Problem copiling from sources #10

Open mapedraza opened 6 years ago

mapedraza commented 6 years ago

Im triying to compile as indicated, using following commands:

git clone https://github.com/loboris/ESP32-PPPOS-EXAMPLE.git
make menuconfig
make all && make flash

After a tons of libs compiled, i just obtain:

CC build/lwip/lwip/src/netif/ppp/polarssl/sha1.o
CC build/lwip/lwip/src/netif/ppp/polarssl/md4.o
CC build/lwip/lwip/src/netif/ppp/polarssl/md5.o
CC build/lwip/lwip/src/netif/ppp/polarssl/arc4.o
AR build/lwip/liblwip.a
CC build/main/pppos_client_main.o
/home/user/esp/projects/ESP32-PPPOS-EXAMPLE/main/pppos_client_main.c:33:25: fatal error: lwip/pppapi.h: No such file or directory
compilation terminated.
/home/user/esp/esp-idf/make/component_wrapper.mk:285: recipe for target 'pppos_client_main.o' failed
make[1]: *** [pppos_client_main.o] Error 1
/home/user/esp/esp-idf/make/project.mk:481: recipe for target 'component-main-build' failed
make: *** [component-main-build] Error 2

I am using v3.0.4 of esp-idf

Thanks in advance

mapedraza commented 6 years ago

Just replace some dependencies paths and it compile

In main/pppos_client_main.c file:

#include "lwip/pppapi.h"
#include "apps/sntp/sntp.h"

to

#include "netif/ppp/pppapi.h"
#include "lwip/apps/sntp.h"

In componentes/pppos/libGSM.c file: #include "lwip/pppapi.h" To: #include "netif/ppp/pppapi.h"

maniprt commented 4 years ago

Just replace some dependencies paths and it compile

In main/pppos_client_main.c file:

#include "lwip/pppapi.h"
#include "apps/sntp/sntp.h"

to

#include "netif/ppp/pppapi.h"
#include "lwip/apps/sntp.h"

In componentes/pppos/libGSM.c file: #include "lwip/pppapi.h" To: #include "netif/ppp/pppapi.h"

hello expert how to build this project in Eclipse IDE. I'm new to esp32 and eclipse ide. pls help to solve this issue