Closed roquo closed 1 year ago
Filed as internal issue #OSD-388
Have you tried using the dev branch or v3_5_0_RC1? We've recently merged some fixes which suppress some of these warnings and we've verified those fixes with the Visual Studio generator (and GCC and Xcode) but not Ninja.
We've noticed that the Ninja build appears to be using a different set of compiler flags than the Visual Studio generator. This isn't entirely surprising, but it is something that we haven't really looked into yet and would need to be addressed. That could be a good pull request contribution!
That said, I took a quick look and I was able to get the dev branch to build with ninja using the configuration you describe after disabling the following additional MSVC warnings: /wd4710 /wd4711 /wd4738 /wd5045
I also get ninja failures on 3.5.0:
ninja: Entering directory `build'
ninja: warning: phony target 'documentation/search.html' names itself as an input; ignoring [-w phonycycle=warn]
ninja: error: build.ninja:5613: multiple rules generate documentation/search.html
We've collected ninja related issues here since this issue is paired with a PR which addresses some aspects of the problem.
While this didn't make the cut for v3.5.1 we've been starting work to true-up the compiler warning settings across different build configurations and we'll try to address these ninja related discrepancies as part of that work.
Thanks @LazyDodo! That's why we've linked all of these issues together so that we don't loose track of your notes over there.
Fixed by #1318 and #1323
Hello,
I tried to build OpenSubdiv with Ninja. Unfortunately, I get a lot of warnings that are treated as errors and the build fails.
My setup:
The commands I run:
Output after running CMake:
Output after running
ninja install
: openSubdiv_errorLog.txt