| Summary: | "fatal error RC1203: invalid language ID or language name specified." when building with CMake on Win10 with VS2015 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Daniel <dschreij> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | dschreij |
| Version: | 2.0.5 | Keywords: | target-2.0.6 |
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
|
Description
Daniel
2016-11-18 18:53:53 UTC
Ryan, is this CMake specific? (In reply to Sam Lantinga from comment #1) > Ryan, is this CMake specific? So the reason this didn't happen in 2.0.4 is because our CMake project didn't include the version.rc files in 2.0.4. That started with this commit: https://hg.libsdl.org/SDL/rev/b24c67bbb02f This doesn't cause a problem with CMake on Windows 10 and Visual Studio 2015, if you generate Visual Studio project files, because the VS generator just adds an XML entry for the rc file and that's all. The NMake generator fails because it thinks "/GS-" is a preprocessor define and passes it to rc.exe (this is a cl.exe option, but is bogus for rc.exe). This is our bug, and we accidentally fixed it in https://hg.libsdl.org/SDL/rev/c92070a96da5 a few days ago by correcting the add_definition("/GS-") line. Fwiw, you can use CMake to generate Visual Studio projects and build with them, all from the command line, as an option, too. My suspicion is that NMake will always be a slightly quirkier build option, and we didn't catch this because the Visual Studio project generator worked okay. To do this, launch a Visual Studio command line window to a place where the SDL source is in an "SDL" directory, and: mkdir SDL-build cd SDL-build cmake -G "Visual Studio 14 2015" ../SDL devenv SDL2.sln /Build release (That being said, NMake works now, too, so do whatever you think is best!) Resolving bug! --ryan. |