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 include header file

I'm working on a plugin that contains custom K2Node and I wanted to use SGraphNodeK2Sequence to display it. In the K2Node's .cpp file I have added #include "Editor/GraphEditor/Private/KismetNodes/SGraphNodeK2Sequence.h". However I'm getting the following error: "C1083 Cannot open include file: 'KismetNodes/SGraphNodeK2Base.h': No such file or directory". SGraphNodeK2Base is the parent of SGraphNodeK2Sequence.

I have tried including that header directly but I get the same error. If it matters, the plugin is currently set as a Runtime plugin so this might affect what modules can be used. I'm also using other classes from the GraphEditor but they come from the Public folder.

Product Version: UE 4.15
Tags:
more ▼

asked May 26 '17 at 09:05 AM in C++ Programming

avatar image

K.Yanchev
21 1 1 5

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

2 answers: sort voted first

You need to add GraphEditor to your Module's Private Include paths, like so:

(in your .Build.cs file)

             PrivateIncludePathModuleNames.AddRange(
                 new string[] {
                     "GraphEditor",
                     // ... add other private include paths required here ...
                 }
                 ); 
more ▼

answered May 26 '17 at 02:49 PM

avatar image

ExtraLifeMatt
1.6k 34 14 48

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

Thanks for your reply but I already tried adding the module and it doesn't change anything. The reason this doesn't work is because SGraphNodeK2Sequence is a private class and it's not part of the .dll. You can see that it's missing the _API extension next to the class name. I included the full path to GraphEditor/Private but then I get linker errors.

Fortunately, SGraphNodeK2Base can be overridden, so you just have to implement (copy & paste) your own Sequence node.

more ▼

answered May 29 '17 at 01:12 AM

avatar image

K.Yanchev
21 1 1 5

(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