Hi - I had a working UE4.27 VR project (with C++) that I wanted to try out in UE5.0, so I started up UE5.0(.3) and opened my UE4.27(.1) project and the new migrated project fails to compile - looks like the include path or something is just broken.
I’m pretty new to Visual Studio so this might be something really obvious, but, any ideas?
Every single include, from all the .cpp files as well as the .h files are failing - including my own headers as well as the basic unreal stuff (Math/UnrealMathUtility.h, CoreMinimal.h, Kismet/BlueprintFunctionLibrary.h, etc.)
maybe you are lucky and just need to wait for some time. Visual Studio is doing some stuff behind scenes. Left down corner spinning circle, click on that and see if its doing something. it takes a couple of minute to figure out all the engine files and how they are related. Then all the errors will start to vanish
I’ve also tried to clean the build, remove the .vs and Intermediate folders and have unreal engine rebuild the VS project files. Still no go. Kind of weird!
I made a brand new UE5 VR starter project and started comparing the differences between it and my migrated UE4.27->UE5 project, and noticed that the solution’s ‘Include Directories’ (as found in the window (in visual studio) brought up by right clicking on the project in the Solution Explorer → Properties → Configuration Properties → VC++ Directories → General → Include Directories), e.g. here:
I tried copying the new UE5 project’s ‘include directories’ list into the migrated project’s ‘include directories’ list (and modifying the project name so that the …..\source{Project} relative path was correct), and that got rid of some, errors, though not all. e.g.
Did some digging on the forums here and the fix for that seems to be to have UE generate the VS project files again… but unfortunately for me that resets the ‘Include Directories’ property back to the old, broken, tiny list.
can you check your struct files, if you have any. See if you can make them work in an empty project. I’m looking at some youtube tutorials to learn how to create a struct in code but boy it doesn’t work like the tutorial.
if it works, if you kind, please post one of the structs code so i can see how it should be.
@RibsNGibs Ah, I don’t think OculusOpenXR exists within UE 5.0. We’re trying to move most common VR functionality into the OpenXR plugin.
You can open MyVRProject.uproject with a text editor and edit it to remove the dependency to OculusOpenXR, or change it to just be OpenXR if there’s no mention of OpenXR already.
…I did but I can’t remember how I did it, sorry. It was a while ago. I remember it required a lot of “manual” work, so I suspect what I did was just make a clean UE5 project and then migrate all the assets from the old project over.
Mine’s working as well finally. It was because of some plugins dependency errors. For example there is a plugin that added PhysX module but PhysX is no longer in 5.1, that’s why it gives error and break the whole project.