梅萨建设为Windows 7梅萨9.1 [英] Building Mesa for windows 7. Mesa 9.1

查看:292
本文介绍了梅萨建设为Windows 7梅萨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


  1. Linux操作系统(Debian的喘息),工具链= crossmingw 失败在链接阶段,因为它无法找到 __ vscprintf ,等等。


  2. Windows中,工具链=的MinGW 失败与命令行太长。尽管 LongCmdLinesOnWin32 都snippits的多个排列。


  3. 窗,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 ()



修改:更完整的过程:


  1. 安装Visual Studio防爆preSS 2012年Windows桌面:

      http://www.microsoft.com/visualstudio/eng/downloads#d-ex$p$pss-windows-desktop


  2. 安装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-野牛)


  3. 安装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(默认)
    使用默认安装选项/自定义


  4. 安装的libxml2 为Python:

      http://www.lfd.uci.edu/~gohlke/pythonlibs/
    libxml2的 - 蟒蛇-2.9.1.win32-py2.7.exe安装程序会发现蟒蛇自动的安装


  5. 安装 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安装自动地


  6. 安装使用SCons

      http://www.scons.org/
    http://prdownloads.sourceforge.net/scons/scons-2.3.0-setup.exe安装程序应该找到了Python安装自动地


  7. 添加这些靠近你的 PATH 顶:

      C:\\ Python27 \\
    C:\\ Python27 \\ Scripts中


  8. 下载梅萨:

      ftp://ftp.freedesktop.org/pub/mesa/
    ftp://ftp.freedesktop.org/pub/mesa/9.1.5/MesaLib-9.1.5.zip提取某处(C:\\梅萨-9.1.5)


  9. 启动MSYS壳:

      C:\\ MinGW的\\ MSYS \\ 1.0 \\ msys.bat变成台面src目录:
    CD /c/Mesa-9.1.5/


  10. 打造梅萨:

      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

  1. Linux (Debian Wheezy), toolchain=crossmingw: Fails during linking phase because it can't find __vscprintf, among other things.

  2. Windows, toolchain=mingw: Fails with "The command line is too long." despite multiple permutations of both snippits on LongCmdLinesOnWin32.

  3. Windows, VS2012 Express, MSVC_VERSION=11.0: Succeeds after removing stray C99-isms from src/glsl/ralloc.c::ralloc_size().


EDIT: More complete procedure:

  1. Install Visual Studio Express 2012 for Windows Desktop:

    http://www.microsoft.com/visualstudio/eng/downloads#d-express-windows-desktop
    

  2. 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)
    

  3. 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
    

  4. 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
    

  5. 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
    

  6. Install Scons:

    http://www.scons.org/
    http://prdownloads.sourceforge.net/scons/scons-2.3.0-setup.exe
    
    Installer should find the Python install automagically
    

  7. Add these near the top of your PATH:

    C:\Python27\
    C:\Python27\Scripts
    

  8. 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)
    

  9. Start MSYS shell:

    C:\mingw\msys\1.0\msys.bat
    
    Change into mesa src directory:
    cd /c/Mesa-9.1.5/
    

  10. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