aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJensOwen <jens@jelo.com>2014-11-01 13:11:50 -0600
committerJensOwen <jens@jelo.com>2014-11-01 13:11:50 -0600
commit9992a06e827d733fd72fd59fddaa4f0c2bfe6e33 (patch)
treed67c937a11d2cd8f0811208f74b18f7a8746154c
parentf778eabe7a4319e5bc9e552efba203c01dd0cf6f (diff)
downloadusermoji-9992a06e827d733fd72fd59fddaa4f0c2bfe6e33.tar.xz
fix formatting
-rw-r--r--BUILD.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/BUILD.md b/BUILD.md
index 0536ef95..e8881471 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -6,8 +6,10 @@ Support for Android is TBD.
##System Requirements
Ubuntu 14.04 LTS, (Ubuntu 14.10 needed for DRI 3 demos)
+```
sudo apt-get install git subversion cmake libgl1-mesa-dev freeglut3-dev libglm-dev libpng12-dev
sudo apt-get build-dep mesa
+```
##Build
@@ -15,16 +17,20 @@ The sample driver uses cmake and should work with the usual cmake options and ut
The standard build process builds the icd, the icd loader and all the tests.
Example debug build:
+```
cd xgl # cd to the root of the xgl git repository
export KHRONOS_ACCOUNT_NAME= <subversion login name for svn checkout of BIL>
./update_external_sources.sh # fetches and builds glslang, llvm, LunarGLASS, and BIL
cmake -H. -Bdbuild -DCMAKE_BUILD_TYPE=Debug
cd dbuild
make
+```
To run XGL programs you must tell the icd loader where to find the libraries. Set the
environment variable LIBXGL_DRIVERS_PATH to the driver path. For example:
+```
export LIBXGL_DRIVERS_PATH=$PWD/icd/intel
+```
##Test
@@ -52,13 +58,14 @@ and make accessible device files.
The system will need to be rebooted with these files in place to complete initialization.
These commands will create the config files.
+```
sudo tee /etc/modprobe.d/drm.conf << EOF
-'# Enable render nodes
+# Enable render nodes
options drm rnodes=1
EOF
sudo tee /etc/udev/rules.d/drm.rules << EOF
-'# Add permissions to render nodes
+# Add permissions to render nodes
SUBSYSTEM=="drm", ACTION=="add", DEVPATH=="/devices/*/renderD*", MODE="020666"
EOF
-
+```