Announcement

Collapse
No announcement yet.

Cannot open source file "xx.generated.h"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cannot open source file "xx.generated.h"

    I have a solution and I'm happy to share it cause I couldn't for the life of me figure it out until now.

    This is an error in Visual Studio when starting a brand new C++ project and when creating a new class in UE4.20.1

    First, go to the file where Epic Games is installed, and then go over to UE_4.20 (or UE_4.19). From here, the directory you want to copy is going to look like this

    "..\UE_4.20\UE_4.20\Engine\Intermediate\Build\Win64\UE4Editor\Inc\Engine"

    Don't copy that though, because when I did it didn't fix my issue. What you want to do is go to that directory and then right-click "Engine", the last folder, and click "Copy address as text".

    Now go to Visual Studio, look over to the Solution Explorer, drop down the arrow on "Games" and right click your project's file name and click on properties.

    Look down and click on NMake, look over to the right and click on "Include Search Path." There should be an drop down arrow on the right, click that and click edit.

    On the top right corner, there's a file with a star, it's called "New Line," you're gonna want to click that and then copy and paste the address you've copied into the line. Click OK and Apply and you should be good to go.
    Last edited by Orthodoxy-; 08-15-2018, 12:21 AM.

    #2
    That's a HUGE Thank You !

    Comment


      #3
      Thats a ditto

      Comment


        #4
        You are a god!

        Comment

        Working...
        X