About this document
This article showcases how to fix a compiler error for InstaLOD for Unreal Engine. The error occurs when opening a blueprint project or if Visual Studio is not installed.
The error message notes:
The following modules are missing or build with a different engine version:
Would you like to rebuild them now?
When allowing to rebuild, an additional error occurs:
Project could not be compiled. Try rebuilding from source manually.
Fixing the issue
To ensure that the project can compile, add a C++ class to it first and only then add InstaLOD to the project files. A C++ class can be added with the following steps from within UE:
- Open the 'Content Browser'.
- Click 'Add New' and select 'New C++ class'.
- Click 'Next' and select 'Create Class' without changing anything.
- Close the UE4 Editor, add InstaLOD to the project and restart UE4.
If the issue still prevails, perhaps Visual Studio is not properly configured in UE4. This can be checked with the following steps:
- Launch UE from the Epic Games Launcher without selecting a project.
- In the Unreal Project Browser, select 'New Project' and switch to the 'C++' tab,
- If no Visual Studio instance is found on your machine, a warning appears at the bottom.
You can download and Install Visual Studio directly from there.
When installing Visual Studio make sure you install all the following components from the upcoming selection:
- Desktop development with C++
- .NET desktop development
- Game development with C++
- Windows 10 SDK (10.0.XXXXX.0) for Desktop [x86 and x64]