How to Use SDK 8.2 with Visual Studio on Windows?

skrasms's icon

I wanted to update some old externals that I wrote, but the process has changed. The 7.3.3 SDK included VS projects, and they had build configurations for x86 and x64 platforms. It was straightforward. I'm finding 8.2 is more involved, and I am not sure how to get a successful build from the examples.

I downloaded the 8.2 SDK and went through the cmake step to generate VS projects for my version of VS (Visual Studio 14 2015). The projects generated successfully. However, the resulting projects aren't configured to build correctly in VS. The build options that appear in VS are all Win32, and the builds fail. I imagine that is related to the mismatch between 32 and 64-bit. There are a lot of warnings like:
warning LNK4272: library machine type 'x64' conflicts with target machine type 'X86'

Are there steps that I'm missing? Do I need a specific version of Visual Studio for this to work?

11OLSEN's icon

I went through the same process. You should install a more up to date version like VS 2019. It's free except they force you to sign up for a MS account.

skrasms's icon

Thank you for the suggestion. I just downloaded VS 2022, and that's working.

NK's icon

Could you provide images about settings in VS2022 ? I had tried for a long time for building an external and did not success yet...