Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 (e.g. from the prescale.xml file in
  22. the MinGW-32 directory).
  23. Creating the SNFMultiTest project file
  24. -----------------------------------
  25. 1) Create a Code::Blocks Console project. Create the project file
  26. in this directory, and name it SNFMultiTest.
  27. 2) Select a 64-bit compiler (MinGW-64; see the README file in the
  28. parent directory for setting up Code::Blocks to use a 64-bit MinGW
  29. compiler).
  30. 3) Select the Debug target (Build->Select target->Debug).
  31. 4) Add the following files (Right-click on the SNFMultiTest project
  32. in the projects window, and choose "Add files"):
  33. i) SNFMultiTest/main.cpp
  34. ii) include/snfmultidll.h
  35. iii) In CodeDweller:
  36. a) threading.cpp
  37. b) threading.hpp
  38. c) timing.cpp
  39. d) timing.hpp
  40. 5) Add the link directories contining the SNFMulti.dll:
  41. a) Open the Build Options window (Projects->Build Options).
  42. b) Choose the Search Directories tab.
  43. c) Select the Linker tab.
  44. d) Click on "Debug", and add the library directory
  45. "..\SNFMulti\bin\Debug".
  46. e) Click on "Release", and add the library directory
  47. "..\SNFMulti\bin\Release".
  48. 6) Add the SNFMulti library:
  49. a) Open the Build Options window.
  50. b) Click on SNFMultiTest.
  51. c) Choose the Linker settings tab.
  52. d) Add the library "SNFMulti" to the Link libraries window.
  53. 7) Add the compiler options:
  54. a) Open the Build Options window.
  55. b) Click on "SNFMulti".
  56. c) Select the Compiler settings tab.
  57. d) Select the Other options tab.
  58. e) Add "-mthreads".