novice build issue

Questions about Wine on Linux
Post Reply
justrandy
Newbie
Newbie
Posts: 1
Joined: Mon Feb 05, 2024 6:20 pm

novice build issue

Post by justrandy »

I'm guessing I'm just doing something silly. I've gotten the 9.1 source for my Rocky 8.9 system and have installed all the dependencies - I think. Well I do, but maybe I missed something.

Compiling the wine64 was easy as pie
mkdir BuildDir64 ; cd BuildDir64 ; ../configure --enable-win64 ; make
and after a while no errors no problems and voila.

But in truth I want the 32 bit, so I
cd .. ; mkdir BuildDir32 ; cd BuildDir32
PKG_CONFIG_PATH=/usr/lib ../configure -with-wine64=../BuildDir64

this works like a champ and I'm ready to do the make. My gcc is 8.5, my mingw32 and 64 are both 7.2
but... the make blows up like below. Help? I think I missed second base or something.

../dlls/d2d1/effect.c: In function 'd2d_effects_init_builtins':
../dlls/d2d1/effect.c:296:41: error: initializer element is not constant
{ &CLSID_D2D12DAffineTransform, _2d_affine_transform_description },
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../dlls/d2d1/effect.c:296:41: note: (near initialization for 'builtin_effects[0].description')
../dlls/d2d1/effect.c:297:46: error: initializer element is not constant
{ &CLSID_D2D13DPerspectiveTransform, _3d_perspective_transform_description},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../dlls/d2d1/effect.c:297:46: note: (near initialization for 'builtin_effects[1].description')
../dlls/d2d1/effect.c:298:33: error: initializer element is not constant
{ &CLSID_D2D1Composite, composite_description },
^~~~~~~~~~~~~~~~~~~~~
../dlls/d2d1/effect.c:298:33: note: (near initialization for 'builtin_effects[2].description')
../dlls/d2d1/effect.c:299:28: error: initializer element is not constant
{ &CLSID_D2D1Crop, crop_description },
^~~~~~~~~~~~~~~~
../dlls/d2d1/effect.c:299:28: note: (near initialization for 'builtin_effects[3].description')
../dlls/d2d1/effect.c:300:30: error: initializer element is not constant
{ &CLSID_D2D1Shadow, shadow_description },
^~~~~~~~~~~~~~~~~~
../dlls/d2d1/effect.c:300:30: note: (near initialization for 'builtin_effects[4].description')
../dlls/d2d1/effect.c:301:33: error: initializer element is not constant
{ &CLSID_D2D1Grayscale, grayscale_description },
^~~~~~~~~~~~~~~~~~~~~
../dlls/d2d1/effect.c:301:33: note: (near initialization for 'builtin_effects[5].description')
make: *** [Makefile:17349: dlls/d2d1/i386-windows/effect.o] Error 1
bubu123456
Newbie
Newbie
Posts: 1
Joined: Wed Dec 07, 2022 10:40 pm

Re: novice build issue

Post by bubu123456 »

i've got the same error
ubuntu18 x86, gcc7.5.0
from what i see, the element is constant

Code: Select all

static const WCHAR * const _2d_affine_transform_description 
Last edited by bubu123456 on Fri Mar 15, 2024 9:44 am, edited 1 time in total.
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: novice build issue

Post by spoon0042 »

i'm not 100% sure but it looks like a fix for this was committed recently:

https://gitlab.winehq.org/wine/wine/-/c ... 10839b60dc

you can try that patch or just removing the "* const" from those six lines manually, or update wine in git if you're using it, or wait for the next wine release which will likely be friday
roegeek
Newbie
Newbie
Posts: 2
Joined: Thu Mar 28, 2024 3:03 am

Re: novice build issue

Post by roegeek »

spoon0042 wrote: Wed Mar 20, 2024 3:24 pm i'm not 100% sure but it looks like a fix for this was committed recently:

https://gitlab.winehq.org/wine/wine/-/c ... 10839b60dc

you can try that patch or just removing the "* const" from those six lines manually, or update wine in git if you're using it, or wait for the next wine release which will likely be friday
That should give you an error at link time for any code which uses floating point.
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: novice build issue

Post by spoon0042 »

(my mistake, the change also adds the brackets at the end, regardless i assume this is working now)
Post Reply