New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error compiling with Ninja #45
Comments
It looks like this is due to Ninja being used as the build system; not sure if this is related #41 or not, but at least it's a workaround for now. Is it possible to get a feature to disable Ninja support so I can re-add it to my path? |
I'm also getting the same error on MacOS 10.14.... have you had any success getting this to build yet? |
Yes, I removed ninja from my path and it worked. |
I can confirm that I get the same error on Linux, removing ninja also worked here. |
I am getting the same error on Linux, but only when not compiling in a git repository. The same exact code compiles fine while inside of a git repository. Edit: Nvm, see below |
@ntgraff Oooh Thats it, I just hit this and didn't understand why i wasn't getting it in other crates. Edit: Wait no, thats incorrect sorry. :( However I ran
After doing so I got this issue on that project. |
The problem is with cmake_rs I will file an issue upstream. |
Thanks for the investigation and solution! :) And sorry about the Ninja hassle. I'll add a cargo feature to disable using Ninja. |
I'm... still getting this. How am I to go without ninja, if I need to compile for msvc and msvc requires it? |
Hey @DefecateRainbows, sorry to hear about that. Are you using the newest version and still seeing this issue? Right now the build options for shaderc-sys is already quite complicated. I'm reluctant to make it even more so by throwing in another option / feature to work around MSBuild bugs. IMHO, using ninja is just ... better. Even Visual Studio itself now ships with Ninja (in c/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/). So is there a compelling reason preventing you from using it or downloading ninja if you don't have VS installed? Please let me know. :) |
I had same issue but a workaround I found after reading and trying around was: Ninja is needed for windows platform but optional elsewhere, so what I did was get Ninja binary and make a folder on root and add it there. Then make a build.rs and add that folder to path. This worked like a charm for me! Hope it helps for people who are stuck! |
I'm running this with vulkano_shaders, and running into an issue with the CMake command:
Obviously "--" is getting appended to the build directory, but I have no idea how to fix this - any suggestions?
=========
EDIT: Removing Ninja from your path should fix this error; it would be nice if there were a feature to disable Ninja so I could continue to use it for other projects without having it be automatically detected and used in this one.
The text was updated successfully, but these errors were encountered: