could not compile, try rebuilding from source manually

Trying to upgrade from 5.4 to 5.5 and got the could not compile error, gone to build in VS and getting this. Does anybody know how to resolve?

Try this:

Navigate to your project folder, delete the .vs folder, Source folder and the .sln file, open up the .uproject file, once the editor opens create a new C++ class from Tools > New C++ Class, also select it to be public while creating it, after that’s done, close the editor, head back to your project folder, navigate to the newly generated Source folder, then into the folder with your project name on it under the Source folder, and replace the Public & Private folders there with the original ones. Now you should be able to build your project with no issues :innocent:

Disclaimer: Always make sure to have a backup of your project before manually adjusting the project files!!!


Also, please consider using a dark theme for the love of humanity :blush:

1 Like

Greetings @lp198

Were you able to resolve the issue with Vis’s instructions? If the issue persists, post back and we can take a look further. Thanks!

Hey, Thanks for the reply. Unfortunately I wasn’t able to get this working as I’m unable to open the project.

I get this when I try open the uproject.

"The following modules are missing or built with a different engine version:

Iceland

Would you like to rebuild them now?"

if I try rebuild I get this

“Iceland could not be compiled. Try rebuilding from source manually.”

If I choose no -

"The following modules are missing or built with a different engine version:

Iceland

Would you like to proceed anyway? Code and content that depends on these modules may not work correctly. Enter at your own risk."

if I proceed from here I get

"The game module ‘Iceland’ could not be found. Please ensure that this module exists and that it is compiled.

It seems like it’s not just a VS related issue since you’re unable to open the .uproject file.

First, try deleting the Intermediate and Binaries folders and opening the .uproject file again. You might encounter the same message when you do so but don’t give up on the first try and try a few more times.

If the issue persists, verify the engine from Epic Launcher and once that’s done, try opening the .uproject file once again.


I’d also recommend using version control and having multiple backups of your project on a safe drive if you’re not already, to avoid losing progress in the future. Things might go wrong when you try to upgrade the engine version of your project, especially if you had certain plugins enabled in your project.

Hey,

apologies, just at work so jumping on this each time I get some downtime…

I’ve just tried verifying 5.5 and deleting the folders you suggested but still having the same issue.
I upgraded from 5.3 to 5.4 succesfully with this project with very little issue. Strange it’s been difficult now.

I do have a back up of my 5.4 project backed up.

That’s great! Let’s do it this way then:

  • Create a new blank project with UE 5.5
  • Enable all the plugins that you use in your UE 5.4 project
  • Open up your UE 5.4 project and migrate all of your assets into the new blank project.

You can migrate assets by right clicking on them, navigating to Asset Actions on the menu that pops up, selecting the Migrate option, clicking on OK while keeping all of the asset’s dependencies as selected, and then selecting the new UE 5.5 project’s Content folder as their new home. You can also migrate assets together or select a folder as a whole. The migrate option won’t be hidden under any additional menus if you right click on a folder.

If the new UE 5.5 project crashes and you’re not able to open the .uproject file with this approach as well, then try migrating your assets in separate bulks and see which ones cause the issue.

Hope this helps! :innocent:

Cool, thank you for all your help!
I’ll give migrating a go!! :grinning:

Hey @lp198, it’s been a while since we last heard from you! How did my last suggestion go, were you able to try it out? Do you have any updates?

Apologies, I haven’t been back on here for a while. Not sure which exact plugin was causing it now but I went through and removed a bunch of plugins and it compiled.

1 Like

Oh, right on! Well, glad you got it fixed!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.