box64 icon indicating copy to clipboard operation
box64 copied to clipboard

have android arm64 build?

Open szllzs opened this issue 3 years ago • 14 comments

i modify src to build on android arm64, build ok,but can not run

szllzs avatar Mar 20 '23 01:03 szllzs

Box64 needs a Linux system to run. Android is not Linux. You should use Termux to create a Linux system, then you can use box64 there (build with the BAD_SIGNAL and ARM_DYNAREC compile options for better compatibility)

ptitSeb avatar Mar 20 '23 07:03 ptitSeb

Android is not Linux.

Android like Debian, Ubuntu is based on the Linux kernel. Why not?

Ilya114 avatar May 01 '23 06:05 Ilya114

Android is not Linux.

Android like Debian, Ubuntu is based on the Linux kernel. Why not?

Take a Debian program and try to run it under Android, you'll see why.

ptitSeb avatar May 01 '23 07:05 ptitSeb

Take a Debian program and try to run it under Android, you'll see why.

Well, it won't work. But if it doesn't run in Arch, then it's not Linux? For Android, there are applications in apk or aab format, as well as deb in Debian

Ilya114 avatar May 01 '23 09:05 Ilya114

No, it's not apk vs deb issues. It's just that Android is not Linux. It use a modified Linux kernel, and the userspace is completly different. Use TERMUX to run Linux program on Android (including box86/box64)

ptitSeb avatar May 01 '23 11:05 ptitSeb

It use a modified Linux kernel, and the userspace is completly different.

Well, then Android is base on modified Linux kernel but using bionic, not glibc that's why can't run programs from desktop Linux OSes. I think we can end here

Ilya114 avatar May 01 '23 12:05 Ilya114

Can we statically link glibc to make box64 work on Android?

500InternalError avatar Jun 16 '23 04:06 500InternalError

Can we statically link glibc to make box64 work on Android?

That does not work, as static build is just not possible

fish4terrisa-MSDSM avatar Jun 17 '23 02:06 fish4terrisa-MSDSM

Can I build glibc on termux and run box86?

boatsky avatar Jun 19 '23 07:06 boatsky

like this https://github.com/fhh200000/GlibC-AArch64-Android

boatsky avatar Jun 21 '23 03:06 boatsky

I managed to build box64 against glibc in native termux(https://github.com/termux-pacman/glibc-packages I installed glibc and other stuffs like gcc from here to compile box64), but found it kinda useless, since most programs require libraries that haven't been ported to termux, you need to either build them yourself or to manually download dependencies from a "normal" distribution like archlinuxarm and extract those things to a proper location, launch your program with LD_LIBRARY_PATH and hope everything works. Plus if you want to use wine you need to patch it to avoid it writing to /tmp. This really wastes tooooo much time.

500InternalError avatar Jun 27 '23 12:06 500InternalError

I managed to build box64 against glibc in native termux(https://github.com/termux-pacman/glibc-packages I installed glibc and other stuffs like gcc from here to compile box64), but found it kinda useless, since most programs require libraries that haven't been ported to termux, you need to either build them yourself or to manually download dependencies from a "normal" distribution like archlinuxarm and extract those things to a proper location, launch your program with LD_LIBRARY_PATH and hope everything works. Plus if you want to use wine you need to patch it to avoid it writing to /tmp. This really wastes tooooo much time.

Can you send me the binary you built? It sounds interesting,as then we can run static x64 binary directly in termux.

fish4terrisa-MSDSM avatar Jul 01 '23 04:07 fish4terrisa-MSDSM

I managed to build box64 against glibc in native termux(https://github.com/termux-pacman/glibc-packages I installed glibc and other stuffs like gcc from here to compile box64), but found it kinda useless, since most programs require libraries that haven't been ported to termux, you need to either build them yourself or to manually download dependencies from a "normal" distribution like archlinuxarm and extract those things to a proper location, launch your program with LD_LIBRARY_PATH and hope everything works. Plus if you want to use wine you need to patch it to avoid it writing to /tmp. This really wastes tooooo much time.

And ,can you tell me more details about how you built it?Much Thanks: )

fish4terrisa-MSDSM avatar Jul 01 '23 04:07 fish4terrisa-MSDSM

I managed to build box64 against glibc in native termux(https://github.com/termux-pacman/glibc-packages I installed glibc and other stuffs like gcc from here to compile box64), but found it kinda useless, since most programs require libraries that haven't been ported to termux, you need to either build them yourself or to manually download dependencies from a "normal" distribution like archlinuxarm and extract those things to a proper location, launch your program with LD_LIBRARY_PATH and hope everything works. Plus if you want to use wine you need to patch it to avoid it writing to /tmp. This really wastes tooooo much time.

Can you send me the binary you built? It sounds interesting,as then we can run static x64 binary directly in termux.

I've deleted it. But you can use my PKGBUILD if you want to build it(Notice that my PKGBUILD misplaces the etc folder, but it's not a big problem). You can follow these steps:

  1. Switch your package manager to pacman, you can follow official guide
  2. Edit /data/data/com.termux/files/usr/etc/pacman.conf and enable gpkg-dev repository.
  3. Install base-devel, cmake and all packages in gpkg-dev repo(some packages are not needed, but for convenience I installed all of them).
  4. Clone the aur repo https://aur.archlinux.org/box64-git.git and replace the PKGBUILD with my PKGBUILD.txt.
  5. Run grun --shell, then run makepkg -si and you have box64 installed.

500InternalError avatar Jul 01 '23 05:07 500InternalError