How to install Khronos Group's COLLADA to glTF CLI converter on macOS:
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
Using Homebrew:
brew install cmake pkgconfig pcre libpng
This took me 50 minutes to install:
brew install -v gcc --HEAD
mkdir build
cd build
export CC=/usr/local/bin/gcc-8
export CXX=/usr/local/bin/g++-8
cmake ..
make
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
.