Download

Difficulty compiling after adding UMG to my project

Hi. I’m working through the BatteryCollector sample. I’m at the point where I added UMG to my app. Here’s what my BatteryCollector.Build.cs file looks like:



// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.

using UnrealBuildTool;

public class BatteryCollector : ModuleRules
{
	public BatteryCollector(TargetInfo Target)
	{
		PublicDependencyModuleNames.AddRange(new string] { "Core", "CoreUObject", "Engine", "InputCore", "UMG" });

        PrivateDependencyModuleNames.AddRange(new string] { "Slate", "SlateCore" });
	}
}

When I build now, I get the following errors:



[1/10] Compile BatteryCollector.h
[2/10] Compile BatteryCollector.generated.cpp
[3/10] Compile SpawnVolume.cpp
[4/10] Compile Pickup.cpp
[5/10] Compile BatteryPickup.cpp
[6/10] Compile BatteryCollectorGameMode.cpp
[7/10] Compile BatteryCollectorCharacter.cpp
[8/10] Compile BatteryCollector.cpp
[9/10] Link UE4Editor-BatteryCollector.dylib
clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-Slate.dylib'
clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-SlateCore.dylib'
clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-Engine.dylib'
clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-Core.dylib'
clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-CoreUObject.dylib'
clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-InputCore.dylib'
clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-UMG.dylib'

Does anyone know what might be going on?

I’m using version 4.10 of the engine and am building on OSX 10.11.1 using Xcode 7.0.

Thanks,
Eric