梅萨建设为Windows 7梅萨9.1 [英] Building Mesa for windows 7. Mesa 9.1
问题描述
我通过梅萨的网站编译/安装页面上的所有步骤去了,阅读常见问题解答。您发送给SCons编译最后一个命令抛出的Python脚本中的错误。这是我的输出。我究竟做错了什么?同时如果有人使用最新的台面和MinGW或VS2012编译DLL对台面的话,请分享!
下面是我的输出,我没有编程蟒蛇在相当长的时间,但它会出现一个地图/字典不包含键/值对。
C:\\下载\\ MesaLib-9.1.5 \\梅萨-9.1.5> scons的平台=窗口工具链= crossming
W¯¯机= x86_64的mesagdi libGL函数-GDIscons的:读SConscript文件...
KeyError异常:CCVERSION:
文件C:\\下载\\ MesaLib-9.1.5 \\梅萨-9.1.5 \\ SConstruct,第40行:
ENV = os.environ,
文件C:\\ Python27 \\ scons的-2.3.0 \\ SCons的\\ Environment.py,线路1002:
apply_tools(个体经营,工具,刀具路径)
文件C:\\ Python27 \\ scons的-2.3.0 \\ SCons的\\ Environment.py,行106:
env.Tool(工具)
文件C:\\ Python27 \\ scons的-2.3.0 \\ SCons的\\ Environment.py,线路1786:
工具(个体经营)
文件C:\\ Python27 \\ scons的-2.3.0 \\ SCons的\\工具\\ __ init__.py,行183:
self.generate(ENV,* ARGS,** KW)
文件C:\\下载\\ MesaLib-9.1.5 \\梅萨-9.1.5 \\ scons的\\ gallium.py,行313:
ccversion = ENV ['CCVERSION']
文件C:\\ Python27 \\ scons的-2.3.0 \\ SCons的\\ Environment.py,行412:
返回self._dict [关键]
通用 scons的
选项:
构建=释放
机= 86
平台=窗口
libGL函数-GDI
-
Linux操作系统(Debian的喘息),
工具链= crossmingw
失败在链接阶段,因为它无法找到__ vscprintf
,等等。 -
Windows中,
工具链=的MinGW
失败与命令行太长。尽管LongCmdLinesOnWin32
都snippits的多个排列。 -
窗,VS2012防爆preSS,
MSVC_VERSION = 11.0
则成功删除<后href=\"http://cgit.freedesktop.org/mesa/mesa/commit/src/glsl/ralloc.c?id=392f6cfced304e8693fc93279560ab5dcc033d02\">stray C99-主义从的src / GLSL / ralloc.c :: ralloc_size ()
。
修改:更完整的过程:
-
安装Visual Studio防爆preSS 2012年Windows桌面:
http://www.microsoft.com/visualstudio/eng/downloads#d-ex$p$pss-windows-desktop
-
安装MinGW的:
http://www.mingw.org/
http://sourceforge.net/projects/mingw/files/
http://sourceforge.net/projects/mingw/files/latest/download?source=files
MinGW的-GET-研究所,20120426.exe运行安装程序:
下载最新的回购目录
安装到C:\\ MinGW的(默认)
检查:
* C编译器
* C ++编译器
* MSYS基本系统
* MinGW的开发工具包(需要安装MSYS-flex和MSYS-野牛) -
安装Python 2.7版:
http://www.python.org/download/
http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi您必须使用32位的Python因为使用SCons人只分配32位安装程序。为所有用户安装(默认)
安装到C:\\ Python27(默认)
使用默认安装选项/自定义 -
安装
的libxml2
为Python:http://www.lfd.uci.edu/~gohlke/pythonlibs/
libxml2的 - 蟒蛇-2.9.1.win32-py2.7.exe安装程序会发现蟒蛇自动的安装 -
安装
pywin32
:http://pywin32.sourceforge.net/
http://sourceforge.net/projects/pywin32/files/pywin32/
http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/
http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win32-py2.7.exe安装程序应该找到了Python安装自动地 -
安装
使用SCons
:http://www.scons.org/
http://prdownloads.sourceforge.net/scons/scons-2.3.0-setup.exe安装程序应该找到了Python安装自动地 -
添加这些靠近你的
PATH
顶:C:\\ Python27 \\
C:\\ Python27 \\ Scripts中 -
下载梅萨:
ftp://ftp.freedesktop.org/pub/mesa/
ftp://ftp.freedesktop.org/pub/mesa/9.1.5/MesaLib-9.1.5.zip提取某处(C:\\梅萨-9.1.5) -
启动MSYS壳:
C:\\ MinGW的\\ MSYS \\ 1.0 \\ msys.bat变成台面src目录:
CD /c/Mesa-9.1.5/ -
打造梅萨:
scons.py \\
建立=释放\\
机= 86 \\
平台= WINDOWS \\
MSVC_VERSION = 11.0 \\
libGL函数-GDI \\
这应该创建一个 OPENGL32.DLL
在打造\\ WINDOWS-X86 \\镓\\目标\\ libGL函数-GDI
随着点点跑腿有可能建立 llvmpipe
。
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:
build=release
machine=x86
platform=windows
libgl-gdi
Linux (Debian Wheezy),
toolchain=crossmingw
: Fails during linking phase because it can't find__vscprintf
, among other things.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:
http://www.microsoft.com/visualstudio/eng/downloads#d-express-windows-desktop
Install MinGW:
http://www.mingw.org/ http://sourceforge.net/projects/mingw/files/ http://sourceforge.net/projects/mingw/files/latest/download?source=files mingw-get-inst-20120426.exe Run installer: Download latest repo catalogs Install to C:\MinGW (default) Check: * C compiler * C++ compiler * MSYS basic system * MinGW developer toolkit (should install msys-flex and msys-bison)
Install Python 2.7:
http://www.python.org/download/ http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi You have to use 32-bit Python because the Scons people only distribute 32-bit installers. Install for all users (default) Install to C:\Python27 (default) Use default install options/customizations
Install
libxml2
for Python:http://www.lfd.uci.edu/~gohlke/pythonlibs/ libxml2-python-2.9.1.win32-py2.7.exe Installer should find the python install automagically
Install
pywin32
:http://pywin32.sourceforge.net/ http://sourceforge.net/projects/pywin32/files/pywin32/ http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/ http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win32-py2.7.exe Installer should find the Python install automagically
Install
Scons
:http://www.scons.org/ http://prdownloads.sourceforge.net/scons/scons-2.3.0-setup.exe Installer should find the Python install automagically
Add these near the top of your
PATH
:C:\Python27\ C:\Python27\Scripts
Download Mesa:
ftp://ftp.freedesktop.org/pub/mesa/ ftp://ftp.freedesktop.org/pub/mesa/9.1.5/MesaLib-9.1.5.zip Extract somewhere (C:\Mesa-9.1.5)
Start MSYS shell:
C:\mingw\msys\1.0\msys.bat Change into mesa src directory: cd /c/Mesa-9.1.5/
Build Mesa:
scons.py \ build=release \ machine=x86 \ platform=windows \ MSVC_VERSION=11.0 \ libgl-gdi \
This should create an opengl32.dll
in build\windows-x86\gallium\targets\libgl-gdi
.
With a little bit more legwork it's possible to build llvmpipe
.
这篇关于梅萨建设为Windows 7梅萨9.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!