pkt2flow icon indicating copy to clipboard operation
pkt2flow copied to clipboard

Compiling your code

Open imehrdad2012 opened this issue 12 years ago • 2 comments

Hi, I'm newbie in programming. Could you tell me how I can compile your code?

imehrdad2012 avatar May 25 '13 21:05 imehrdad2012

OK! This program is structured and compiled with a tool called SCons (http://www.scons.org/). You can follow simple steps to make a compile:

  1. Make sure you have libpcap (on Mac and Linux) in your system.
  2. Install Scons that can be downloaded from its official website given above.
  3. cd into the root folder of pkt2flow, and run scons

That's all to see a binary program file in the root folder.

Best,

chen

caesar0301 avatar May 26 '13 04:05 caesar0301

SCons is a bit much considering it's a one line build

gcc -o pkt2flow flow_db.c pkt2flow.c utilities.c -lpcap

PhilipDeegan avatar Jan 19 '16 18:01 PhilipDeegan