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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Unable to find Generated file from other module

I am trying to separate our game into 2 different modules. One is for the game and one is for the editor. Most of it is working except when I include any files from the game module from a file in the editor module, it can't find the "generated.h". Any help would be very appreciated. Thanks.

Product Version: Not Selected
Tags:
more ▼

asked Dec 13 '14 at 06:04 PM in C++ Programming

avatar image

BrynBennett
46 2 6 8

avatar image twxyz Jul 30 '15 at 11:21 PM

Have You fixed it? I'm currently having the same problem.

avatar image RayJohannessen Jan 06 '16 at 12:38 AM

Yeah ditto...any luck?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Oh man... yes... I did get it working, but I can't remember how. I now have the two projects working.

I had to make a file called UE4Games.uprojectdirs and put this in it:

; These folders will be searched 1 level deep in order to find projects ; UnrealBuildTool will store the following information: ; - Project name ; - Location of project ; - Whether it has code or not ; - TargetNames contains at the project location ; ./ Engine/Source/

That goes in the root level.

Then... I think I just added source files into a different folder and ran GenerateProjectFiles. There may be something else I'm missing though. Sorry about that.

more ▼

answered Jan 06 '16 at 01:56 AM

avatar image

BrynBennett
46 2 6 8

avatar image RayJohannessen Jan 06 '16 at 05:03 PM

Well hey, that's better than nothing! Just might help me get on the right path. Thanks for responding.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I've got it working by adding paths to the game module source files in the PrivateIncludePaths of the editor's Build.cs. besides having the game module added to the PublicDependencyModuleNames. Important thing is to also add XXX_API macro (where XXX is the name of your game module) to the class/struct/method definitions you want to export from the game module (make accessible by the editor module).

more ▼

answered Jan 06 '16 at 05:17 PM

avatar image

twxyz
66 3 7 23

avatar image RayJohannessen Jan 07 '16 at 04:30 PM

Thanks for your response man. Unfortunately I still can't get mine to compile after following your advice. I have a bit of a different situation, but I think the fundamental issue is the same, so maybe you'll have some insight...

I'm trying to derive from UAnimGraphNode_Base (an original editor class) in our MHEditor module, and it can't find the AnimGraphNode_Base.generated.h. I've tried adding the path to AnimGraphNode_Base.h in the MHEditor.Build.cs file, but no luck.

I could probably figure it out if I knew how the build tool went about finding the generated files to begin with, as they're obviously put in temporary directories (Intermediate/...) that aren't specified in Build.cs.

avatar image twxyz Jan 07 '16 at 06:42 PM

Do you add AnimGraph module to PublicDependencyModuleNames in your Build.cs file? This is all you should be required to do.

avatar image RayJohannessen Jan 07 '16 at 07:04 PM

Ahh, yup that it did it! Should have known...So evidently the module is what contains the generated header paths. Thanks!

avatar image twxyz Jan 07 '16 at 07:37 PM

Yes, adding the module to your module rules tells the UBT, which in turn tells the compiler, where to look for all the module related files :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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