INSTALL 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. 0. Building on *nix from git repository
  2. Run the autogen script to generate configure, then proceed to step 1.
  3. Prerequisites: You'll need autoconf, automake and libtool installed.
  4. $ ./autogen.sh
  5. 1. Building on *nix from a release
  6. $ ./configure
  7. $ make
  8. $ make check # (optional, but highly recommended)
  9. $ sudo make install
  10. 2. Building on iOS
  11. Use on the xcode project in IDE/iOS/wolfssl.xcodeproj
  12. There is a README in IDE/iOS with more information
  13. 3. Building for Apple ARM64
  14. When building for an Apple ARM64 platform, ensure the host CPU type is detected as "aarch64" during configure, if not, pass --host=aarch64-apple-darwin to configure.
  15. 4. Building on Windows
  16. Use the 32bit Visual Studio Solution wolfssl.sln
  17. For a 64bit solution please use wolfssl64.sln
  18. 5. Building with IAR
  19. Please see the README in IDE/IAR-EWARM for detailed instructions
  20. 6. Building with Keil
  21. Please see the Keil Projects in IDE/MDK5-ARM/Projects
  22. 7. Building with Microchip tools
  23. Please see the README in mplabx
  24. 8. Building with Freescale MQX
  25. Please see the README in mqx
  26. 9. Building with Rowley CrossWorks for ARM
  27. Use the CrossWorks project in IDE/ROWLEY-CROSSWORKS-ARM/wolfssl.hzp
  28. There is a README.md in IDE/ROWLEY-CROSSWORKS-ARM with more information
  29. 10. Building with Arduino
  30. Use the script IDE/ARDUINO/wolfssl-arduino.sh to reformat the wolfSSL
  31. library for compatibility with the Arduino IDE. There is a README.md in
  32. IDE/ARDUINO for detailed instructions.
  33. 11. Building for Android with Visual Studio 2017
  34. Please see the README in IDE/VS-ARM.
  35. Use the Visual Studio solution IDE/VS-ARM/wolfssl.sln.
  36. 12. Building for Yocto Project or OpenEmbedded
  37. Please see the README in the "meta-wolfssl" repository. This repository
  38. holds wolfSSL's Yocto and OpenEmbedded layer, which contains recipes
  39. for wolfSSL, wolfSSH, wolfMQTT, wolfTPM, wolfCrypt examples, and OSS
  40. project bbappend files.
  41. https://github.com/wolfssl/meta-wolfssl
  42. The wolfSSL recipe can also be found in the OpenEmbedded
  43. "meta-openembedded/meta-networking/recipes-connectivity" layer:
  44. https://github.com/openembedded/meta-openembedded
  45. 13. Porting to a new platform
  46. Please see section 2.4 in the manual:
  47. http://www.wolfssl.com/yaSSL/Docs-cyassl-manual-2-building-cyassl.html
  48. 14. Building with CMake
  49. Note: Primary development uses automake (./configure). The support for CMake is minimal.
  50. Internally cmake is setup to do the following:
  51. 1. Uses the ./configure generated wolfssl/options.h as the build options by coping it to the build directory as user_settings.h.
  52. 2. Builds wolfSSL as library.
  53. 3. Builds the examples.
  54. Build Steps:
  55. $ mkdir build
  56. $ cd build
  57. $ cmake ..
  58. $ cmake --build .
  59. $ cmake --install .
  60. To build library only and not build examples and test apps use:
  61. $ cmake .. -DBUILD_TESTS=NO
  62. To build with debugging use:
  63. $ cmake .. -DCMAKE_BUILD_TYPE=Debug
  64. Make sure and run the built examples and test from the wolfssl-root to properly find the ./certs directory.
  65. CMake on Windows with Visual Studio
  66. 1. Open Command Prompt
  67. 2. Run the Visual Studio batch to setup command line variables: Example: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat
  68. 3. Then use steps above