llvmpipe: Update instructions.
Explain how to build for windows. Both MSVC 9 and cross MinGW supported. Stop documenting LLVM 2.5 as supported. It still supported at the moment but it will soon stop being.
This commit is contained in:
parent
d4c1ee0534
commit
12576556e4
|
@ -59,26 +59,15 @@ Requirements
|
|||
|
||||
See /proc/cpuinfo to know what your CPU supports.
|
||||
|
||||
- LLVM 2.5 or greater. LLVM 2.6 is preferred.
|
||||
- LLVM 2.6.
|
||||
|
||||
On Debian based distributions do:
|
||||
For Linux, on a recent Debian based distribution do:
|
||||
|
||||
aptitude install llvm-dev
|
||||
|
||||
There is a typo in one of the llvm 2.5 headers, that may cause compilation
|
||||
errors. To fix it apply the change:
|
||||
|
||||
--- /usr/include/llvm-c/Core.h.orig 2009-08-10 15:38:54.000000000 +0100
|
||||
+++ /usr/include/llvm-c/Core.h 2009-08-10 15:38:25.000000000 +0100
|
||||
@@ -831,7 +831,7 @@
|
||||
template<typename T>
|
||||
inline T **unwrap(LLVMValueRef *Vals, unsigned Length) {
|
||||
#if DEBUG
|
||||
- for (LLVMValueRef *I = Vals, E = Vals + Length; I != E; ++I)
|
||||
+ for (LLVMValueRef *I = Vals, *E = Vals + Length; I != E; ++I)
|
||||
cast<T>(*I);
|
||||
#endif
|
||||
return reinterpret_cast<T**>(Vals);
|
||||
For Windows download pre-built MSVC 9.0 or MinGW binaries from
|
||||
http://people.freedesktop.org/~jrfonseca/llvm/ and set the LLVM environment
|
||||
variable to the extracted path.
|
||||
|
||||
- scons (optional)
|
||||
|
||||
|
@ -95,9 +84,9 @@ Requirements
|
|||
Building
|
||||
========
|
||||
|
||||
To build everything invoke scons as:
|
||||
To build everything on Linux invoke scons as:
|
||||
|
||||
scons debug=yes statetrackers=mesa drivers=llvmpipe winsys=xlib dri=false -k
|
||||
scons debug=yes statetrackers=mesa drivers=trace,llvmpipe winsys=xlib dri=false
|
||||
|
||||
Alternatively, you can build it with GNU make, if you prefer, by invoking it as
|
||||
|
||||
|
@ -105,12 +94,15 @@ Alternatively, you can build it with GNU make, if you prefer, by invoking it as
|
|||
|
||||
but the rest of these instructions assume that scons is used.
|
||||
|
||||
For windows is everything the except except the winsys:
|
||||
|
||||
scons debug=yes statetrackers=mesa drivers=trace,llvmpipe winsys=gdi dri=false
|
||||
|
||||
Using
|
||||
=====
|
||||
|
||||
Building will create a drop-in alternative for libGL.so. To use it set the
|
||||
environment variables:
|
||||
On Linux, building will create a drop-in alternative for libGL.so. To use it
|
||||
set the environment variables:
|
||||
|
||||
export LD_LIBRARY_PATH=$PWD/build/linux-x86_64-debug/lib:$LD_LIBRARY_PATH
|
||||
|
||||
|
@ -121,6 +113,11 @@ or
|
|||
For performance evaluation pass debug=no to scons, and use the corresponding
|
||||
lib directory without the "-debug" suffix.
|
||||
|
||||
On Windows, building will create a drop-in alternative for opengl32.dll. To use
|
||||
it put it in the same directory as the application. It can also be used by
|
||||
replacing the native ICD driver, but it's quite an advanced usage, so if you
|
||||
need to ask, don't even try it.
|
||||
|
||||
|
||||
Unit testing
|
||||
============
|
||||
|
|
Loading…
Reference in New Issue