Skip to content

Instantly share code, notes, and snippets.

@mocon
Last active September 27, 2017 01:11
Show Gist options
  • Save mocon/8b4daa74167ed33df7b10f98b39e7ab0 to your computer and use it in GitHub Desktop.
Save mocon/8b4daa74167ed33df7b10f98b39e7ab0 to your computer and use it in GitHub Desktop.
How to install Khronos Group's COLLADA to glTF converter on macOS

Overview

How to install Khronos Group's COLLADA to glTF CLI converter on macOS:

1. Clone repo

From your Repos directory, or wherever you keep your local repos:

git clone --recursive https://github.com/KhronosGroup/COLLADA2GLTF.git
cd COLLADA2GLTF/
git checkout 2.0
git pull
git submodule update --init --recursive

2. Install dependencies

Using Homebrew:

brew install cmake pkgconfig pcre libpng

3. Install gcc compiler

This took me 50 minutes to install:

brew install -v gcc --HEAD

4. Create the build directory, cd into it, and build the project

mkdir build
cd build
export CC=/usr/local/bin/gcc-8
export CXX=/usr/local/bin/g++-8
cmake ..
make

5. Pass a .dae file to the CLI

From within the build directory:

./COLLADA2GLTF-bin -i /Users/myles/Desktop/model/button.dae

Note that the .dae file in this example is located at /Users/myles/Desktop/model/button.dae.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment