ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.88k stars 283 forks source link

BOX64: Missing operand after 'box64' #1184

Open hansm629 opened 10 months ago

hansm629 commented 10 months ago

I am using Termux PRoot Debian.

I wanted to use box64 and wine64, so I installed box64 from the debian sid repo.

box64_0.2.6+dfsg-2_arm64.deb is installed.

If you type box64 in the terminal,

The following message is generated. I haven't tested the wine64 binary yet.

hsm@localhost:~$ box64
BOX64: Missing operand after 'box64'
See 'box64 --help' for more information.

Will there be any problem with it working?

ptitSeb commented 10 months ago

Box64 seems installed. Use box64 --version to see the version. Box64 itself does nothing. You need x86_64 binary to really use box64. If you have binfmt integration (not sure you have that on termux), just launch x86_64 program as you were on a x86_64 pc and they will just launch automaticaly with box64. Without binfmt, you need to prefix the launch with box64. Like box64 wine64 winecfg To use bash script with box64, you need x86_64 of bash and setup BOX64_BASH=/PATH/TO/bash

hansm629 commented 10 months ago

@ptitSeb

Thank you for answer!

I would like to contact you if an additional problem arises.

The following message appears and wine64's wineconfig is not running.

hsm@localhost:~$ box64 wine64 winconfig
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Cortex-A510 Cortex-A715 Cortex-A710 - with 8 Cores
Params database has 45 entries
Box64 with Dynarec v0.2.7 a609452c built on Jan  3 2024 06:21:09
BOX64: Wine64 detected, WINEPRELOADRESERVE=""
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 49 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/:/usr/x86_64-linux-gnu/lib/
BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/:/data/data/com.termux/files/usr/bin/:/system/bin/:/system/xbin/
Looking for wine64
Apply RC params for wine64
Applying BOX64_MAXCPU=64
argv[1]="winconfig"
Rename process to "wine64"
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
Using emulated /home/hsm/wine64/bin/../lib/wine/x86_64-unix/ntdll.so
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Cortex-A510 Cortex-A715 Cortex-A710 - with 8 Cores
Params database has 45 entries
Box64 with Dynarec v0.2.7 a609452c built on Jan  3 2024 06:21:09
BOX64: Wine64 detected, WINEPRELOADRESERVE=""
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 51 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/:/usr/x86_64-linux-gnu/lib/
BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/:/data/data/com.termux/files/usr/bin/:/system/bin/:/system/xbin/
Looking for /home/hsm/wine64/bin/wine64
Apply RC params for wine64
Applying BOX64_MAXCPU=64
argv[1]="winconfig"
Rename process to "wine64"
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
Using emulated /home/hsm/wine64/bin/../lib/wine/x86_64-unix/ntdll.so
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Cortex-A510 Cortex-A715 Cortex-A710 - with 8 Cores
Params database has 45 entries
Box64 with Dynarec v0.2.7 a609452c built on Jan  3 2024 06:21:09
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 51 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/:/usr/x86_64-linux-gnu/lib/
BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/:/data/data/com.termux/files/usr/bin/:/system/bin/:/system/xbin/
Looking for /home/hsm/wine64/bin/wineserver
Rename process to "wineserver"
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
Using emulated /home/hsm/wine64/lib/wine/x86_64-unix/libwine.so.1
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2).
0078:err:wineusb:usb_init Failed to initialize libusb: Other error
0074:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:err:hid:sdl_bus_init could not init SDL: Could not initialize UDEV
0074:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0074:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0074:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Cortex-A510 Cortex-A715 Cortex-A710 - with 8 Cores
Params database has 45 entries
Box64 with Dynarec v0.2.7 a609452c built on Jan  3 2024 06:21:09
BOX64: Wine64 detected, WINEPRELOADRESERVE="000400000-000438000"
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 53 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/:/usr/x86_64-linux-gnu/lib/
BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/:/data/data/com.termux/files/usr/bin/:/system/bin/:/system/xbin/
Looking for /home/hsm/wine64/bin/wine64
Apply RC params for wine64
Applying BOX64_MAXCPU=64
argv[1]="C:\windows\system32\conhost.exe"
argv[2]="--unix"
argv[3]="--width"
argv[4]="80"
argv[5]="--height"
argv[6]="24"
argv[7]="--server"
argv[8]="0x10"
Rename process to "wine64"
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
Using emulated /home/hsm/wine64/bin/../lib/wine/x86_64-unix/ntdll.so
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Using emulated /home/hsm/wine64/lib/wine/x86_64-unix/libwine.so.1
Using emulated /home/hsm/wine64/lib/wine/x86_64-unix/win32u.so
Using native(wrapped) libm.so.6
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libfontconfig.so.1
Using native(wrapped) libexpat.so.1
Using emulated /home/hsm/wine64/lib/wine/x86_64-unix/win32u.so
Using native(wrapped) libm.so.6
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libfontconfig.so.1
Using native(wrapped) libexpat.so.1
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: Internal error.

Based on wine8.0.1_amd64 binary. How can I solve this?

ptitSeb commented 10 months ago

I'm not a TERMUX expert, so you'll find better answer on some Termux centered Discord I think.

For the look of it, your wine version is not a Wine with Experimental WOW64 only version, but hybrid x86/x86_64 one. So I guess you'll need box86 too to run the 32bits part. But that's always complicated to get box86 running on 64bits OS. You should look at Wine/WOW64 build (pi-apps and krone4k have some I think). Or look at how to install box86 on termux.

hansm629 commented 10 months ago

I'm not a TERMUX expert, so you'll find better answer on some Termux centered Discord I think.

For the look of it, your wine version is not a Wine with Experimental WOW64 only version, but hybrid x86/x86_64 one. So I guess you'll need box86 too to run the 32bits part. But that's always complicated to get box86 running on 64bits OS.

@ptitSeb Is there a wine64 version you recommend? My goal is to run x64 programs, not x86 programs.