Replies: 1 comment
-
CGO is required on Android non-ARM64, and is required for the DNS issue you mentioned. You need to download Android NDK and set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
背景
我正在尝试为一个 Android 设备(armv7 32位CPU)编译 v2ray, 以在shell中运行。但是编译时报错。
使用release中为linux平台预编译的版本( https://github.com/v2fly/v2ray-core/releases/download/v5.1.0/v2ray-linux-arm32-v7a.zip )时,会出现域名解析问题(类似于 #1250 )
重现步骤
系统和相关软件版本:
$ git clone https://github.com/v2fly/v2ray-core.git --depth 1 && cd v2ray-core
$ go mod download
$ GOOS=android GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -o v2ray-android-arm32v7 -trimpath -ldflags "-s -w -buildid=" ./main
补充
为
Android arm64
,Linux arm32
和Linux arm64
平台交叉编译时不会报错,此编译报错似乎仅限于Android arm32
:Beta Was this translation helpful? Give feedback.
All reactions