OpenCV 3.1.0 build fails on Windows with Ninja Generator #6372
Labels
bug
category: build/install
category: gpu/cuda (contrib)
OpenCV 4.0+: moved to opencv_contrib
priority: low
This is a template helping you to create an issue which can be processes as quickly as possible. Feel free to add additional information or remove not relevant points if you do not need them.
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
Please state the information for your system
In which part of the OpenCV library you got the issue?
Expected behaviour
Build succeeds
Actual behaviour
LINK : fatal error LNK1104: cannot open file 'Files\NVIDIA.obj'
Additional description
This line breaks the build with Ninja under Windows. I think the line should be:
But even with this change the build fails because of the spaces in the path which Ninja does not like. Maybe
$<SHELL_PATH:...>
should return a short path but that's a CMake issue.As a workaround one can use:
This problem also affects consuming projects as the link flags end up in the
OpenCVModules*.cmake
files.I find Ninja much faster than msbuild on Windows especially when building with CUDA so it would be nice if OpenCV supported this generator too.
The text was updated successfully, but these errors were encountered: