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