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"

Compile error - ShaderCompileWorker

Hey guys,

I'm trying to compile UnrealEngine-dev-magicleap-mlsdk-0.20.0 (For Magic Leap) on MacOS.

I'm running a MacBook Pro 15" (2017) running MacOS Majave v10.14.4 (18E226). Xcode version 10.2 (10E125).

The following environment variables have been added to my bash profile:

 export MLSDK="/Users/james/MagicLeap/mlsdk/v0.20.0"
 export PATH="/Users/james/MagicLeap/mlsdk/v0.20.0/tools/mldb:$PATH"

Following the readme file, I ran the Setup.command and the GenerateProjectFiles.command files. I then opened up the project in Xcode, selected the shaderCompileWorker and tried to build it, but got the following errors:

 "Local variable 'Result' will be copied despite being returned by name" -  CodeGenerator.cpp - line 2593
 "Local variable 'Out' will be copied despite being returned by name" - UnrealSourceFile.cpp - line 

alt text

Any ideas how to sort this??

Product Version: UE 4.22
more ▼

asked Apr 15 '19 at 09:07 AM in Installation & Setup

avatar image

21 1

avatar image SJK_Newton 6 days ago

I have the same errors, but not for the "ShaderCompileWorker", but for the UE4. Have you resolved yours by any chance?


avatar image Shestoperov 6 days ago

I’ve been struggling with this mistake for a week and no success I tried to do so

this fix:

 - return Out;
 + return MoveTemp (Out);

 - return Result;
 + return MoveTemp (Result);

but it only led to even bigger mistakes(

Maybe someone could fix it?

(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