1 | Compiling libtrace3 for WIN32 |
---|
2 | ============================= |
---|
3 | |
---|
4 | libtrace3 provides a MSVC build environment to allow you to compile and run |
---|
5 | the code in a Windows environment. |
---|
6 | |
---|
7 | There has been no extensive testing yet. Some of the format modules may be |
---|
8 | broken. There may be dragons here. |
---|
9 | |
---|
10 | Visual Studio 2005 or greater is required. Development has been performed |
---|
11 | using MS Visual C++ 2005 Express Edition. |
---|
12 | |
---|
13 | You will also need a correctly installed copy of the Platform SDK. The |
---|
14 | Windows Server 2003 SP1 SDK was used for Development. |
---|
15 | |
---|
16 | To build libtrace using Visual Studio open the provided solution |
---|
17 | 'libtrace.sln' this solution contains three projects: |
---|
18 | |
---|
19 | * libtrace.vcproj - The actual library, builds a DLL |
---|
20 | * test-format.vcproj - Builds the test-format executable from test/ |
---|
21 | * test-convert.vcproj - Builds the test-convert executable from test/ |
---|
22 | |
---|
23 | Before you compile libtrace you will need to copy config-win.h to config.h |
---|
24 | in the top level directory. There is currently no integration with autoconf |
---|
25 | or any of the standard GNU build tools. |
---|
26 | |
---|
27 | From the build menu select 'Build Solution'. After the build has completed |
---|
28 | sucessfully execute the test-format and test-convert programs with the |
---|
29 | following parameters |
---|
30 | |
---|
31 | test-format erf |
---|
32 | test-format wtf |
---|
33 | test-format pcapfile |
---|
34 | |
---|
35 | test-convert erf erf |
---|
36 | test-convert pcapfile erf |
---|
37 | |
---|
38 | As each program completes it should output 'success: 100 packets read'. If |
---|
39 | this string is not displayed there is a problem and debugging will be |
---|
40 | required. |
---|
41 | |
---|
42 | The above invocations of test-format and test-convert are known to work in |
---|
43 | the development environment. Other combinations of formats are not supported |
---|
44 | at this time. |
---|
45 | |
---|
46 | -- Matt Brown <matt@mattb.net.nz> Thu, 27 Apr 2006 00:49:23 +1200 |
---|