[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --ena
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified |
Date: |
Thu, 30 Jun 2011 17:26:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Mnenhy/0.8.3 Thunderbird/3.1.10 |
On 06/27/2011 07:22 PM, Stefan Weil wrote:
> Am 27.06.2011 07:56, schrieb Roy Tam:
>> 2011/6/27 Stefan Weil<address@hidden>:
>>> Am 27.06.2011 04:37, schrieb TeLeMan:
>>>> This patch breaks the compilation with --enable-vnc-png:
>>>>
>>>> CC ui/vnc-enc-tight.o
>>>> In file included from /usr/include/png.h:518,
>>>> from ui/vnc-enc-tight.c:34:
>>>> /usr/include/pngconf.h:371: error: expected '=', ',', ';', 'asm' or
>>>> '__attribute__' before '.' token
>>>> /usr/include/pngconf.h:372: error: expected '=', ',', ';', 'asm' or
>>>> '__attribute__' before 'include'
>>>> make: *** [ui/vnc-enc-tight.o] Error 1
>>>>
>>>> --
>>>> SUN OF A BEACH
>>> I get the same compiler error when I run with --enable-vnc-png,
>>> and the buildbots got it as well. In my last test, png support
>>> was disabled, so I did not notice this problem.
>>>
>>> The png header files check for prior inclusion of setjmp.h
>>> and have a really surprising way of telling that this happened
>>> (instead of #error, they use illegal C code - a comment without
>>> comment delimiters).
>>>
>> I wonder which libpng version do you use. Mine is 1.5.2 and it works
>> here.
>
> The critical code is only active for linux (#ifdef __linux__ ... #endif).
> I was using linbpng-1.2.42 (ubuntu) and libpng-1.2.44 (debian).
>
> You won't get the problem when compiling with MinGW.
>From pngconf.h
* You can bypass this test if you know that your application uses exactly
* the same setjmp.h that was included when libpng was built. Only define
* PNG_SKIP_SETJMP_CHECK while building your application, prior to the
* application's '#include "png.h"'. Don't define PNG_SKIP_SETJMP_CHECK
* while building a separate libpng library for general use.
Paolo
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, (continued)
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, Stefan Weil, 2011/06/23
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, Stefan Hajnoczi, 2011/06/24
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, Blue Swirl, 2011/06/26
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, Stefan Weil, 2011/06/26
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, Blue Swirl, 2011/06/26
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, TeLeMan, 2011/06/26
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, Roy Tam, 2011/06/27
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, Stefan Weil, 2011/06/27
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, Roy Tam, 2011/06/27
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified, Stefan Weil, 2011/06/27
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] fix MinGW compilation when --enable-vnc-jpeg is specified,
Paolo Bonzini <=