I’ve just updated my quite old build and had some issues since I always got the message: Build failed. So I investigated the code downloaded today and compared it with my older code (downloaded on April, 6).
I’m sorry if the wording is completely wrong and my approach is awful, but at least I found a solution for me that works and I thought it could also interest someone else (and I’m interested if someone else has a similar issue):
- Mac OS X Yosemite (10.10.3)
- XCode 6.3.2 (6D2105)
- cmake: 3.2.2; pkgconfig: 0.28; pcre: 8.37; libpng: 1.6.17
I just followed the instructions here: https://github.com/KhronosGroup/glTF/wiki/converter
The problem was in COLLADA2GLTF > Sources > collada2gltfConvert > Source Files > GLTFAsset.cpp on line 217; 358; 398 and 420 with an error: “Use of undeclared identifier ‘getPathDir’”
I then replace the code lines as follows:
inputURI.setPathDir(getPathDir(aURI) + getPathDir(inputURI));
inputURI.setPathDir(aURI.getPathDir() + inputURI.getPathDir());
std::string folder = getPathDir(outputURI);
std::string folder = outputURI.getPathDir();
When I built it again it compiled without an error and the converter converts my files perfectly.