shadowsocks-android icon indicating copy to clipboard operation
shadowsocks-android copied to clipboard

Exit code:9009

Open newfuture33 opened this issue 3 years ago • 3 comments

When build code, faced this issue. I have found this file in position. File exist, but get 9009 error. image

newfuture33 avatar Aug 30 '22 16:08 newfuture33

same problem os:win10 android studio: 2021.2.1 patch2 rustc:1.61 android sdk build-tools:33

xiedeacc avatar Sep 07 '22 07:09 xiedeacc

it seems python problem??? compiled success by change rustc to nightly on ubuntu, but still failed on windows

xiedeacc avatar Sep 07 '22 08:09 xiedeacc

I maybe solve it,it seems python3 command not found .


cargo {
    module = "src/main/rust/shadowsocks-rust"
    libname = "sslocal"
    //targets = listOf("arm", "arm64", "x86", "x86_64")
    targets = listOf("arm64")
    profile = findProperty("CARGO_PROFILE")?.toString() ?: currentFlavor
    extraCargoBuildArguments = listOf("--bin", libname!!)
    featureSpec.noDefaultBut(arrayOf(
        "stream-cipher",
        "aead-cipher-extra",
        "logging",
        "local-flow-stat",
        "local-dns",
        "armv8",
        "neon",
        "aead-cipher-2022",
    ))
    exec = { spec, toolchain ->
        spec.environment("RUST_ANDROID_GRADLE_PYTHON_COMMAND", "python")
        spec.environment("RUST_ANDROID_GRADLE_LINKER_WRAPPER_PY", "$projectDir/$module/../linker-wrapper.py")
        spec.environment("RUST_ANDROID_GRADLE_TARGET", "target/${toolchain.target}/$profile/lib$libname.so")
    }
}

“python3” modify to “python”,no this error, you can try.

marzaha avatar Sep 16 '22 02:09 marzaha