p≡p JSON adapter
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.

59 lines
1.1 KiB

  1. # Building for OS X/macOS
  2. Please see also README.md, these are only OS X specific instructions. Especially note the remarks on running the server.
  3. For compiling pEp Engine Server Adapter and its dependencies, make sure you have the LANG variable set.
  4. ```
  5. export LANG=en_US.UTF-8
  6. ```
  7. ## Dependencies
  8. ### MacPorts
  9. [Install MacPorts](https://www.macports.org/install.php) for your version of OS X/macOS.
  10. If MacPorts is already installed on your machine, but was installed by a different user, make sure your `PATH` variable is set as follows in `~/.profile`:
  11. ```
  12. export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
  13. ```
  14. Install dependencies packaged with MacPorts as follows.
  15. ```
  16. sudo port install openssl boost ossp-uuid
  17. ```
  18. ### Other Dependencies
  19. #### libevent
  20. ```
  21. cd libevent-2.0.22-stable
  22. export LDFLAGS=-L/opt/local
  23. export CFLAGS=-I/opt/local/include
  24. ./configure --prefix "$HOME"
  25. make
  26. make install
  27. ```
  28. ## Building pEp JSON Server Adapter
  29. ```
  30. cd server
  31. make
  32. ```
  33. # Running pEp JSON Server Adapter
  34. ```
  35. ./pep-json-server
  36. ```
  37. # Testing pEp JSON Server Adapter
  38. ```
  39. ./servertest
  40. ```