I went through all the steps on the compiling / installing page on Mesa's site, and read the FAQ. The final command that you send to scons for compilation throws errors within python scripts. This is my output. What am I doing wrong? Also if anyone has compiled dll's for mesa using up to date mesa and mingw, or VS2012, then please share!
Here is my output, I haven't programmed python in a long time but it appears a map/dictionary doesn't contain the key/value pair.
C:\Downloads\MesaLib-9.1.5\Mesa-9.1.5>scons platform=windows toolchain=crossming
w machine=x86_64 mesagdi libgl-gdi
scons: Reading SConscript files ...
KeyError: 'CCVERSION':
File "C:\Downloads\MesaLib-9.1.5\Mesa-9.1.5\SConstruct", line 40:
ENV = os.environ,
File "C:\Python27\scons-2.3.0\SCons\Environment.py", line 1002:
apply_tools(self, tools, toolpath)
File "C:\Python27\scons-2.3.0\SCons\Environment.py", line 106:
env.Tool(tool)
File "C:\Python27\scons-2.3.0\SCons\Environment.py", line 1786:
tool(self)
File "C:\Python27\scons-2.3.0\SCons\Tool\__init__.py", line 183:
self.generate(env, *args, **kw)
File "C:\Downloads\MesaLib-9.1.5\Mesa-9.1.5\scons\gallium.py", line 313:
ccversion = env['CCVERSION']
File "C:\Python27\scons-2.3.0\SCons\Environment.py", line 412:
return self._dict[key]
Common
scons
options:Linux (Debian Wheezy),Works as of Debian Jessie 8.5 & Mesatoolchain=crossmingw
: Fails during linking phase because it can't find__vscprintf
, among other things.d2f42a945ec0fbcc51b59cfd329258bd62ebf0d2
via:DLL is installed to
build/windows-x86/gallium/targets/libgl-gdi/opengl32.dll
Windows,
toolchain=mingw
: Fails with "The command line is too long." despite multiple permutations of both snippits onLongCmdLinesOnWin32
.Windows, VS2012 Express,
MSVC_VERSION=11.0
: Succeeds after removing stray C99-isms fromsrc/glsl/ralloc.c::ralloc_size()
.EDIT: More complete procedure:
Install Visual Studio Express 2012 for Windows Desktop:
Install MinGW:
Install Python 2.7:
Install
libxml2
for Python:Install
pywin32
:Install
Scons
:Add these near the top of your
PATH
:Download Mesa:
Start MSYS shell:
Build Mesa:
This should create an
opengl32.dll
inbuild\windows-x86\gallium\targets\libgl-gdi
.With a little bit more legwork it's possible to build
llvmpipe
.