Main branch for Metropolis Light Transport image renderer.

root

This file is under construction. For now, see https://www.falsifian.org/NdHP/

Build instructions
------------------

First, you'll need to make sure the sexprj project (https://hub.darcs.net/falsifian/sexprj) is available. (Sorry, it's not on hackage, at least as of 2020-08-12.) One way to do this is to create a file ./cabal.project.local with content like "packages: . ../../sexprj". Another is to create a local Cabal repository.

To install:
    cabal v2-install .

On OpenBSD, the OpenGLRaw library (at least, at version 3.3.4.0) fails to build:
    * Missing (or bad) C library: GL
Work-around: set the C_INCLUDE_PATH and LIBRARY_PATH environment variables, like so:
    C_INCLUDE_PATH=/usr/X11R6/include LIBRARY_PATH=/usr/X11R6/lib cabal v2-install .
Alternative work-around: create a file ./cabal.project.local with the following content (not including { and }). Then "cabal new-install ." should work.
{
package OpenGLRaw
  extra-include-dirs: /usr/X11R6/include
  extra-lib-dirs: /usr/X11R6/lib
}
Probably the best fix would be to update the OpenGLRaw library's cabal configuration to look under /usr/X11R6.
See also: https://github.com/haskell/cabal/issues/2997