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.6KB

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