box86 icon indicating copy to clipboard operation
box86 copied to clipboard

Does Box86 support static compilation? If it does, how should it be configured?

Open lumui opened this issue 9 months ago • 11 comments

lumui avatar May 09 '25 14:05 lumui

rk3568

lumui avatar May 09 '25 14:05 lumui

Box86 doesn't support static compilation.

ptitSeb avatar May 09 '25 15:05 ptitSeb

Box86 doesn't support static compilation.Box86 不支持静态编译。 May I ask for a solution? I want to run Windows 32-bit software on the rk3568Arm64 platform. Which approach should I take?

lumui avatar May 09 '25 15:05 lumui

A Static build of box86 means it's a build built with static version of libc and other needed libs... It's usualy used inside docker env. or otehr similar scenario.

For running Windows 32 bits software, you can:

  1. use Box86 + regular Wine if you OS support 32bits (either a 32bits OS or support Multilib with armhf)
  2. use Box64 + Wine with new Wow64 on 64bits OS.
  3. Use Box64+Box32 with regular Wine or regular Wine64 on 64bits OS. (Box32 is a build option of Box64).

ptitSeb avatar May 09 '25 15:05 ptitSeb

A Static build of box86 means it's a build built with static version of libc and other needed libs... It's usualy used inside docker env. or otehr similar scenario.box86 的静态构建意味着它是使用静态版本的 libc 和其他所需库构建的...它通常用于 docker 环境或其他类似场景。

For running Windows 32 bits software, you can:要运行 32 位 Windows 软件,你可以:

  1. use Box86 + regular Wine if you OS support 32bits (either a 32bits OS or support Multilib with armhf)如果你操作系统支持 32 位(无论是 32 位操作系统还是支持 armhf 的多库支持),可以使用 Box86 +常规 Wine
  2. use Box64 + Wine with new Wow64 on 64bits OS.在 64 位操作系统上使用 Box64 +带有新 Wow64 的 Wine。
  3. Use Box64+Box32 with regular Wine or regular Wine64 on 64bits OS. (Box32 is a build option of Box64).使用 Box64+Box32 在 64 位操作系统上与常规 Wine 或常规 Wine64 一起使用。(Box32 是 Box64 的一个构建选项)。

Sorry, I would like to ask, I have been able to successfully run Ubuntu 20.04 on the hardware rk356 with tools such as exagear and wine. It can run 32-bit Windows programs. Now, I want to run an openharmony open-source operating system on rk3568 and also want to run a Windows program. Do you have any suggestions or ideas for this?

lumui avatar May 09 '25 15:05 lumui

I don't know OpenHarmony. If it's linux based, then use option 2 or 3. Option 2 is the most simple one. You can find prebuild wine with wow64 on Kron4ek github for example.

If it's not linux based, then I can do nothing for you, box64 needs linux.

ptitSeb avatar May 09 '25 15:05 ptitSeb

I don't know OpenHarmony. If it's linux based, then use option 2 or 3.我不知道 OpenHarmony。如果它是基于 Linux 的,那么使用选项 2 或 3。 Option 2 is the most simple one. You can find prebuild wine with wow64 on Kron4ek github for example.选项 2 是最简单的。你可以在 Kron4ek 的 GitHub 上找到预构建的 wow64 wine,例如。

If it's not linux based, then I can do nothing for you, box64 needs linux.如果不是基于 Linux 的,那我无能为力,box64 需要 Linux。

OK, thank you. Currently, it is based on Linux, but with the ARM64 architecture. However, there will be some cuts. There is no package management tool. For box64+win, is it compiled statically or dynamically?

lumui avatar May 09 '25 16:05 lumui

It's build dynamicaly.

Even if box64 support static compilation, the static version doesn't support graphical application.

ptitSeb avatar May 09 '25 16:05 ptitSeb

It's build dynamicaly.  它是动态构建的。

Even if box64 support static compilation, the static version doesn't support graphical application.即使 box64 支持静态编译,静态版本也不支持图形应用程序。

This system uses the ld-musl-aarch64.so.1 dynamic loader. Therefore, my system calls the GUI graphics library using ld-musl-aarch64.so.1. Do I need to compile the box64+win with musl for the compilation of the.so file? Can this enable the normal invocation of the graphics library? Does box64 and win support compiling with musl?

lumui avatar May 09 '25 16:05 lumui

musl is not really supported for now. It's probably doable, but needs some work and some debugging. I don't own any device running OpenHarmony. Maker of this OS (Huawei? OpenAtom Foundation?) should contact me to work on support of this OS.

Also, this should be moved to box64 repo at some point if this ticket continue.

ptitSeb avatar May 09 '25 17:05 ptitSeb

musl is not really supported for now. It's probably doable, but needs some work and some debugging.musl 目前并不真正支持。这可能是可以实现的,但需要一些工作和调试。 I don't own any device running OpenHarmony. Maker of this OS (Huawei? OpenAtom Foundation?) should contact me to work on support of this OS.我不拥有任何运行 OpenHarmony 的设备。这个操作系统的制造商(华为?开放原子基金会?)应该联系我,以合作支持这个操作系统。

Also, this should be moved to box64 repo at some point if this ticket continue.此外,如果这个工单继续,这个应该在未来某个时刻移动到 box64 仓库。

Ok! Thank You!

lumui avatar May 09 '25 17:05 lumui