Throughout the day, I was working on my c++ ArchViz tutorial. I decided to implement some quality of life implementations such as footsteps and ambient music. I kept on encountering the following error:
XXX could not be compiled. Try rebuilding from the source:
Here’s how I triggered it and how I fixed it.
Causes:
1. Corruption
2. Using the .sln while the .uproject is not open
3. Other weird stuff
Fixes:
Quick:
1. Open up the .sln.
2. Right click the Games folder
3. Click build
4. Make sure it succeeds building
5. Double click the .uproject
6. It should open now
Slow:
1. Delete the following folders and files in your unreal project directory:
a. */Binaries
b. */Build
c. */DerivedDataCache
d. */Intermediate/
e. */Saved
f. *.sln
2. Right click the .uproject
3. Generate visual studio project files
4. Try opening the .uproject
5. If fails,
6. Open up the .sln.
7. Right click the Games folder
8. Click build
9. Make sure it succeeds building
10. Double click the .uproject
11. It should open now