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 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. This is where the SNF SDK for Windows Package is kept.
  2. Copyright (c) 2009 - 2020 ARM Research Laboratories
  3. The 64-bit SNFMulti.dll file is built using MinGW-64, the 64-bit MinGW
  4. toolchain. The 32-bit SNFMulti.dll file is built using MinGW, the
  5. 32-bit MinGW toolchain.
  6. The SNFMulti.dll is built using the .CMD files from the command line
  7. (in the MinGW-64 or MinGW-32 directory). In addition to building
  8. SNFMulti.dll, the libSNFMulti.a and libSNFmulti.def files are created.
  9. The import and export files are built using the VS2019 command line.
  10. There are also applications for linking with SNFMulti.dll:
  11. 1) The SNFMulti C++ test built with MinGW. This can be built with a
  12. .CMD file in the MinGW-64 or MinGW-32 directory
  13. 2) The SNFMulti C++ test built with Visual Studio 2019. This can be
  14. built with solution file VS20198CPPSample/VS2019CPPSample.sln.
  15. 3) A Visual Studio 2019 C# example application. This can be built
  16. with solution file VS2019CSSample/VS2019CSSample.sln.
  17. 4) A Visual Studio 2008 VB example application. This can be built
  18. with the solution file VS2008VBSample/VS2008VBSample.sln.
  19. This package includes the following directories (each has a README
  20. file with further information):
  21. MinGW-64--Contains .CMD files for building 64-bit SNFMulti.dll and
  22. associated files, and also the C++ application SNFMultiTest. It
  23. uses the source files in the SNFMulti, CodeDweller, and SNFMultiTest
  24. directories. These directories must be present.
  25. MinGW-32--Contains .CMD files for building 32-bit SNFMulti.dll and associated
  26. files, and also the C++ application SNFMultiTest. It uses the
  27. source files in the SNFMulti, CodeDweller, and SNFMultiTest
  28. directories. These directories must be present.
  29. CodeBlocks--Contains the Code::Blocks project files for building
  30. SNFMulti.dll and SNFMultiTest. It uses the source files in the
  31. SNFMulti, CodeDweller, and SNFMultiTest directories. These
  32. directories must be present.
  33. SNFMultiTest--Contains the source for the C++ test application
  34. SNFMultiTest.
  35. VS2008CSSample, VS2008VBSample, VS2008CPPSample--Contains the Visual
  36. Studio files for building the C# and VB example applications, and
  37. the C++ test.
  38. To build the applications in the MinGW-64, MinGW-32, CodeBlocks, and
  39. VS2008 directories:
  40. 1) Ensure that the SNFMultiTest, SNFMulti, and CodeDweller
  41. directories are present.
  42. 2) Install the 64-bit MinGW toolchain. Unpack the 64-bit toolchain
  43. (e.g. mingw-w64-bin_i686-mingw_20090220.zip) into c:\MinGW-64. If
  44. done correctly, c:\MinGW-64 should have the directories bin,
  45. include, x86_64-pc-mingw32, and other directories. The MinGW .CMD
  46. files and the Code::Blocks project files are configured to use the
  47. 64-bit toolchain in c:\MinGW-64.
  48. 3) Install the 32-bit MinGW toolchain to C:\MinGW.
  49. 4) Install VS 2008.
  50. 5) Follow the directions in each directorie's README file.
  51. To build and test the SDK:
  52. 1) In PKG-SNF-SDK-WIN/trunk/MinGW-32:
  53. a) compileSNFMultiDLL.cmd.
  54. b) buildSNFMultiDLL.cmd.
  55. c) buildSNFMultiTestDLL.cmd.
  56. d) buildvs2008SNFMultiImportLib.cmd (in vs2008 command prompt).
  57. e) SNFMultiTest.exe.
  58. f) installSNFMultiLibrary.cmd.
  59. 2) Repeat in MinGW-64.
  60. 3) Build and run VS2008CPPSample, x32 and x64. First copy
  61. snf_engine.xml to VS2008CPPSample. For x32, copy *.dll from
  62. 32bitDll to VS2008CPPSample. For x64, copy *.dll from 64bitDll
  63. to VS2008CPPSample.
  64. 4) Build and run VS2008CSSample, any, x32, and x64. Copy
  65. snf_engine.xml to VS2008CSSample. Modify main.cs to specify
  66. the location of snf_engine.xml and snfmulti.dll, which is
  67. different for any, x32, and x64.
  68. 5) Build and run VS2008VBSample, any, x32, and x64. Copy
  69. snf_engine.xml to VS2008VBSample. Modify main.vb to specify
  70. the location of snf_engine.xml and snfmulti.dll, which is
  71. different for any, x32, and x64.
  72. To create a zipfile distribution:
  73. 1) Install jZip.
  74. 2) Edit BuildDistribution.cmd to specify the DISTDIR variable, and
  75. optionally the TEMPDIR variable.
  76. 3) Run BuildDistribution. This creates a zip file in the current
  77. directory with the name %DISTDIR%.zip.
  78. Note: When you run BuildDistribution, you will get a message saying
  79. that %DISTDIR%.zip could not be found. This message can be ignored.
  80. Note: For more information on the procedure for creating a zipfile
  81. distribution, see the BuildDistribution.cmd file and the
  82. BuildDistribution\README file.