Download

Default C++ project won't compile

Hey guys,

OSX user here and I’m new to ue4. I’m running into a problem when I try to compile a “basic code” c++ project. After I press the create project button, I get the error posted below. Can’t find any other threads with this exact problem. Any thoughts?

Cheers


The project could not be compiled. Would you like to open it in Xcode?


Running Mono...

Setting up Mono
/Users/Shared/UnrealEngine/4.11/Engine /Users/Shared/UnrealEngine/4.11/Engine/Binaries/Mac
Compiling with MacOSX SDK 10.10
 @progress push 5%
Parsing headers for MyProjectEditor
  Running UnrealHeaderTool "/Users/username/Documents/Unreal Projects/MyProject/MyProject.uproject" "/Users/username/Documents/Unreal Projects/MyProject/Intermediate/Build/Mac/MyProjectEditor/Development/UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProjectEditor in 2.8831997 seconds
 @progress pop
Performing 6 actions (8 in parallel)
[1/6] Compile MyProject.h
In file included from /Users/username/Documents/Unreal Projects/MyProject/Intermediate/Build/Mac/UE4Editor/Development/MyProject/MyProject.h:4:
In file included from /Users/username/Documents/Unreal Projects/MyProject/Source/MyProject/MyProject.h:5:
In file included from Runtime/Engine/Public/Engine.h:9:
In file included from Runtime/Core/Public/Core.h:76:
Runtime/Core/Public/Delegates/Delegate.h:324:24: error: non-type template argument specializes a template parameter with dependent type 'T'
                        struct Inner<Dummy, ':', ':', Chars...>
                                            ^~~
Runtime/Core/Public/Delegates/Delegate.h:302:31: note: template parameter is declared here
                        template <bool Dummy, T... Chars>
                                                   ^
1 error generated.
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: /Users/username/Documents/Unreal Projects/MyProject/Binaries/Mac/UE4Editor-MyProject.dylib
Total build time: 15.24 seconds



I’m having the same problem. :frowning:

An error occurred while trying to generate project files.

Running Mono…

Setting up Mono
/Users/Shared/UnrealEngine/4.12/Engine
/Users/Shared/UnrealEngine/4.12/Engine/Binaries/Mac
Discovering modules, targets and source code for project…
Compiling with non-standard Xcode (xcode-select):
/Library/Developer/CommandLineTools/
Triggered an exception while looking for SDK directory in Xcode.app
System.IO.DirectoryNotFoundException: Directory
‘/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs’
not found.
at System.IO.Directory.ValidateDirectoryListing (System.String path,
System.String searchPattern, System.Boolean& stop) [0x00000] in <filename
unknown>:0
at System.IO.Directory.GetFileSystemEntries (System.String path,
System.String searchPattern, FileAttributes mask, FileAttributes attrs)
[0x00000] in <filename unknown>:0
at System.IO.Directory.GetDirectories (System.String path, System.String
searchPattern) [0x00000] in <filename unknown>:0
at System.IO.Directory.GetDirectories (System.String path) [0x00000] in
<filename unknown>:0
at UnrealBuildTool.AppleToolChain.SelectSDK (System.String BaseSDKDir,
System.String OSPrefix, System.String& PlatformSDKVersion, Boolean
bVerbose) [0x00000] in <filename unknown>:0
ERROR: Invalid SDK MacOSX.sdk, not found in
/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs