Page 1 of 1

Build Errors lwip

Posted: Thu Aug 15, 2019 6:03 pm
by kcoelho
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

Re: Build Errors lwip

Posted: Thu Aug 15, 2019 6:29 pm
by Roberthh
Which port are you using? STM32 or ESP32?

Re: Build Errors lwip

Posted: Fri Aug 16, 2019 3:55 pm
by kcoelho
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

Re: Build Errors lwip

Posted: Fri Feb 10, 2023 8:55 am
by n13
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?

Re: Build Errors lwip

Posted: Thu May 25, 2023 7:45 am
by Jackli
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?