So I am getting these errors when building UE4Editor on Mac:
Setting up Mono
Building UBT...
Configuration/UEBuildBinary.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
Configuration/UEBuildModule.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
Configuration/UEBuildTarget.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/CPPHeaders.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/DynamicCompilation.cs(10,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/ProjectFileGenerator.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/UnrealBuildTool.cs(13,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/UProjectInfo.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/Utils.cs(14,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/Utils.cs(15,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
Utilities/XmlConfigLoader.cs(16,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
Configuration/UEBuildTarget.cs(820,10): error CS0246: The type or namespace name `CaselessDictionary' could not be found. Are you missing an assembly reference?
Configuration/UEBuildModule.cs(876,47): error CS0246: The type or namespace name `CaselessDictionary' could not be found. Are you missing an assembly reference?
Configuration/UEBuildModule.cs(1989,49): error CS0246: The type or namespace name `CaselessDictionary' could not be found. Are you missing an assembly reference?
System/CPPHeaders.cs(394,18): error CS0246: The type or namespace name `FileContentsCacheType' could not be found. Are you missing an assembly reference?
Let me give you some back story: I set up UE4 from GitHub, ran setup.command
and GenerateProjectFiles.command
, built with Xcode and UBT worked great actually - no errors initially. Then, I was getting the following mysterious linker error:
ld: library not found for -l/Users/zorro/Perforce/UnrealEngine/4.10/Engine/Plugins/SkookumScript/Runtime/Source/AgogCore/../../Intermediate/Lib/1897/Mac/AgogCore-Development.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
even though the file /Users/zorro/Perforce/UnrealEngine/4.10/Engine/Plugins/SkookumScript/Runtime/Source/AgogCore/../../Intermediate/Lib/1897/Mac/AgogCore-Development.a
does positively exist and has 755 permissions (this is a library file previously built with Xcode belonging to a custom plugin I am working on - SkookumScript). So baffled by this, I thought I follow the advice in the error message and pass -v
to the linker. So I edited the file MacToolChain.cs
and added a -v
to the variable LinkCommand
. From this point on, I have been getting the above error messages and have not been able to rid myself of them. Even reverting the modification of MacToolChain.cs
and re-running setup.command
and GenerateProjectFiles.command
does not help, nor does deleting Engine/Intermediate
& Engine/Saved
folders.
As a side note, I have been using the same build scripts and linking procedures for the iOS version of our plugin and it builds and links fine.
So any help (with either of my two problems actually!) would be super appreciated.
Thanks in advance!