Ninja build fails, Unix Makefile build works


Gonzalo Garramuño
 


El 19/7/19 a las 11:13, Patrick Hodoul escribió:
Hi Gonzalo,

For the Windows platform jom (https://wiki.qt.io/Jom) is perfectly working. I faced the same problem without having enough time to dig in.

Patrick

Patrick, thanks for the tip about jom (didn't know it existed).  However, my problem was compiling on linux.
-- 
Gonzalo Garramuño


Patrick Hodoul
 

Hi Gonzalo,

For the Windows platform jom (https://wiki.qt.io/Jom) is perfectly working. I faced the same problem without having enough time to dig in.

Patrick


Gonzalo Garramuño
 

I have tried to compile OpenColorIO with the Ninja generator and it fails with:

FAILED: ext/Yaml-cpp-prefix/src/Yaml-cpp-stamp/Yaml-cpp-build ext/dist/lib/libyaml-cpp.a
cd /media/gga/Datos/code/applications/mrv/dependencies/imageworks-OpenColorIO-67cb724/build-fails/ext/build/yaml-cpp && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /media/gga/Datos/code/applications/mrv/dependencies/imageworks-OpenColorIO-67cb724/build-fails/ext/Yaml-cpp-prefix/src/Yaml-cpp-stamp/Yaml-cpp-build
ninja: error: build.ninja:296: bad $-escape (literal $ must be written as $$)

The line that fails in build.ninja says:

COMMAND = cd /media/gga/Datos/code/applications/mrv/dependencies/imageworks-OpenColorIO-67cb724/build-fails/ext/build/yaml-cpp && $(MAKE) clean && /usr/bin/cmake -DCMAKE_BUILD_TYPE=Release /media/gga/Datos/code/applications/mrv/dependencies/imageworks-OpenColorIO-67cb724/build-fails/ext/Yaml-cpp-prefix/src/Yaml-cpp

The Unix Makefile generator, however, works just fine.  It seems $(MAKE) clean is the culprit here.