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"

Including PS4 library code in project

I've added this in my project's .Build.cs file:

     if (Target.Platform == UnrealTargetPlatform.PS4)
     {
         string SDKDir = System.Environment.GetEnvironmentVariable("SCE_ORBIS_SDK_DIR");
         if ((SDKDir != null) && (SDKDir.Length > 0))
             PublicIncludePaths.AddRange(new string[] { SDKDir + "/target/include_common", SDKDir + "target/include_common/shader" });


And this in my C++ file:

 #if PLATFORM_PS4
 #include "pssl_types.h"
 #include "GnmResources.h"
 #endif

But I still keep getting this when I build:

MainFrameActions: Packaging (PlayStation 4): UnrealBuildTool: [1/3] orbis-clang.exe Module.ConcreteGenie.3_of_3.cpp MainFrameActions: Packaging (PlayStation 4): UnrealBuildTool: In file included from D:\work2\UnrealProjects\ConcreteGenie\Intermediate\Build\PS4\ConcreteGenie\Development\ConcreteGenie\Module.ConcreteGenie.3_of_3.cpp:38: MainFrameActions: Packaging (PlayStation 4): UnrealBuildTool: D:\work2\UnrealProjects\ConcreteGenie\Source\ConcreteGenie\dls\PaintSelectionComponent.cpp(23,10) : fatal error: 'pssl_types.h' file not found MainFrameActions: Packaging (PlayStation 4): UnrealBuildTool: #include "pssl_types.h" MainFrameActions: Packaging (PlayStation 4): UnrealBuildTool: ^

What am I doing wrong?

Thanks!

-dls

Product Version: UE 4.8
Tags:
more ▼

asked Sep 10 '15 at 06:50 PM in Using UE4

avatar image

dlswenson
1 1 2 1

avatar image dlswenson Sep 10 '15 at 09:17 PM

Ok -- figured it out. This is the business here:

     string SDKDir = System.Environment.GetEnvironmentVariable("SCE_ORBIS_SDK_DIR");
     if ((SDKDir != null) && (SDKDir.Length > 0))
         PublicIncludePaths.AddRange(new string[] 
         { 
             Path.Combine(SDKDir, "target/include_common"), 
             Path.Combine(SDKDir, "target/include_common/shader"),
             Path.Combine(SDKDir, "target/include_common/gnmx"),
         });

I probably would have been ok with the add, but I would have needed a leading slash on the include_common/shader line the path in the environment doesn't have a trailing slash. I didn't think about it because I copied the include lines from unreal code, but they were from a mix of Path.Combine and add -- doh! :-)

(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