Build Errors lwip

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
kcoelho
Posts: 23
Joined: Fri Aug 02, 2019 5:40 pm

Build Errors lwip

Post by kcoelho » Thu Aug 15, 2019 6:03 pm

Hi all,

Facing build errors regarding lwip dependencies. This is a section of errors for trying to build for a custom board(VCB_OR)

compilation terminated.
eth.c:38:25: fatal error: lwip/etharp.h: No such file or directory
#include "lwip/etharp.h"
^
compilation terminated.
network_lan.c:34:24: fatal error: lwip/netif.h: No such file or directory
#include "lwip/netif.h"
^
compilation terminated.
modnetwork.c:43:24: fatal error: lwip/netif.h: No such file or directory
#include "lwip/netif.h"
^
compilation terminated.
In file included from ../../lib/netutils/dhcpserver.c:38:0:
../../lib/netutils/dhcpserver.h:29:26: fatal error: lwip/ip_addr.h: No such file or directory
#include "lwip/ip_addr.h"
^
compilation terminated.
../../py/mkrules.mk:74: recipe for target 'build-VCB_OR/genhdr/qstr.i.last' failed
make: *** [build-VCB_OR/genhdr/qstr.i.last] Error 1
make: *** Deleting file 'build-VCB_OR/genhdr/qstr.i.last'

Any help would be appreciated

User avatar
Roberthh
Posts: 1699
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Build Errors lwip

Post by Roberthh » Thu Aug 15, 2019 6:29 pm

Which port are you using? STM32 or ESP32?

kcoelho
Posts: 23
Joined: Fri Aug 02, 2019 5:40 pm

Re: Build Errors lwip

Post by kcoelho » Fri Aug 16, 2019 3:55 pm

This is resolved. Thank you.

I am however, having issues understanding the network library/class

On Linux after I enter the REPL command prompt and enter:

import network
lan = network.LAN()

The command prompt closes and goes back to the terminal. Not sure why this happens.
Also, where could I find more information about this. I can find documentation anywhere

Thanks

Post Reply