Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我提供一个Windows下编译Zerotier Core的bat脚本 #31

Closed
XinRoom opened this issue Nov 28, 2022 · 2 comments
Closed

我提供一个Windows下编译Zerotier Core的bat脚本 #31

XinRoom opened this issue Nov 28, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@XinRoom
Copy link

XinRoom commented Nov 28, 2022

我提供一个Windows下编译Zerotier Core(libZeroTierOneJNI.so)的bat脚本,脚本应该放置到ZeroTierOne 源码下java 目录。

NDK_HOME 指定 Android-SDK\ndk-bundle 目录
APP_PLATFORM 指定PLATFORM,对应Android-SDK\platforms目录
ZT1 ZeroTierOne 源码下java 目录 https://github.com/zerotier/ZeroTierOne/tree/master/java

set NDK_HOME=E:\Android\SDK\ndk-bundle
set APP_PLATFORM=android-28
set ZT1=%~dp0..\

%NDK_HOME%\ndk-build NDK_PROJECT_PATH=. NDK_DEBUG=0 APP_PLATFORM=%APP_PLATFORM%  ZT1=%Z1%

编译完成后,会放置到NDK_PROJECT_PATH\libs目录下。

@XinRoom
Copy link
Author

XinRoom commented Nov 29, 2022

另外 官方 SDK VirtualNetworkStatus 新增 NETWORK_STATUS_AUTHENTICATION_REQUIRED

@kaaass
Copy link
Owner

kaaass commented Nov 29, 2022

感谢你的脚本!由于我最近有些忙,因此一直没推进这方面的工作。我考虑把 ZT 编译部分写进 build.gradle。过段时间空闲下来时我研究下怎么把官方源码结合进来更好(现在 SDK 源码可能会有更新和 LICENSE 问题)。

稍后我会新开一个 Issue 来专门 Track 这个 Feature,这个 Issue 我就先 Close 了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants