| 1 |
This directory contains an example of how to compile lwIP as a self |
| 2 |
initialising shared library on Linux. |
| 3 |
|
| 4 |
Some brief instructions: |
| 5 |
|
| 6 |
* Compile the code: |
| 7 |
|
| 8 |
> make clean all |
| 9 |
|
| 10 |
This should produce liblwip4unixlib.so. This is the shared library. |
| 11 |
|
| 12 |
* Link an application against the shared library |
| 13 |
|
| 14 |
If you're using gcc you can do this by including -llwip4unixlib in |
| 15 |
your link command. |
| 16 |
|
| 17 |
* Run your application |
| 18 |
|
| 19 |
Ensure that LD_LIBRARY_PATH includes the directory that contains |
| 20 |
liblwip4unixlib.so (ie. this directory) |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
If you are unsure about shared libraries and libraries on linux in |
| 25 |
general, you might find this HOWTO useful: |
| 26 |
|
| 27 |
<http://www.tldp.org/HOWTO/Program-Library-HOWTO/> |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
Kieran Mansley, October 2002. |