This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/integrations

ZeroTier Integrations

If you want everything built at once, type make all and go play outside for a few minutes, we'll copy all of the targets into the build directory for you along with specific instructions contained in a README.md on how to use each binary. You can then use make -s check to check the build status of each binary target.

NOTE for Apple platforms: In order to build iOS/OSX Frameworks and Bundles you will need XCode command line tools xcode-select --install

NOTE: For Android JNI libraries to build you'll need to install Android Studio and the Android NDK, and you'll need to tell our project where you put it by putting the path in this file, if you don't have these things installed and configured we will detect that and just skip those builds automatically. Additionally, you can specify the target architectures you want to build in Application.mk. By default it will build arm64-v8a, armeabi, armeabi-v7a, mips, mips64, x86, and x86_64

Below are the specific instructions for each integration requiring little to no modification to your code. Remember, with a full build we'll put a copy of the appropriate integration instructions in the resultant binary's folder for you anyway.

For more support on these integrations, or if you'd like help creating a new integration, stop by our community section!


Build flags

  • SDK_DEBUG - Turns on SDK activity/warning/error output. Levels of verbosity can be adjusted in src/SDK_Debug.h

  • SDK_DEBUG_LOGFILE - Used in conjunction with SDK_DEBUG, this will write all SDK debug chatter to a log file. To use this, set make SDK_DEBUG_LOGFILE=1 then export ZT_SDK_LOGFILE=debug.log.

  • SDK_LWIP_DEBUG - Turns on debug output for the lwIP library.

  • SDK_BUNDLED - Builds the SDK as a single target including an API shim, the lwIP library, and the ZeroTier service.

  • SDK_SERVICE

  • SDK_SOCKS_PROXY - Enables the SOCK5 Proxy.

  • SDK_UNITY_3D - For use when building a target for a native plugin for Unity3D.


Current Integrations

Apple make apple

iOS
OSX

Linux

Android make android


Windows

  • Not yet.