2014-12-19 23:18:20 +00:00
|
|
|
Building ZeroTier One From Source
|
|
|
|
======
|
2013-07-04 20:56:19 +00:00
|
|
|
|
2014-12-19 23:18:20 +00:00
|
|
|
(See RUNNING.md for what to do next.)
|
2013-07-04 20:56:19 +00:00
|
|
|
|
2013-07-06 18:58:34 +00:00
|
|
|
Developers note: there is currently no management of dependencies on *nix
|
|
|
|
platforms, so you should make clean ; make if you change a header. Will
|
|
|
|
do this eventually.
|
|
|
|
|
2014-12-19 23:18:20 +00:00
|
|
|
### Linux and FreeBSD
|
2013-07-04 20:56:19 +00:00
|
|
|
|
2014-02-16 20:08:13 +00:00
|
|
|
Just type 'make'. You'll need gcc and g++ installed, but ZeroTier One requires
|
|
|
|
no other third party libraries beyond the standard libc, libstdc++, and libm.
|
2013-12-17 20:21:57 +00:00
|
|
|
|
2014-12-19 23:20:47 +00:00
|
|
|
*Note:* On FreeBSD you must use 'gmake', not 'make'!
|
|
|
|
|
2014-12-19 23:18:20 +00:00
|
|
|
### MacOS
|
2013-07-04 20:56:19 +00:00
|
|
|
|
2013-12-12 21:03:40 +00:00
|
|
|
make
|
2013-07-04 20:56:19 +00:00
|
|
|
|
2013-12-03 21:47:13 +00:00
|
|
|
If you are building ext/tap-mac you will need a different version of the
|
|
|
|
OSX gcc compiler chain than what currently ships (clang). We've got a copy
|
|
|
|
available here:
|
|
|
|
|
|
|
|
http://download.zerotier.com/dev/llvm-g++-Xcode4.6.2.tar.bz2
|
|
|
|
|
|
|
|
Un-tar this into ext/ (it's excluded in .gitignore) and then 'make' in
|
|
|
|
ext/tap-mac/tuntap/src/tap.
|
|
|
|
|
|
|
|
Most users should not need to build tap-mac, since a binary is included
|
|
|
|
in ext/bin.
|
|
|
|
|
2013-12-17 20:21:57 +00:00
|
|
|
To build the UI you will need Qt version 5.0 or later. The Qt home must
|
|
|
|
be symbolically linked into "Qt" in the parent directory of the ZeroTier
|
|
|
|
One source tree. Then you can type "make mac-ui" and the UI should build.
|
|
|
|
You can also load the UI in Qt Creator and build/test it that way.
|
|
|
|
|
2014-12-19 23:18:20 +00:00
|
|
|
### Windows
|
2013-07-04 20:56:19 +00:00
|
|
|
|
2014-12-19 23:18:20 +00:00
|
|
|
There's a Visual Studio 2012 solution file in windows/ that can be used.
|
|
|
|
I've never tried it with MinGW, but theoretically this should be possible.
|