BUILDING.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Building ZeroTier One on different platforms:
  2. (See RUNNING.txt for what to do next.)
  3. Developers note: there is currently no management of dependencies on *nix
  4. platforms, so you should make clean ; make if you change a header. Will
  5. do this eventually.
  6. -- Linux
  7. make
  8. That's it. Add ZT_AUTO_UPDATE=1 to the make command line to build an
  9. auto-update-enabled version that will update from ZeroTier's servers.
  10. This is disabled by default since such a build will automatically
  11. replace itself with our binary distributions.
  12. -- MacOS
  13. make
  14. The same ZT_AUTO_UPDATE=1 option as Linux supports can be used here to
  15. build an auto-update-enabled version. By default auto-updates are not
  16. enabled.
  17. If you are building ext/tap-mac you will need a different version of the
  18. OSX gcc compiler chain than what currently ships (clang). We've got a copy
  19. available here:
  20. http://download.zerotier.com/dev/llvm-g++-Xcode4.6.2.tar.bz2
  21. Un-tar this into ext/ (it's excluded in .gitignore) and then 'make' in
  22. ext/tap-mac/tuntap/src/tap.
  23. Most users should not need to build tap-mac, since a binary is included
  24. in ext/bin.
  25. To build the UI you will need Qt version 5.0 or later. The Qt home must
  26. be symbolically linked into "Qt" in the parent directory of the ZeroTier
  27. One source tree. Then you can type "make mac-ui" and the UI should build.
  28. You can also load the UI in Qt Creator and build/test it that way.
  29. -- Windows
  30. Here be dragons.