From 2026e03fab2a4dbc4e88590ac27e5560c8aecbb3 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Mon, 27 Nov 2017 01:01:06 +0900 Subject: [PATCH] Add how to compile doc. --- examples/validator/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/examples/validator/README.md b/examples/validator/README.md index f6d37fa..9d3e72a 100644 --- a/examples/validator/README.md +++ b/examples/validator/README.md @@ -9,6 +9,32 @@ Experimental. W.I.P. ## Requirements * C++11 compiler +* CMake 3.2 or later + +## How to build + +``` +$ mkdir build +$ cd build +$ cmake .. +$ make +``` + +## How to run + +First clone glTF repo somewhere to get glTF schema JSON files. + +``` +$ cd ~/work # Choose your favorite dir. +$ git clone https://github.com/KhronosGroup/glTF +$ export GLTF_DIR=~/work/glTF +``` + +Then, specify the directory of glTF 2.0 schema JSONs and a glTF file. + +``` +$ ./tinygltf-validator $GLTF_DIR/specification/2.0/schema/ ../../models/Cube/Cube.gltf +``` ## Third party licenses