# Long path using ninja

**URL:** <https://discourse.slicer.org/t/long-path-using-ninja/1702>\
**Category:** Development\
**Created:** [December 21, 2017, 3:08pm UTC](https://discourse.slicer.org/t/long-path-using-ninja/1702 "2017-12-21T15:08:40Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dzenanz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dzenanz/32/1992_2.png) [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Post date:** [December 21, 2017, 4:03pm UTC](https://discourse.slicer.org/t/long-path-using-ninja/1702/5 "2017-12-21T16:03:09Z")

</div>

After re-running ninja, I get the same error:

```auto
-- Configuring done
CMake Warning in Modules/Loadable/VolumeRendering/SubjectHierarchyPlugins/CMakeLists.txt:
  The object file directory

    C:/Dev/Sn/Slicer-build/Modules/Loadable/VolumeRendering/SubjectHierarchyPlugins/CMakeFiles/qSlicerVolumeRenderingSubjectHierarchyPluginsPythonQt.dir/

  has 149 characters. The maximum full path to an object file is 250
  characters (see CMAKE_OBJECT_PATH_MAX). Object file

    generated_cpp/osm_qSlicerVolumeRenderingSubjectHierarchyPlugins/osm_qSlicerVolumeRenderingSubjectHierarchyPlugins_module_init.cpp.obj

  cannot be safely placed under this directory. The build may not work
  correctly.

-- Generating done
-- Build files have been written to: C:/Dev/Sn/Slicer-build
[214/217] Performing build step for 'Slicer'
FAILED: Slicer-prefix/src/Slicer-stamp/Slicer-build
cmd.exe /C "cd /D C:\Dev\Sn\Slicer-build && "C:\Program Files\CMake\bin\cmake.exe" --build . && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/Dev/Sn/Slicer-prefix/src/Slicer-stamp/Slicer-build"
ninja: build stopped: subcommand failed.

C:\Dev\Sn>

```

---

_[View the full topic](https://discourse.slicer.org/t/long-path-using-ninja/1702)._
