Linux & Mac OS#
Warning
It is recommended to use the new automatic setup instead of the following one! The following may get outdated.
A quick and dirty tutorial to show how to setup AnyDSL and Ignis on a typical Linux OS or an Apple machine.
The following will need cmake
and a working C++ development environment.
Clone AnyDSL from AnyDSL/anydsl
Copy the
config.sh.template
toconfig.sh
.Change
: ${BUILD_TYPE:=Debug}
to: ${BUILD_TYPE:=Release}
insideconfig.sh
Optional: Use
ninja
instead ofmake
as it is superior in all regards.Run
./setup.sh
inside a terminal at the root directory and get a coffee.
Clone Ignis from PearCoding/Ignis
Make sure all the dependencies listed in README.md are installed.
Run
mkdir build && cd build && cmake -DAnyDSL_runtime_DIR="ANYDSL_ROOT/runtime/build/share/anydsl/cmake" ..
, withANYDSL_ROOT
being the path to the root of the AnyDSL framework.Run
cmake --build .
inside thebuild/
directory and get your second coffee.
Run
./bin/igview ../scenes/diamond_scene.json
inside thebuild/
directory to see if your setup works. You should be able to see three diamonds lit by an area light.
Note
MacOS CPU vectorization and GPU support is still very experimental and limited.