Error compiling WINE dlls/winex11.drv/mouse.c

Questions about Wine on Linux
Locked
vitorgatti
Newbie
Newbie
Posts: 2
Joined: Fri May 29, 2015 9:35 pm

Error compiling WINE dlls/winex11.drv/mouse.c

Post by vitorgatti »

I am trying to compile WINE on a netbook (Atom CPU, 2GB RAM) for the extra performance instead of using pre-built packages, but I am getting stuck here:

Code: Select all

gcc -m64 -c -o dlls/winex11.drv/mouse.o dlls/winex11.drv/mouse.c -Idlls/winex11.drv -Iinclude -D__WINESRC__ -fPIC \
  -fasynchronous-unwind-tables -Wall -pipe -fcf-protection=none -fno-stack-protector \
  -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self \
  -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-4 -g -O2
gcc -m64 -c -o dlls/winex11.drv/opengl.o dlls/winex11.drv/opengl.c -Idlls/winex11.drv -Iinclude -D__WINESRC__ -fPIC \
  -fasynchronous-unwind-tables -Wall -pipe -fcf-protection=none -fno-stack-protector \
  -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self \
  -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-4 -g -O2
dlls/winex11.drv/mouse.c: In function ‘grab_clipping_window’:
dlls/winex11.drv/mouse.c:406:13: error: ‘struct x11drv_thread_data’ has no member named ‘xi2_state’
  406 |     if (data->xi2_state != xi_enabled)
      |             ^~
dlls/winex11.drv/mouse.c:406:28: error: ‘xi_enabled’ undeclared (first use in this function)
  406 |     if (data->xi2_state != xi_enabled)
      |                            ^~~~~~~~~~
dlls/winex11.drv/mouse.c:406:28: note: each undeclared identifier is reported only once for each function it appears in
dlls/winex11.drv/mouse.c: At top level:
dlls/winex11.drv/mouse.c:631:35: error: unknown type name ‘XIRawEvent’; did you mean ‘XMapEvent’?
  631 | static BOOL map_raw_event_coords( XIRawEvent *event, INPUT *input )
      |                                   ^~~~~~~~~~
      |                                   XMapEvent
dlls/winex11.drv/mouse.c: In function ‘create_xcursor_system_cursor’:
dlls/winex11.drv/mouse.c:1131:25: warning: variable ‘names’ set but not used [-Wunused-but-set-variable]
 1131 |     const char * const *names = NULL;
      |                         ^~~~~
make: *** [Makefile:144016: dlls/winex11.drv/mouse.o] Error 1
make: *** Waiting for unfinished jobs....
Distro: Debian 11 (bullseye) 64bits

Packages installed to compile:
gcc-mingw-w64
libdbus-1-dev
libfontconfig-dev
libfreetype-dev
libgnutls28-dev
libjpeg62-turbo-dev
libpng-dev
libtiff-dev
libgl-dev
libunwind-dev
libxml2-dev
libxslt1-dev
libosmesa6-dev
libfl-dev
libbison-dev
bison
(no audio related packages as the software I will use does not need audio)

The compile error ocurred after several hours of compiling.
If relevant, I am attaching the config.log file (can't attach the Makefile as even compressed it is too large to attach here (470KB).

Any idea what could be the issue?
Thank you
Attachments
config.tar.gz
(44.97 KiB) Downloaded 94 times
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: Error compiling WINE dlls/winex11.drv/mouse.c

Post by invisible kid »

Just some tips/advice from a regular user.

1. I hear you about performance, but wine is a bit trickier to build than other packages. To the point where I would just use the package manager to install a version.

2. To build wine that deals with 64 bit and 32 bit programs you should follow this:
https://wiki.winehq.org/Building_Wine#Shared_WoW64
For example, my 64 bit and 32 bit configure commands are:
64 bit:

Code: Select all

export PATH=${PATH}:/opt/mingw-w64/bin:/opt/mingw-w32/bin
../configure         \
--prefix=/usr        \
--sysconfdir=/etc    \
--localstatedir=/var \
--libdir=/usr/lib64  \
--enable-win64       \
--without-gstreamer  \
--without-oss        \
--without-xrandr     \
--without-xxf86vm
32 bit:

Code: Select all

PKG_CONFIG_PATH=/usr/lib32/pkgconfig ../configure \
--prefix=/usr        \
--sysconfdir=/etc    \
--localstatedir=/var \
--libdir=/usr/lib32  \
--without-gstreamer  \
--without-oss        \
--without-xrandr     \
--without-xxf86vm    \
--with-wine64=../wine64-build
Not saying yours would be identical, just offering my example.

Good luck!
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Error compiling WINE dlls/winex11.drv/mouse.c

Post by jkfloris »

You are missing the xorg-dev packages.
From the Wine README file:
Basic requirements:
You need to have the X11 development include files installed
(called xorg-dev in Debian and libX11-devel in Red Hat).

Of course you also need "make" (most likely GNU make).

You also need flex version 2.5.33 or later and bison.

Optional support libraries:
Configure will display notices when optional libraries are not found
on your system. See https://wiki.winehq.org/Recommended_Packages for
hints about the packages you should install. On 64-bit platforms,
you have to make sure to install the 32-bit versions of these
libraries.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Error compiling WINE dlls/winex11.drv/mouse.c

Post by Bob Wya »

vitorgatti wrote: Mon Dec 06, 2021 5:10 am I am trying to compile WINE on a netbook (Atom CPU, 2GB RAM) for the extra performance instead of using pre-built packages, but I am getting stuck here:
...
@vitorgatti

With that hardware you are really just wasting your time - if it's just for "extra performance".
Compiling Wine is best reserved for applying patches (to fix issues), etc.
You'll spend over an hour compiling Wine - on a weak system - for little tangible benefit.

I speak as someone who runs Gentoo - for a "hobby" - so all packages are compiled... :lol:

Just my $0.02!

Bob
Locked