I can't even run notepad on self-compiled wine 5.6

Questions about Wine on Linux
Locked
guillep2k
Newbie
Newbie
Posts: 1
Joined: Tue Jun 09, 2020 12:04 pm

I can't even run notepad on self-compiled wine 5.6

Post by guillep2k »

Hi. I'm trying to compile and use wine on a CentOS Linux release 7.7.1908 (Core).

Code: Select all

$ uname -a
Linux deflinux.sif.com.ar 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
No matter how I approach to building it, the error I get is:

Code: Select all

$ cd $HOME ; rm -rf .wine # To start fresh
$ wine notepad
wine: created the configuration directory '/home/guillep2k/.wine'
000b:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\KERNEL32.dll") failed (error c000007b).
wine: could not load kernel32.dll, status c000007b
0009:err:environ:run_wineboot failed to start wineboot c00000e5
0009:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\KERNEL32.dll") failed (error c000007b).
wine: could not load kernel32.dll, status c000007b

Code: Select all

$ cd $HOME ; rm -rf .wine # To start fresh
$ wine64 notepad
wine: created the configuration directory '/home/guillep2k/.wine'
000b:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\KERNEL32.dll") failed (error c000007b).
wine: could not load kernel32.dll, status c000007b
0009:err:environ:run_wineboot failed to start wineboot c00000e5
0009:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\KERNEL32.dll") failed (error c000007b).
wine: could not load kernel32.dll, status c000007b
The created prefix directory is just empty:

Code: Select all

$ find .wine
.wine
.wine/dosdevices
.wine/dosdevices/c:
.wine/dosdevices/z:
.wine/drive_c
.wine/drive_c/windows
.wine/drive_c/windows/system32
.wine/drive_c/windows/syswow64
And I can't understand what I'm doing wrong. I've followed directions from https://wiki.winehq.org/Building_Wine as best as I could:

Code: Select all

cd /usr/src
wget https://dl.winehq.org/wine/source/5.x/wine-5.6.tar.xz
tar -Jxf wine-5.6.tar.xz
rm wine-5.6.tar.xz
mkdir wine64-build wine32-build
cd wine64-build/
../wine-5.6/configure --enable-win64
make
cd ../wine32-build/
PKG_CONFIG_PATH=/usr/lib/pkgconfig/ ../wine-5.6/configure --with-wine64=../wine64-build
make
I've got some "notices" about missing features, but those, AFAIU, should not be a concern for me (e.g. audio, DX12):

Code: Select all

configure: MinGW compiler not found, cross-compiling PE files won't be supported.
configure: XShm 64-bit development files not found, X Shared Memory won't be supported.
configure: XShape 64-bit development files not found, XShape won't be supported.
configure: libxinerama 64-bit development files not found, multi-monitor setups won't be supported.
configure: OpenCL 64-bit development files not found, OpenCL won't be supported.
configure: libhal 64-bit development files not found, no legacy dynamic device support.
configure: libsane 64-bit development files not found, scanners won't be supported.
configure: libv4l2 64-bit development files not found.
configure: libgphoto2 64-bit development files not found, digital cameras won't be supported.
configure: libgphoto2_port 64-bit development files not found, digital cameras won't be auto-detected.
configure: liblcms2 64-bit development files not found, Color Management won't be supported.
configure: libpulse 64-bit development files not found or too old, Pulse won't be supported.
configure: gstreamer-1.0 base plugins 64-bit development files not found, GStreamer won't be supported.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libudev 64-bit development files not found, plug and play won't be supported.
configure: libSDL2 64-bit development files not found, SDL2 won't be supported.
configure: libFAudio 64-bit development files not found, XAudio2 won't be supported.
configure: libcapi20 64-bit development files not found, ISDN won't be supported.
configure: libgsm 64-bit development files not found, gsm 06.10 codec won't be supported.
configure: libmpg123 64-bit development files not found (or too old), mp3 codec won't be supported.
configure: libopenal 64-bit development files not found (or too old), OpenAL won't be supported.
configure: vkd3d 64-bit development files not found (or too old), Direct3D 12 won't be supported.

configure: WARNING: No sound system was found. Windows applications will be silent.
As far as I can tell, everything configures and compiles correctly. What I was unsure about (instructions were unclear) is whether I should have run "make install" from the wine64 or wine32 build, or from both. I've tried installing/uninstalling in several combinations, the latest of which was "install from wine32 first, then from wine64". Always the same result.

Here's an strace gist from one attempt.

Just in case, here's a gist listing all of my installed libraries.

I really can't tell what's going on. If anybody could step in and help, I've be thrilled. Thanks!
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: I can't even run notepad on self-compiled wine 5.6

Post by spoon0042 »

Have you been able to build a working wine with earlier versions? Because there have been some bugs with wine lately and the first thing to check would be that you were able to build wine before. I hope that makes sense.
AstorBG
Level 1
Level 1
Posts: 5
Joined: Thu May 14, 2020 8:50 am

Re: I can't even run notepad on self-compiled wine 5.6

Post by AstorBG »

Try first to build the 64 bit in your 64 directory
./configure --enable-win64
then compile with
make

Second build the 32bit
PKG_CONFIG_PATH=/usr/lib/pkgconfig/ ./configure --with-wine64=../wine64-build
then compile
make

Next you have to run make install in both dirs as root, try first in 32bit dir and then in 64 bit dir.

However I would suggest finding for both archs as many as possible missing development libraries (devel) before building (especially the libSDL2-devel, libpulse-devel, liblcms2-devel and for gstreamer).
Check here for the devel libs/dependecies. You probably wont need libhal and OSS sound so you can use in ./configure --without-oss --without--hal options.
Locked