ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.33k stars 228 forks source link

WINE 6.x #516

Open ThingUroboros opened 2 years ago

ThingUroboros commented 2 years ago

It is possible to install wine 6.x and use it?

I was able to run version 5.22 but not version 6.22 It is possible to install and use it.

Thank you for any advice

ptitSeb commented 2 years ago

I used 6.0.1 and 6.0.2 with no issues. Most recent 6.10+ doesn't seems to work for now, I have to debug what's wrong.

ThingUroboros commented 2 years ago

The problem may be with the driver initializing the display driver. Depending on the error the system reports.

Unfortunately I'm not at raspberry, I'll add the logs as soon as possible

ThingUroboros commented 2 years ago

This it Installed packege In normal x86 system linux mint

Nastavuje se balík libvkd3d-shader1:i386 (1.2~focal-1) …
Nastavuje se balík vkd3d-compiler (1.2~focal-1) …
Nastavuje se balík libvkd3d1:i386 (1.2~focal-1) …
Nastavuje se balík wine-stable-i386:i386 (6.0.2~focal-1) …
Nastavuje se balík wine-devel-i386:i386 (6.23~focal-1) …
Nastavuje se balík winehq-devel:i386 (6.23~focal-1) …

maybe you need to resolve the dependencies on these packages.

randomMesh commented 2 years ago

I too have a problem with Wine 6.23 (devel) on my Raspberry Pi 400 running Ubuntu 21.10.

I compiled the latest master branch of Box86 and installed Wine via the instructions here.

Running wine wineboot results in the following error message:

Box86 with Dynarec v0.2.5 c3f21c8 built on Jan  4 2022 12:01:40
Error: PltResolver: Symbol dlopen(ver 2: dlopen@GLIBC_2.34) not found, cannot apply R_386_JMP_SLOT 0x7d003fc0 (0x7d0010e6) in /home/xxx/wine/bin/wine
WheezyE commented 2 years ago

I've been able to run wine-devel-7.1 on Raspberry Pi OS 32-bit. Does updating wine or box86 help at all?

@randomMesh I'm just kind of guessing, but another problem might be with running on a 64-bit (aarch64) OS without multiarch:armhf (32bit) (sudo dpkg --add-architecture armhf && sudo apt update) and the necessary armhf libraries installed. If you type uname -m and your terminal says aarch64, aarch64-linux-gnu, arm64, or aarch64_be, then a list of some ideas for some of those needed libraries (at least for Debian 10 aarch64) can be found here

WheezyE commented 2 years ago

Also, @ThingUroboros , are you using the wine install instructions here? Installing wine with apt or dpkg won't work on the Pi or other arm systems

randomMesh commented 2 years ago

Hello @WheezyE

Does updating wine or box86 help at all?

I've upgraded box86 to the latest version but it didn't help. Box86 with Dynarec v0.2.5 4707997 built on Feb 11 2022 10:21:55

Didn't try to update Wine yet but this is the next thing i do if i find the spare time.

another problem might be with running on a 64-bit (aarch64) OS

I am running the 32bit version of Ubuntu 21.10.

ptitSeb commented 2 years ago

Can you retry now with latest box86?

randomMesh commented 2 years ago

Hello @ptitSeb

I've upgraded Box86 to the latest version and it seems that the original error with PltResolver is gone. But there still are other error messages if i want to run wine wineboot:

xxx@xxx:~$ wine wineboot
Box86 with Dynarec v0.2.5 e513cbe built on Mar  6 2022 23:36:36
Error: Symbol fstatat64 not found, cannot apply R_386_JMP_SLOT 0x40519134 (0x64e6) in /home/xxx/wine/bin/../lib/wine/i386-unix/ntdll.so
Error: Symbol fstat64 not found, cannot apply R_386_JMP_SLOT 0x40519264 (0x69a6) in /home/xxx/wine/bin/../lib/wine/i386-unix/ntdll.so
Box86 with Dynarec v0.2.5 e513cbe built on Mar  6 2022 23:36:36
Error: Symbol fstatat64 not found, cannot apply R_386_JMP_SLOT 0x4052d134 (0x64e6) in /home/xxx/wine/bin/../lib/wine/i386-unix/ntdll.so
Error: Symbol fstat64 not found, cannot apply R_386_JMP_SLOT 0x4052d264 (0x69a6) in /home/xxx/wine/bin/../lib/wine/i386-unix/ntdll.so

Thank you for looking into this!

RubberDuckShobe commented 2 years ago

I used 6.0.1 and 6.0.2 with no issues.

Most recent 6.10+ doesn't seems to work for now, I have to debug what's wrong.

6.0.3 and up seem to start causing issues on my end - 6.0.2 works.

kmlebedev commented 1 year ago

@ptitSeb Hi, I also tried to install the latest version of Box64 and failed on my rk3399. I expect delivery of rk3588 in the near future, you may need help in developing similar instructions https://github.com/ptitSeb/box86/blob/master/docs/COMPILE.md#for-rk3399

