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"

How to choose what folder's a project's Build.cs files access for includes and dependencies?

I am working on a project that has several plugins with their own Build.cs files. I am having an issue where these Build.cs files can not find files that exist within the same source folder unless I provide an include path all the way from my C: drive. For example, in my AmbientConditionsPlugin.Build.cs file

             new string[] {
                 // ... add public include paths required here ...

Gives the warning:Severity Code Description Project File Line Suppression State Warning Referenced directory 'C:\Program Files\Epic Games\UE_4.21\Engine\Source\AmbientConditionsPlugin\Public' does not exist. ScenarioGenerator C:\Users\USR\Documents\Unreal Projects\Duplicate\PluginSimulatorExampleProject\Plugins\AmbientConditionsPlugin\Source\AmbientConditionsPlugin\AmbientConditionsPlugin.Build.cs 1

If instead I use

             new string[] {
                 "C:/Users/USR/Documents/Unreal Projects/Duplicate/PluginSimulatorExampleProject/Plugins/CameraSensorPlugin/Source/CameraSensorPlugin/Public"

the warning goes away. This functions fine as a workaround but doesn't fix my underlying issue.

Additionally, when I try to list my other plugins as dependencies I get a warning that they're not being found. For example, in the same AmbientConditionsPlugin.Build.cs file

             new string[]

gives the warning "Severity Code Description Project File Line Suppression State Warning Warning: Plugin 'AmbientConditionsPlugin' does not list plugin 'ConfigurationPlugin' as a dependency, but module 'AmbientConditionsPlugin' depends on 'ConfigurationPlugin'. ScenarioGenerator C:\Users\USR\Documents\Unreal Projects\Duplicate\PluginSimulatorExampleProject\Intermediate\ProjectFiles\UnrealBuildTool 1

How do I get these build files to search my project folders instead of defaulting to the UE4.21\Engine folder? I've tried updating the Include directories in the project properties, but it doesn't seem to have any effect.

This project was originally developed on Linux and I am attempting to build it on Windows 10. My team members are able to successfully build this project on their Linux machines and use the simplified include paths detailed in my first code example ("AmbientConditionsPlugin/Public").

Product Version: UE 4.21
more ▼

asked Mar 04 '19 at 10:22 PM in C++ Programming

avatar image


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

0 answers: sort voted first
Be the first one to answer this question
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