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

Providing prebuilt binaries for Android and Termux #1755

Open
maaaaz opened this issue Sep 10, 2024 · 0 comments
Open

Providing prebuilt binaries for Android and Termux #1755

maaaaz opened this issue Sep 10, 2024 · 0 comments
Labels
suggestion Feature suggestion

Comments

@maaaaz
Copy link

maaaaz commented Sep 10, 2024

Is your feature request related to a problem? Please describe.

No prebuilt binaries for Android are currently provided.
Such binaries should be compiled with the Android NDK.

Describe the solution you'd like

Prebuilt binaries for different Android versions, and different architectures (armv7 and armv8)
A simple example for a specific Android target (Android 11 Level 30), with a static build for armv7:

$ cd /tmp/

$ sudo apt install binutils-arm-linux-gnueabi


$ wget -nv "https://go.dev/dl/go1.23.1.linux-amd64.tar.gz"
$ rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin

$ wget -nv "https://dl.google.com/android/repository/android-ndk-r27-linux.zip"
$ unzip android-ndk-r27-linux.zip

$ git clone https://github.com/drakkan/sftpgo.git
$ cd sftpgo

$ env GOOS=android GOARCH=arm CGO_ENABLED=1 CC=/tmp/android-ndk-r27/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi30-clang go build -o sftpgo_android_30
$ arm-linux-gnueabi-readelf -a sftpgo_android30  | grep "Shared library:"
 0x00000001 (NEEDED)                     Shared library: [libdl.so]
 0x00000001 (NEEDED)                     Shared library: [liblog.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so]

Describe alternatives you've considered

No response

What are you using SFTPGo for?

Private user, home usecase (home backup/VPS)

Additional context

No response

@maaaaz maaaaz added the suggestion Feature suggestion label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

1 participant