From 0ed69c96bf274cd9bf07e0647ca6199aba781ffa Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Thu, 30 Oct 2014 14:19:36 +0100 Subject: [PATCH] enhanced README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 0e81a7c..35d4747 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,20 @@ # htrace - a raytracer in Haskell This is a little raytracer that i write/wrote for the lecture computergraphics in the winter 14/15. + +## Compiling + +```bash +# clone the repository +git clone https://github.com/Drezil/htrace +# init a cabal sandbox for the dependencies +cabal sandbox init +# download & build dependencies +cabal install --only-dependencies +# build the program +cabal build +# run +./raytrace.sh scenes/spheres/spheres.sce +``` + +If the building fails with some llvm-related errer you don't seem to have LLVM installed. Either install llvm (libghc-llvm-base-dev for ubuntu) or remove the ```-fllvm```-flag from the ghc-options in the raytrace.cabal.