x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Cannot Open Generated Source File

alt text

include "PlayerCharacter.generated.h" has the following error: "cannot open source file PlayerCharacter.generated.h".

I've looked around a bunch and can't find a proper solution that works.

Product Version: UE 4.21
Tags:
log.png (134.2 kB)
1.png (27.0 kB)
2.png (6.9 kB)
3.png (24.7 kB)
more ▼

asked Jan 12 '19 at 11:34 AM in C++ Programming

avatar image

ThatsShocking
19 3 4 7

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

There was an error somewhere in my source code that was causing the problem, after fixing said error I could regenerate the files properly.

more ▼

answered Feb 07 '19 at 08:39 AM

avatar image

ThatsShocking
19 3 4 7

(comments are locked)
10|2000 characters needed characters left

I've tried regenerating certain files but it didn't work. The following are the steps I took:

I deleted the following files from my project folder: ".vs, Binaries, Config, Intermediate, Saved, .sln".

After deleting the files I right clicked on the .uproject file and clicked "Generate Visual Studio project files"...

The result of generating the Visual Studio project files... alt text

After trying to open the .uporject again I got a message saying there were missing modules and asked if I'd like them to be rebuilt, I clicked yes... alt text

After they were built I tried to open the .uproject file and got this message... alt text

3.png (24.7 kB)
4.png (7.8 kB)
6.png (5.5 kB)
more ▼

answered Jan 12 '19 at 11:46 AM

avatar image

ThatsShocking
19 3 4 7

avatar image phil_me_up Jan 12 '19 at 04:28 PM

I see this message occasionally and follow the same flow (delete Intermediate, regenerate VS project etc). The only thing I do differently is after regenerating the VS project, I open visual studio and hit Rebuild all.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question