[Mesa-dev] [Bug 85918] Mesa: MSVC 2010/2012 Compile error
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Nov 5 07:08:04 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=85918
Bug ID: 85918
Summary: Mesa: MSVC 2010/2012 Compile error
Product: Mesa
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: NEW
Severity: blocker
Priority: medium
Component: Mesa core
Assignee: mesa-dev at lists.freedesktop.org
Reporter: mr.bachmann at web.de
Created attachment 108965
--> https://bugs.freedesktop.org/attachment.cgi?id=108965&action=edit
patch for the file src/mesa/main/macros.h
To reproduce:
- I setup a working environment for compiling mesa on windows following a
description which can be found here:
https://sites.google.com/site/buildllvmpipe/
I used MesaLib-10.3.2 and llvm-3.4.2 for building opengl32.dll.
when finally compiling mesa, the following error occurs:
-------------------------------------------------------------------------------
Compiling src\mesa\drivers\windows\gdi\wmesa.c ...
wmesa.c
Compiling src\mesa\main\api_arrayelt.c ...
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2146: syntax error : missing
')' before identifier 'color'
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2059: syntax error : ')'
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2146: syntax error : missing
')' before identifier 'color'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2059: syntax error : ')'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2146: syntax error : missing
')' before identifier 'color'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2059: syntax error : ')'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2059: syntax error : 'bad
suffix on number'
api_arrayelt.c
Compiling build\windows-x86_64\mesa\main\api_exec.c ...
scons: *** [build\windows-x86_64\mesa\drivers\windows\gdi\wmesa.obj] Error 2
Compiling src\mesa\main\api_loopback.c ...
api_exec.c
api_loopback.c
scons: building terminated because of errors.
-------------------------------------------------------------------------------
The problem is to be found in the Macros UNCLAMPED_FLOAT_TO_UBYTE and
CLAMPED_FLOAT_TO_UBYTE.
These macros have a parameter named 'F' which the compiler uses to replace the
number suffix e.g. the 'F' at the end of '255.0F'.
Find attached a patch which allows to compile the code with Visual Studio 2010
and 2012, where the Macro parameter 'F' has simply been renamed to 'FL'.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141105/f00cd51b/attachment.html>
More information about the mesa-dev
mailing list