Vulkan build problem (error log included) #1325
Comments
The error messages that you're sending do not provide any details on the problem. Both VS2013 and VS2015 are known to work. Can you send post a screenshot or a gist of the Output window? |
Recompile error. |
I'm certain you can tell from the errors but as a Russian speaking Cinder user I can verify those are all "missing explicit cast" errors. Just in case. :)
|
It seems like you may have enabled warnings as errors on your project. Did you adjust any settings before trying to compile? |
I checked, warnings as errors been disabled.
|
I'm not sure what the compiler differences are between what's been tested and what @acterhd is trying on (any information here would help), but it seems to be happening where uniform initialization is used with VK C types. I know there were some bugs around this with vc120, but wasn't aware that vc140 is finicky about it too. In any event it seems reasonable to explicitly do the conversion from int (size.x, size.y) -> uint32_t for those as it will prevent compiler warnings anyway. Here's one stackoverflow post that indicates this actually does create an error with VC++. Again, not sure why it works in some places but not others. |
Was finally able to reproduce this. This error seems to occur if one opens the project with VS 2015 and when prompted to upgrade, one proceeds to click Upgrade. This error does not seem to occur if one opens the project and subsequently changes the the compiler version from 120 to 140. I've updated the int32_t to uint32_t conversions on the files that were throwing this error. Fixed here: c928175. @ilzxc Thanks for pointing this out. I used Google translate to translate the error messages and saw that it was a narrowing conversion error and figured out what happened. |
I can't answer in previous issue, I'm slept.
Hello. I tried build both version of Cinder: Original and Vulkan. With original no problems with compilation. But with Vulkan have errors "uint32_t - int32_t", or "const int".
Log in Russian. 7 errors, 137 warnings (not showed).
Tool: Visual Studio 2015.
The text was updated successfully, but these errors were encountered: