Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

README 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. README file for building the SNFMultiTest application using Code::Blocks
  2. Copyright (c) 2009 ARM Research Laboratories
  3. This is the README file for the Code::Blocks project for building the
  4. 64-bit SNFMultiTest application using Code::Blocks. These directions
  5. are for building the SNFMultiTest linked with the SNFMulti DLL using
  6. the 64-bit MinGW compiler.
  7. This README file should be in the CodeBlocks\SNFMultiTest directory of
  8. the SNF_CS developer distribution.
  9. To build the application:
  10. 1) Install the 64-bit MinGW as described in the README file in the
  11. above directory.
  12. 2) Build the SNFMulti DLL (see ../SNFMulti/README).
  13. 3) Ensure that the SNFMulti and CodeDweller source directories are
  14. in the correct location. They should be in ..\..\SNFMulti and
  15. ..\..\CodeDweller (relative to this directory).
  16. 4) Open the SNFMultiTest Code::Blocks project (SNFMultiTest.cbp).
  17. 5) Select the Debug or Release targets.
  18. 6) Build the application. The application is created in bin\Debug
  19. or bin\Release relative to this directory.
  20. Before running the application, copy the SNFServer configuration file
  21. to prescale.xml in this directory.
  22. Creating the SNFMultiTest project file
  23. -----------------------------------
  24. 1) Create a Code::Blocks Console project. Create the project file
  25. in this directory, and name it SNFMultiTest.
  26. 2) Select a 64-bit compiler (MinGW-64; see the README file in the
  27. parent directory for setting up Code::Blocks to use a 64-bit MinGW
  28. compiler).
  29. 3) Select the Debug target (Build->Select target->Debug).
  30. 4) Add the following files (Right-click on the SNFMultiTest project
  31. in the projects window, and choose "Add files"):
  32. i) SNFMultiTest/main.cpp
  33. ii) include/snfmultidll.h
  34. iii) In CodeDweller:
  35. a) threading.cpp
  36. b) threading.hpp
  37. c) timing.cpp
  38. d) timing.hpp
  39. 5) Add the link directories contining the SNFMulti.dll:
  40. a) Open the Build Options window (Projects->Build Options).
  41. b) Choose the Search Directories tab.
  42. c) Select the Linker tab.
  43. d) Click on "Debug", and add the library directory
  44. "..\SNFMulti\bin\Debug".
  45. e) Click on "Release", and add the library directory
  46. "..\SNFMulti\bin\Release".
  47. 6) Add the SNFMulti library:
  48. a) Open the Build Options window.
  49. b) Click on SNFMultiTest.
  50. c) Choose the Linker settings tab.
  51. d) Add the library "SNFMulti" to the Link libraries window.
  52. 7) Add the compiler options:
  53. a) Open the Build Options window.
  54. b) Click on "SNFMulti".
  55. c) Select the Compiler settings tab.
  56. d) Select the Other options tab.
  57. e) Add "-mthreads".