Skip to content

Setting up the environment

jonasvanpelt edited this page Oct 3, 2014 · 16 revisions

Prerequisite packages

Please make sure you have the latest version of the following two packages installed on your OS:

  • git (to download the picoTCP repository)
  • check (to run the unit tests)

Building picoTCP

The picoTCP source code is hosted on GitHub at https://github.com/tass-belgium/picotcp. The easiest way to get a hold of a copy is to use Git and make a clone. To install all requirements check out the following subsection that matches with the OS/distribution you want to use during development with picoTCP.

Set your credentials if this is your first time using git:

$git config --global user.name "John Doe"
$git config --global user.email [email protected]

Make an account on GitHub.com (and add your public key to your profile). You can generate a public/private key pair with $ssh-keygen.
Download the source code:

$git clone [email protected]:tass-belgium/picotcp.git

Compile picoTCP:

$make

You should now have the picoTCP library (libpicotcp.a) statically compiled for your own machine’s architecture under picotcp/build/lib.

Clone this wiki locally