/usr/local/bin/box64 /usr/bin/wine64-stable ./txmlconnector-server.exe
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096
Box64 with Dynarec v0.1.9 95622ca built on Oct 23 2022 23:02:01
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 27 Env var
Looking for /usr/bin/wine64-stable
argv[1]="./txmlconnector-server.exe"
Rename process to "wine64-stable"
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Error: PltResolver: Symbol dlopen(ver 3: dlopen@GLIBC_2.34) not found, cannot apply R_X86_64_JUMP_SLOT 0x7d003f78 (0x7d001096) in /usr/bin/wine64-stable
root@orangepi-rk3399:/usr/local/bin# dpkg -l | grep wine64
ii  wine64:amd64                         6.0.3~repack-1                          amd64        Windows API implementation - 64-bit binary loader
inxi --full --verbosity=7 --filter --no-host
System:
  Kernel: 5.15.74-rockchip64 aarch64 bits: 64 compiler: N/A Console: pty pts/0
    Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Machine:
  Type: ARM System: Orange Pi RK3399 Board details: N/A serial: <filter>
Memory:
  RAM: total: 3.77 GiB used: 1.03 GiB (27.4%)
  RAM Report: missing: Required tool dmidecode not installed. Check --recommends
CPU:
  Info: 2x 4-core model: N/A variant-1: cortex-a53 variant-2: cortex-a72 bits: 64 type: MCP AMP
    smt: <unsupported> arch: ARMv8 rev: 4
  Speed (MHz): avg: 1544 high: 1800 min/max: 408/1416:1800 cores: 1: 1416 2: 1416 3: 1416
    4: 1416 5: 1800 6: 1800 bogomips: N/A
  Features: aes asimd cpuid crc32 evtstrm fp pmull sha1 sha2
Graphics:
  Device-1: display-subsystem driver: rockchip_drm v: N/A bus-ID: N/A
    chip-ID: rockchip:display-subsystem class-ID: display-subsystem
  Device-2: rk3399-dw-hdmi driver: dwhdmi_rockchip v: N/A bus-ID: N/A
    chip-ID: rockchip:ff940000 class-ID: hdmi
  Device-3: rk3399-mali driver: panfrost v: kernel bus-ID: N/A chip-ID: rockchip:ff9a0000
    class-ID: gpu
  Display: server: No display server data found. Headless machine? tty: 185x56
  Message: GL data unavailable in console for root.
Audio:
  Device-1: rk3399-dw-hdmi driver: dwhdmi_rockchip bus-ID: N/A chip-ID: rockchip:ff940000
    class-ID: hdmi
  Device-2: simple-audio-card driver: N/A bus-ID: N/A chip-ID: simple-audio-card:hdmi-sound
    class-ID: hdmi-sound
  Sound Server-1: ALSA v: k5.15.74-rockchip64 running: yes
Network:
  Device-1: rk3399-gmac driver: rk_gmac_dwmac v: N/A port: N/A bus-ID: N/A
    chip-ID: rockchip:fe300000 class-ID: ethernet
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global broadcast: <filter>
  IP v6: <filter> type: temporary dynamic scope: global
  IP v6: <filter> type: dynamic mngtmpaddr noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: rk3399-uart driver: dw_apb_uart bus-ID: N/A chip-ID: rockchip:ff180000
    class-ID: serial
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: not found rfk-block: hardware: no
    software: no address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 133.8 GiB used: 8.91 GiB (6.7%)
  ID-1: /dev/mmcblk2 model: AJTD4R size: 14.56 GiB type: SSD serial: <filter> rev: 0x8
    scheme: MBR
  ID-2: /dev/sda type: USB model: SSD 128GB size: 119.24 GiB type: SSD serial: <filter>
    scheme: MBR
  Message: No optical or floppy data found.
Partition:
  ID-1: / size: 14.06 GiB used: 5.82 GiB (41.4%) fs: ext4 dev: /dev/mmcblk2p1 label: N/A
    uuid: ca1a6a2f-5d22-473c-9fee-087fb08c33a0
  ID-2: /var/lib/clickhouse size: 116.81 GiB used: 3.09 GiB (2.6%) fs: ext4 dev: /dev/sda1
    label: N/A uuid: 93562205-c843-431d-b3c4-960396851baf
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 2-0:1 info: Super-speed hub ports: 1 rev: 3.0 speed: 5 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Device-1: 2-1:2 info: ASMedia ASM1153 SATA 3Gb/s bridge type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 3.0 speed: 5 Gb/s chip-ID: 174c:1153 class-ID: 0806
    serial: <filter>
  Hub-3: 3-0:1 info: Full speed or root hub ports: 1 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 3-1:2 info: Terminus Hub ports: 4 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: 1a40:0101 class-ID: 0900
  Hub-5: 4-0:1 info: Full speed or root hub ports: 1 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-6: 5-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-7: 6-0:1 info: Super-speed hub ports: 1 rev: 3.0 speed: 5 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-8: 7-0:1 info: Full speed or root hub ports: 1 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-9: 8-0:1 info: Full speed or root hub ports: 1 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
Sensors:
  Missing: Required tool sensors not installed. Check --recommends
Info:
  Processes: 155 Uptime: 18h 44m Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.2.0 alt: 11
  Packages: apt: 807 Shell: Bash v: 5.1.16 running-in: pty pts/0 (SSH) inxi: 3.3.13