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: 3667
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

n13
Posts: 1
Joined: Wed Aug 24, 2022 3:55 am

Re: Build Errors lwip

Post by n13 » Fri Feb 10, 2023 8:55 am

kcoelho wrote:
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
How did you resolve this? I have been facing similar issue for a custom port?

Jackli
Posts: 80
Joined: Thu Apr 29, 2021 9:11 am

Re: Build Errors lwip

Post by Jackli » Thu May 25, 2023 7:45 am

kcoelho wrote:
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
Can you be more specific?

Post Reply