Error while building "shipping" Win32

Hello all!

So, I’ve been trying to build for win32, to no avail. I’ve chosen “Shipping”, but it won’t do it. I’ve read that this doesn’t work, so I’ve tried compiling with AutomationTool, which provided some insight, but I don’t know what to do.

[Here’s the error from unreal’s Output log][1]

Now, after running the Automation tool, I’m getting this error:

(My system is in Greek language. It translates to “Code execution cannot continue because mspdb140.dll cannot be found”)

I’m running Unreal Engine 4.15.2, with VS Community 2017 Version 15.1 (release 26403.7)

Also, my project is mixed C++ with Blueprints (I don’t see how this could be the problem, but I mention it anyway!)

Thank you in advance!

By default, 4.15 uses VS2015 (which is what that DLL is normally included with).

If you want to tell it to use VS2017, you need to do one of the following (h/t @Tim Lincoln):

If you are building the Engine from source code, you would want to open a command prompt after running Setup.bat and run the command GenerateProjectFiles.bat -2017. This will give you a Visual Studio 2017 solution for the Engine.

To use Visual Studio 2017 for projects, you can set your preference for which version projects use by going to Edit → Editor Preferences → General → Source Code and choosing Visual Studio 2017 in the Source Code Editor setting.

Thank you for your reply

I did the change (I’m using the precompiled engine, didn’t compile it myself), refreshed the Visual Studio Project from “File”, recompiled from Unreal, but I’m getting the same error. Did I miss something?

Btw, the file mspdb140.dll does exist in VS2017.

Hmm, if Win64 works you may want to check your package settings under “File” and make sure everything looks correct. Other than that, I’m out of ideas. :confused:

You may want to restart the editor after that change. I would expect vs2017 to use mspdb150.dll. There was s post mentioning you need to install the Windows 8.1a SDK as well, so you could give that a shot.

Did a restart, also did a removal of Saved, Binaries & Intermediate folders, and regenerated the VS project files. Still not packaging for Win32, with the same errors :confused:

Packaging for Win64 works correctly (forgot to mention that). I’ve even sent the compiled project to a friend and it works.

Either way, thank you very much for trying to help :slight_smile:
If I find a solution I’ll add it here

I finally packaged the project for Win32.

I made these steps altogether, so I can’t be sure which one solved my issue:

Step 1:

  • Try going to Packaging Settings (File → Package Project → Packaging Settings).
  • Under “Project”, enable “Full rebuild”
  • Try to package for Win32.

If it is not working again, step 2:

  • Go again on Packaging Settings,
  • Enable “For Distribution”
  • Realise that it won’t let you choose “Debug” or “Development” modes on “Build Configuration” again, unless you uncheck it
  • Try building again

Not working again? Final step

  • Hit up the Visual Studio Installer
  • Click modify under VS2017
  • Go to “Individual Components” tab
  • Under “Compilers, build tools and runtimes”, check “Tools VC++ 2015.3 v140 toolset (x86, x64)”
  • Click “Apply” and wait for it to finish.
  • List item

(saw it here, thanks @mdeni)

If it works, that’s great! If it doesn’t work, well… Good luck!

Thanks for this! The final step, installing the 2015 toolset, is definitely the key if you only have VS2017 installed. Your post saved me a major headache.