2

我在使用 MinGW 下的 SCons 和 GCC 在 Windows 7 上编译 Mesa 10.3.1 时遇到了一些问题。我正在使用带有 pywin32 扩展构建 219 的 Python 2.7.8。我已按照 Mesa 官方网站http://www.mesa3d.org/install.html的说明进行操作,但仍然出现此错误:

C:\Users\Administrator\Mesa\Mesa-10.2.8>scons.py platform=windows build=debug li
bgl-gdi llvm=yes
scons: Reading SConscript files ...
Checking for MSVC ...  no
Checking for GCC ...  yes
Checking for Clang ...  no
Mkdir("build\windows-x86-debug")
scons: LLVM environment variable must be specified when building for windows
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.38)... no
Checking for DRM_INTEL (libdrm_intel >= 2.4.52)... no
Checking for UDEV (libudev >= 151)... no
scons: done reading SConscript files.
scons: Building targets ...
  Compiling src\gallium\targets\libgl-gdi\libgl_gdi.c ...
In file included from include/c11/threads.h:70:0,
                 from src\gallium\auxiliary/os/os_thread.h:43,
                 from src\gallium\drivers/llvmpipe/lp_screen.h:39,
                 from src\gallium\targets\libgl-gdi\libgl_gdi.c:49:
include/c11/threads_win32.h: In function 'thrd_equal':
include/c11/threads_win32.h:546:5: warning: implicit declaration of function 'Ge
tThreadId' [-Wimplicit-function-declaration]
     return GetThreadId(thr0) == GetThreadId(thr1);
     ^
In file included from src\gallium\drivers/llvmpipe/lp_screen.h:40:0,
                 from src\gallium\targets\libgl-gdi\libgl_gdi.c:49:
src\gallium\auxiliary/gallivm/lp_bld.h: At top level:
src\gallium\auxiliary/gallivm/lp_bld.h:49:27: fatal error: llvm-c/Core.h: No suc
h file or directory
 #include <llvm-c/Core.h>
                           ^
compilation terminated.
  Compiling src\gallium\state_trackers\wgl\stw_context.c ...
scons: *** [build\windows-x86-debug\gallium\targets\libgl-gdi\libgl_gdi.o] Error
 1
In file included from include/c11/threads.h:70:0,
                 from src\gallium\auxiliary/os/os_thread.h:43,
                 from src\gallium\state_trackers\wgl\stw_device.h:33,
                 from src\gallium\state_trackers\wgl\stw_context.c:44:
include/c11/threads_win32.h: In function 'thrd_equal':
include/c11/threads_win32.h:546:5: warning: implicit declaration of function 'Ge
tThreadId' [-Wimplicit-function-declaration]
     return GetThreadId(thr0) == GetThreadId(thr1);
     ^
scons: building terminated because of errors.

有人可以帮我吗?

我正在使用默认的 scons.py 文件。

4

0 回答 0