编译Mesa3D windows 64bit

时间:2015-03-01 18:32:41

标签: windows scons mesa


我是opengl和mesa3D库的新手我在Windows 8.1 64位机器上编译mesa3d库时遇到了一些问题。
我试着关注这篇文章Building Mesa for windows 7. Mesa 9.1但是当我尝试使用scons通过此命令构建库时我没有成功

scons platform=windows toolchain=mingw machine=x86_64 mesagdi libgl-gdi

我收到以下错误

Checking for X11 (x11 xext xdamage xfixes)... no
Checking for XCB (x11-xcb xcb-glx >= 1.8.1)... no
Checking for XF86VIDMODE (xxf86vm)... no
Checking for DRM (libdrm >= 2.4.24)... no
Checking for DRM_INTEL (libdrm_intel >= 2.4.30)... no
Checking for XORG (xorg-server >= 1.6.0)... no
Checking for KMS (libkms >= 2.4.24)... no
Checking for UDEV (libudev > 150)... no
fatal: Not a git repository (or any of the parent directories): .git
WindowsError: [Error 3] The system cannot find the path specified:
  File "C:\Users\Admin\Downloads\Compressed\Mesa\SConstruct", line 151:
    duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
  File "C:\Python27\scons-2.3.4\SCons\Script\SConscript.py", line 614:
    return method(*args, **kw)
  File "C:\Python27\scons-2.3.4\SCons\Script\SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Python27\scons-2.3.4\SCons\Script\SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "C:\Users\Admin\Downloads\Compressed\Mesa\src\SConscript", line 27:
    SConscript('mesa/SConscript')
  File "C:\Python27\scons-2.3.4\SCons\Script\SConscript.py", line 614:
    return method(*args, **kw)
  File "C:\Python27\scons-2.3.4\SCons\Script\SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Python27\scons-2.3.4\SCons\Script\SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "C:\Users\Admin\Downloads\Compressed\Mesa\src\mesa\SConscript", line 453:
    write_git_sha1_h_file("main/git_sha1.h")
  File "C:\Users\Admin\Downloads\Compressed\Mesa\src\mesa\SConscript", line 448:
    os.rename(tempfile, filename)

即使给定路径中有SConstruct文件

1 个答案:

答案 0 :(得分:0)

您似乎正在尝试使用工具链交叉编译器构建它,您的计算机是Windows。是否真的有必要以这种方式构建它。 我想你需要和minGW一起去: 核实 : http://www.mingw.org/wiki/HOWTO_Create_an_MSYS_Build_Environment 如何 : http://www.mingw.org/wiki/Getting_Started 然后

cd C:\Mesalib<version>

然后做:

scons