lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : [lwip-users] Building lwIP libraries - general info


From: Frédéric BERNON
Subject: RE : [lwip-users] Building lwIP libraries - general info
Date: Tue, 14 Aug 2007 14:32:57 +0200

If you have download the contrib folder of the CVS HEAD, do you have also got the lwIP sources from CVS HEAD, or do you use a previous release (1.2.0, 1.1.1, ...) ?
 
 
 
====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hiddenr
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
 
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Rohit Arul Raj
Envoyé : mardi 14 août 2007 12:19
À : address@hidden
Objet : [lwip-users] Building lwIP libraries - general info


Hi

I downloaded the contrib folder from cvs, so as to build a project using lwIP libraries in linux.
But i was getting the following errors:

../../../../../lwip/src/core/mem.c: In function `mem_free':
../../../../../lwip/src/core/mem.c:160: error: `LWIP_DBG_OFF' undeclared (first use in this function)
../../../../../lwip/src/core/mem.c:160: error: (Each undeclared identifier is reported only once
../../../../../lwip/src/core/mem.c:160: error: for each function it appears in.)
../../../../../lwip/src/core/mem.c: In function `mem_realloc':
../../../../../lwip/src/core/mem.c:218: error: `LWIP_DBG_OFF' undeclared (first use in this function)
../../../../../lwip/src/core/mem.c: In function `mem_malloc':
../../../../../lwip/src/core/mem.c:315: error: `LWIP_DBG_OFF' undeclared (first use in this function)
make: *** [mem.o] Error 1

Build Directory: contrib/ports/unix/proj/unixsim
make version: 3.80
gcc version: tried with gcc v4.1.2 and gcc v3.4.6 both failed.
Linux: Fedora Core release 5 (Bordeaux), Kernel 2.6.15-1.2054_FC5smp on an i686

Have i missed anything?

Regards,
Rohit



Hi
 
>1. Is it possible to use lwip libraries for this?
Yes

>2. Where should i look for target dependencies in lwip libraries? Any documentation on this?
There is no real hardware dependencies, it seems that lot of different targets use it

3. Any standard procedure to be followed to build lwIP libraries? i couldn't see any standard makefiles or configure scripts.
>It's true. Except for linux or MSVC, there is no build tools. For you case (I will suppose you don't use sequential apis, like netconn or socket), files you need to put in your makefile should be:
 
#with all other features
C_SOURCES = \
src/api/err.c \
src/core/dhcp.c \
src/core/inet.c \
src/core/mem.c \
src/core/memp.c \
src/core/netif.c \
src/core/pbuf.c \
src/core/raw.c \
src/core/stats.c \
src/core/udp.c \
src/core/ipv4/autoip.c \
src/core/ipv4/icmp.c \
src/core/ipv4/igmp.c \
src/core/ipv4/ip.c \
src/core/ipv4/ip_addr.c \
src/core/ipv4/ip_frag.c \
src/core/snmp/asn1_dec.c \
src/core/snmp/asn1_enc.c \
src/core/snmp/mib2.c \
src/core/snmp/mib_structs.c \
src/core/snmp/msg_in.c \
src/core/snmp/msg_out.c \
src/netif/etharp.c \
 
#with minimal features
C_SOURCES = \
src/api/err.c \
src/core/inet.c \
src/core/mem.c \
src/core/memp.c \
src/core/netif.c \
src/core/pbuf.c \
src/core/stats.c \
src/core/udp.c \
src/core/ipv4/icmp.c \
src/core/ipv4/ip.c \
src/core/ipv4/ip_addr.c \
src/core/ipv4/ip_frag.c \
src/netif/etharp.c \

4. Is it possible to build lwIP libraries for UDP support alone?
Yes. You have to create a lwipopts.h file which contains options to enable/disable (see opt.h to know existing options).
 
You can file some informations on :
http://lwip.scribblewiki.com/LwIP_Main_Page  (not yet complete, but, a good start)
https://savannah.nongnu.org/projects/lwip/
https://savannah.nongnu.org/task/?7068#comment2  (some links)
 
====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hiddenr
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
 
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Rohit Arul Raj
Envoyé : mardi 14 août 2007 09:21
À : address@hidden
Objet : [lwip-users] Building lwIP libraries - general info

Hi all,

I am a newbie to lwip. I have an embedded target board running which does not have any OS support.
I need to implement UDP stack on this board.

1. Is it possible to use lwip libraries for this?
2. Where should i look for target dependencies in lwip libraries? Any documentation on this?
3. Any standard procedure to be followed to build lwIP libraries? i couldn't see any standard makefiles or configure scripts.
4. Is it possible to build lwIP libraries for UDP support alone?

Any help will be very much useful.

Regards,
Rohit

Attachment: Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]