blob: 0f5010ce121c9f1a4e71a496f846b7123175fd00 [file] [log] [blame]
José Fonseca60159c12008-02-28 16:34:32 +09001File: docs/README.WIN32
2
Bill York191795e2013-06-19 10:18:00 -06003Last updated: 21 June 2013
Brian Paulaf4e2f42011-01-20 18:52:39 -07004
José Fonseca60159c12008-02-28 16:34:32 +09005
6Quick Start
7----- -----
8
José Fonsecac2c44f22011-04-23 13:18:45 +01009Windows drivers are build with SCons. Makefiles or Visual Studio projects are
10no longer shipped or supported.
José Fonseca60159c12008-02-28 16:34:32 +090011
José Fonsecac2c44f22011-04-23 13:18:45 +010012Run
José Fonseca60159c12008-02-28 16:34:32 +090013
José Fonsecac2c44f22011-04-23 13:18:45 +010014 scons libgl-gdi
José Fonseca60159c12008-02-28 16:34:32 +090015
José Fonsecac2c44f22011-04-23 13:18:45 +010016to build gallium based GDI driver.
José Fonseca60159c12008-02-28 16:34:32 +090017
José Fonseca3ab19bf2011-08-29 13:35:49 +010018This will work both with MSVS or Mingw.
19
José Fonseca60159c12008-02-28 16:34:32 +090020
21Windows Drivers
22------- -------
23
José Fonsecac2c44f22011-04-23 13:18:45 +010024At this time, only the gallium GDI driver is known to work.
José Fonseca60159c12008-02-28 16:34:32 +090025
26Source code also exists in the tree for other drivers in
27src/mesa/drivers/windows, but the status of this code is unknown.
28
Bill York191795e2013-06-19 10:18:00 -060029Recipe
30------
31
32Building on windows requires several open-source packages. These are
33steps that work as of this writing.
34
José Fonseca2de70fe2014-03-24 15:41:08 +000035- install python 2.7
36- install scons (latest)
37- install mingw, flex, and bison
38- install pywin32 from here: http://www.lfd.uci.edu/~gohlke/pythonlibs
Bill York191795e2013-06-19 10:18:00 -060039 get pywin32-218.4.win-amd64-py2.7.exe
José Fonseca2de70fe2014-03-24 15:41:08 +000040- install git
41- download mesa from git
Eric Engestrom30cf9ff2017-02-09 02:10:17 +000042 see https://www.mesa3d.org/repository.html
José Fonseca2de70fe2014-03-24 15:41:08 +000043- run scons
José Fonseca60159c12008-02-28 16:34:32 +090044
45General
46-------
47
48After building, you can copy the above DLL files to a place in your
49PATH such as $SystemRoot/SYSTEM32. If you don't like putting things
50in a system directory, place them in the same directory as the
51executable(s). Be careful about accidentially overwriting files of
52the same name in the SYSTEM32 directory.
53
54The DLL files are built so that the external entry points use the
55stdcall calling convention.
56
57Static LIB files are not built. The LIB files that are built with are
58the linker import files associated with the DLL files.
59
60The si-glu sources are used to build the GLU libs. This was done
61mainly to get the better tessellator code.
62
Brian Paulaf4e2f42011-01-20 18:52:39 -070063If you have a Windows-related build problem or question, please post
64to the mesa-dev or mesa-users list.