Can't compile wine-git: initializer element is not constant in d3d11

André Hentschel nerv at dawncrow.de
Sat Aug 29 07:33:08 CDT 2015


Am 29.08.2015 um 14:31 schrieb André Hentschel:
> Am 29.08.2015 um 06:59 schrieb Józef Kucia:
>> Thanks for finding this issue. The attached diff should fix
>> compilation for you. What compiler do you use?
>>
>> On Sat, Aug 29, 2015 at 3:18 AM, Bruno Jesus <00cpxxx at gmail.com> wrote:
>>> Hi all, I have not compiled wine in one about 4 days and now I updated
>>> and tried and the results are:
>>>
>>> ../../../wine/dlls/d3d11/utils.c: In function
>>> ‘d3d11_resource_misc_flags_from_d3d10_resource_misc_flags’:
>>> ../../../wine/dlls/d3d11/utils.c:473:13: error: initializer element is
>>> not constant
>>> ../../../wine/dlls/d3d11/utils.c: In function
>>> ‘d3d10_resource_misc_flags_from_d3d11_resource_misc_flags’:
>>> ../../../wine/dlls/d3d11/utils.c:501:13: error: initializer element is
>>> not constant
>>> make[1]: ** [utils.o] Erro 1
>>> make[1]: Saindo do diretório `/home/bruno/programs/wine32/dlls/d3d11'
>>> make: ** [dlls/d3d11] Erro 2
>>>
>>> Is anyone experiencing a similar issue? I already tried make clean && make.
>>>
>>> Best regards,
>>> Bruno
>>>
> 
> That patch seems not to be enough:
> 
> arm-linux-gnueabihf-gcc -c -o utils.o ../../../dlls/d3d11/utils.c -I. -I../../../dlls/d3d11 -I../../include \
>   -I../../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing \
>   -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits \
>   -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -march=armv7-a -marm
> ../../../dlls/d3d11/utils.c: In function ‘d3d11_resource_misc_flags_from_d3d10_resource_misc_flags’:
> ../../../dlls/d3d11/utils.c:473:13: error: initializer element is not constant
>              | D3D10_RESOURCE_MISC_GDI_COMPATIBLE;
>              ^
> ../../../dlls/d3d11/utils.c: In function ‘d3d10_resource_misc_flags_from_d3d11_resource_misc_flags’:
> ../../../dlls/d3d11/utils.c:501:13: error: initializer element is not constant
>              | D3D11_RESOURCE_MISC_GDI_COMPATIBLE;
>              ^
> 

Sorry for the noise, the patch wasn't applied correctly *facepalm*




More information about the wine-devel mailing list