ptitSeb / box86

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

Wineboot doesnot work on Ubuntu Groovy arm64 #381

Closed Jai-JAP closed 3 years ago

Jai-JAP commented 3 years ago

Installed Box86 from pi-apps & wine from Twister os website

Running wineboot or wine wineboot gives the following error

Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
0050:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.
0074:err:module:open_builtin_file failed to load .so lib "/home/dj/wine/lib/wine/wineusb.sys.so"
0074:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114
Error initializing native libncurses.so.6 (last dlerror is libncurses.so.6: cannot open shared object file: No such file or directory)
Wine cannot find the ncurses library (libncurses.so.6).

Running BOX86_LOG=1 wineboot or BOX86_LOG=1 wine wineboot gives the following error

Debug level is 1
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 53 Env var
Looking for /home/dj/wine/bin/wine
argv[1]="wineboot.exe"
Using emulated /home/dj/wine/bin/../lib/libwine.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /home/dj/wine/bin/../lib/wine/ntdll.so
Using native(wrapped) libm.so.6
Debug level is 1
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 54 Env var
Looking for /home/dj/wine/bin/wine
argv[1]="wineboot.exe"
Using emulated /home/dj/wine/bin/../lib/libwine.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /home/dj/wine/bin/../lib/wine/ntdll.so
Using native(wrapped) libm.so.6
Using emulated /home/dj/wine/lib/wine/ntdll.dll.so
Debug level is 1
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 54 Env var
Looking for /home/dj/wine/bin/wineserver
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
0050:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.
0074:err:module:open_builtin_file failed to load .so lib "/home/dj/wine/lib/wine/wineusb.sys.so"
0074:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114
Using emulated /home/dj/wine/lib/wine/kernel32.dll.so
Using emulated /home/dj/wine/lib/wine/kernelbase.dll.so
Using emulated /home/dj/wine/lib/wine/wineboot.exe.so
Using emulated /home/dj/wine/lib/wine/advapi32.dll.so
Using emulated /home/dj/wine/lib/wine/sechost.dll.so
Using emulated /home/dj/wine/lib/wine/ucrtbase.dll.so
Error initializing native libncurses.so.6 (last dlerror is libncurses.so.6: cannot open shared object file: No such file or directory)
Warning: Cannot dlopen("libncurses.so.6"/0x7b660684, 2)
Wine cannot find the ncurses library (libncurses.so.6).
Using emulated /home/dj/wine/lib/wine/shell32.dll.so
Using emulated /home/dj/wine/lib/wine/shlwapi.dll.so
Using emulated /home/dj/wine/lib/wine/shcore.dll.so
Using emulated /home/dj/wine/lib/wine/user32.dll.so
Using emulated /home/dj/wine/lib/wine/setupapi.dll.so
Using emulated /home/dj/wine/lib/wine/version.dll.so
Using emulated /home/dj/wine/lib/wine/rpcrt4.dll.so
Using emulated /home/dj/wine/lib/wine/gdi32.dll.so
Using emulated /home/dj/wine/lib/wine/ole32.dll.so
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libfontconfig.so.1
Using emulated /home/dj/wine/lib/wine/imm32.dll.so

Running BOX86_LOG=1 box86 wineboot or BOX86_LOG=1 box86 wine wineboot gives the error

Debug level is 1
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 53 Env var
Looking for wine
argv[1]="wineboot"
Not an ELF file (sign=#!/b)
Error: reading elf header of /usr/local/bin/wine, try to launch natively instead
Segmentation fault (core dumped)
ptitSeb commented 3 years ago

Seems like you are missing libncurses6. Also, check on pi-apps github, as I don't control the way pi-apps do the installation.

Jai-JAP commented 3 years ago

sudo apt install lincurses6 says that it is already installed

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libncurses6 is already the newest version (6.2-1).
libncurses6 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Jai-JAP commented 3 years ago

also a typing mistake : ) I installed box86 from pi-apps and wine from twisteros website

ptitSeb commented 3 years ago

Why installing box86 with pi-apps then? It's like 4 commands to type?

Oh, you are on arm64, so you need armhf version of the lib.

Jai-JAP commented 3 years ago

Ok wineboot worked but now it says failed to load .so lib wineusb.sys.so

Debug level is 1
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 53 Env var
Looking for /home/dj/wine/bin/wine
argv[1]="wineboot.exe"
Using emulated /home/dj/wine/bin/../lib/libwine.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /home/dj/wine/bin/../lib/wine/ntdll.so
Using native(wrapped) libm.so.6
Debug level is 1
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 54 Env var
Looking for /home/dj/wine/bin/wine
argv[1]="wineboot.exe"
Using emulated /home/dj/wine/bin/../lib/libwine.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /home/dj/wine/bin/../lib/wine/ntdll.so
Using native(wrapped) libm.so.6
Using emulated /home/dj/wine/lib/wine/ntdll.dll.so
Debug level is 1
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.1 26bad842 built on May  2 2021 00:04:48
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 54 Env var
Looking for /home/dj/wine/bin/wineserver
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
0074:err:module:open_builtin_file failed to load .so lib "/home/dj/wine/lib/wine/wineusb.sys.so"
0074:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114
Using emulated /home/dj/wine/lib/wine/kernel32.dll.so
Using emulated /home/dj/wine/lib/wine/kernelbase.dll.so
Using emulated /home/dj/wine/lib/wine/wineboot.exe.so
Using emulated /home/dj/wine/lib/wine/advapi32.dll.so
Using emulated /home/dj/wine/lib/wine/sechost.dll.so
Using emulated /home/dj/wine/lib/wine/ucrtbase.dll.so
Using native(wrapped) libncurses.so.6
Using native(wrapped) libtinfo.so.6
Using emulated /home/dj/wine/lib/wine/shell32.dll.so
Using emulated /home/dj/wine/lib/wine/shlwapi.dll.so
Using emulated /home/dj/wine/lib/wine/shcore.dll.so
Using emulated /home/dj/wine/lib/wine/user32.dll.so
Using emulated /home/dj/wine/lib/wine/setupapi.dll.so
Using emulated /home/dj/wine/lib/wine/version.dll.so
Using emulated /home/dj/wine/lib/wine/rpcrt4.dll.so
Using emulated /home/dj/wine/lib/wine/gdi32.dll.so
Using emulated /home/dj/wine/lib/wine/ole32.dll.so
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libfontconfig.so.1
Using emulated /home/dj/wine/lib/wine/imm32.dll.so
ptitSeb commented 3 years ago

I don't see any box86 error. What you want to run doesn't work?

Jai-JAP commented 3 years ago
0074:err:module:open_builtin_file failed to load .so lib "/home/dj/wine/lib/wine/wineusb.sys.so"
0074:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": >c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114

So this issue is not about box86

Jai-JAP commented 3 years ago
0074:err:module:open_builtin_file failed to load .so lib "/home/dj/wine/lib/wine/wineusb.sys.so"
0074:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": >c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114

So this issue is not about box86

OK I found that this is a known bug with wine. Thanks for your quick replies.

Jai-JAP commented 3 years ago

Closing this issue as I found the solution

Itai-Nelken commented 3 years ago

@Jai-JAP next time you have a problem with box86 installed from pi-apps, please open a issue in the pi-apps repository first.