summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-03-30 12:12:37 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-03-30 14:11:03 +0100
commit29933fc6fec88e0c20e6ba4feebce10934eb48a3 (patch)
tree1fb2d500f02e238a83b270440b79f945714587e8 /src/gallium/state_trackers
parenta20bae3d17a812a5144553963174191288457cf7 (diff)
python: Update instructions for windows.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/python/README20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/python/README b/src/gallium/state_trackers/python/README
index 4281d9bdb0..e03d546830 100644
--- a/src/gallium/state_trackers/python/README
+++ b/src/gallium/state_trackers/python/README
@@ -6,20 +6,27 @@ the python script perspective.
To build you'll need:
* Python (with development packages)
* SCons
-* SWIG
-* Python Imaging Library with TK support (for the samples)
+* SWIG, http://www.swig.org/download.html
+* Python Imaging Library with TK support, http://www.pythonware.com/products/pil/,
+ for the samples
On a debian-based distro you can simply do:
aptitude install python-dev scons swig python-imaging python-imaging-tk
+On a Windows machine ensure the swig command is in your PATH.
+
Invoke scons on the top dir as
- scons debug=yes statetrackers=python driver=softpipe,trace
+ scons debug=yes statetrackers=python drivers=softpipe,trace winsys=none
+
+To use it set PYTHONPATH appropriately, e.g, in Linux do:
+
+ export PYTHONPATH=$PWD/build/linux-x86-debug/gallium/state_trackers/python
-To use do
+or (in Windows)
- export PYTHONPATH=$PWD/build/XXXX-XXXX-XXXX/gallium/state_trackers/python
+ set PYTHONPATH=%CD%\build\windows-x86-debug\gallium\state_trackers\python
and then try running
@@ -31,7 +38,6 @@ which should show a triangle.
This is still work in progress:
- errors are not handled properly and almost always result in crash
- state atoms with array members are awkward to set
-- there no efficient way to view images
--
-Jose Fonseca <jrfonseca@tungstengraphics.com>
+Jose Fonseca <jfonseca@vmware.com>