Frogging-Family / wine-tkg-git

The wine-tkg build systems, to create custom Wine and Proton builds
893 stars 163 forks source link

Build failing: mouse.c:1650:27 called object is not a function or function pointer #1009

Closed ltsdw closed 1 year ago

ltsdw commented 1 year ago

I'm trying to get the latest version possible where social club rockstar works and also fsr.

wine-ge-proton7-43 used to work, but now social club gives me error "code 17", saying "it couldn't connect", it happens with any wine ge below 8.1. But since wine ge 8.1 I'm unable to use nvidia prime render offload (which it doesn't seem to be happening with the mainline wine without any patches):

__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus="NVIDIA_only"
__GLX_VENDOR_LIBRARY_NAME="nvidia"
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  43 ()
  Serial number of failed request:  348
  Current serial number in output stream:  349

Maybe I'll have more luck with tkg :3

The versions I tried:

_staging_version="bd2608b"

Also tried, 7.15, 7.18, 7.19, 7.20, 7.21 (all of them, same error). Also tried setting protonify to false, but still fails to build.

The build fails with:

../wine-git/dlls/winex11.drv/mouse.c: In function ‘X11DRV_ClipCursor’:
../wine-git/dlls/winex11.drv/mouse.c:1650:27: error: called object is not a function or function pointer
 1650 |         if (foreground == NtUserGetDesktopWindow())
      |                           ^~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:198074: dlls/winex11.drv/mouse.o] Error 1

I saw the https://github.com/Frogging-Family/wine-tkg-git/issues/896 but I don't have that patch, actually I didn't touch anything besides the staging version.

Edit:

In the mean time after reading how this project select which patches to apply I was able to manually get the valve wine experimental_proton 7.0 to compile with fsr and the de-steamify patches applied cleanly. But still I wasn't able to run GTAV the rockstar launcher opens and closes. But atleast the nvidia prime render offload is working at this version.

ltsdw commented 1 year ago

It's possible to compile now and it's possible to apply the fsr patch. Closing.