heiher / sockstun

A simple and lightweight VPN over socks5 proxy (tun2socks) for Android.
MIT License
274 stars 69 forks source link

按照文档无法在windows上完成编译,缺少<lwip/tcp.h>头文件 #24

Closed Joehaivo closed 4 months ago

Joehaivo commented 4 months ago

按照文档

  1. git clone --recursive https://github.com/heiher/sockstun sockstun2 正常
  2. cd .\sockstun2\ 正常
  3. .\gradlew assembleDebug

以下是详细信息: PS D:\workspace\sockstun2> .\gradlew assembleDebug Starting a Gradle Daemon (subsequent builds will be faster) WARNING:: Please remove usages of jcenter() Maven repository from your build scripts and migrate your build to other Maven repositories. This repository is deprecated and it will be shut down in the future. See http://developer.android.com/r/tools/jcenter-end-of-service for more information. Currently detected usages in: root project 'sockstun2', project ':app' Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: 意外的元素 (uri:"", local:"base-extension")。所需元素为<{}codename>,<{}layoutlib>,<{}api-level>

Task :app:externalNativeBuildDebug FAILED Build hev-socks5-tunnel_armeabi-v7a D:/workspace/sockstun2/app/src/main/jni/hev-socks5-tunnel/src/hev-socks5-session-tcp.c:13:10: fatal error: 'lwip/tcp.h' file not found

include <lwip/tcp.h>

^~~~ 1 error generated. make: *** [D:/android/sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:476: D:/workspace/sockstun2/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/hev-socks5-tunnel/src/hev-socks5-session-tcp.o] Error 1

FAILURE: Build failed with an exception.

BUILD FAILED in 8s 12 actionable tasks: 12 executed

heiher commented 4 months ago

符合预期,Windows文件系统不支持符号链接,而子模块中包含。可以使用GitHub Action来构建,只需Fork项目,并创建一个发布即可触发,完成后会自动上传到发布页。