在windows7上编译Mesa 10.3.1

2024-04-16 16:05:03 发布

您现在位置:Python中文网/ 问答频道 /正文

在MinGW下使用SCons和GCC在windows7上编译mesa10.3.1时遇到一些问题。我使用Python2.7.8和pywin32扩展Build219。我已经按照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.

谁能帮帮我吗?在

我用默认值烤饼.py文件。在


Tags: noinfromsrcforincludefunctionscons