You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. README file for command files for building SNFServer library and applications
  2. Copyright (c) 2009-2012 ARM Research Laboratories
  3. This is the README file for building the SNFMulti library and
  4. SNFMultiTest application using the 64-bit MinGW toolchain.
  5. Prerequisites
  6. 1) Install the 64-bit MinGW compiler in C:\MinGW-64.
  7. 2) Modify the MinGW distribution as follows:
  8. a) Modify c:\mingw-64\x86_64-w64-mingw32\include\winioctl.h:
  9. Change "Unknown" enumeration name to "_Unknown" (at approximately line 490).
  10. b) Modify c:\mingw-64\x86_64-w64-mingw32\include\math.h:
  11. Command out "struct exception;" (at approximately line 15).
  12. To build SNFMulti.dll
  13. 1) Run "compileSNFMultiDLL.cmd". This compiles the SNFMulti files
  14. for building a DLL. The object files are created in the current
  15. directory. The source files are in the ../SNFMulti and
  16. ../CodeDweller directories.
  17. 2) Run "buildSNFMultiDLL.cmd". This builds snfmulti.dll,
  18. libsnfmulti.a, and snfmulti.def. These are the same files built
  19. by Code::Blocks.
  20. To build the import and export SNFMulti libraries for VS2008:
  21. 1) With the VS2008 command prompt, run "buildVS2008SNFMultiImportLib.cmd".
  22. This reads snfmulti.def and creates vs2008_snfmulti.lib (the SNFMulti import
  23. library) and vs2008_snfmulti.exp (the SNFMulti export library).
  24. To copy to where the sample programs can find the files:
  25. 1) Run "installSNFMultiLibrary.cmd". This copies the output files into
  26. the ..\64bitDll directory.
  27. To build SNFMultiTest linked with SNFMulti.dll:
  28. 1) Run "buildSNFMultiTestDLL.cmd". This builds SNFMultiTest.exe,
  29. linking with SNFMulti.dll. Because SNFMulti.dll is in the current
  30. directory, SNFMultiTest.exe can be run from the command line
  31. without modifying the PATH variable.
  32. To run SNFMultiTest:
  33. 1) Make sure that all DLLs required by MinGW are available to
  34. SNFMultiTest. For example, MinGW-64 with gcc 4.4.0 needs
  35. libgcc_s_sjlj-1.dll, which is in \MinGW-64\bin.
  36. 2) Make sure that the sniffer configuration file is named
  37. prescale.xml, and is in the current directory. A suitable
  38. configuration file is ..\SNFMultiSDK_Windows_3.1\snf_engine.xml.