Running Setup.command on external drive fails

Hi folks. In order to free up some space I’ve decided to keep the UE4 source and build files on an external drive. The drive is currently formatted as FAT32 because it stores data for both Mac and Windows.

I’m running MacOs 10.12.6 and Xcode 9.1. My external drive was initially named “LACIE SHARE”.

When I run the Setup.command I get the following:

Registering git hooks... (this will override existing ones!)
Setting up Mono
Checking dependencies (excluding Win32, Win64, Android)...
Updating dependencies:  30% (1/39), 1.2 MiB cached...
Failed to download 'http://cdn.unrealengine.com/dependencies/3367711-dc3c12a6d6784615ac3c93e5d77a4464/2baf02cd7cefb3dd8f549886b24457f54a7a072f': Sharing violation on path /Volumes/LACIE_SHARE/UnrealEngine/Engine/Source/ThirdParty/Facebook/IOS/DocSets/FacebookAudienceNetworkSDK-4_18-for-iOS.docset/Contents/Resources/docSet.dsidx.incoming (IOException)

I then tried moving all the files over to my local drive and running Setup.command from there. It ran without a hitch so I moved all the files (including the new ones) over to the external drive and then ran GenerateProjectFiles.command. This initially failed because my external drive name had a space in it “LACIE SHARE” so I changed it to “LACIE_SHARE”.
Building the ShaderCompilerWorker succeeded without any errors. Building UE4 through up a bunch of errors similar to this one:

fatal error: file '/Volumes/LACIE_SHARE/UnrealEngine/Engine/Source/Runtime/Core/Public/Internationalization/TextLocalizationManager.h' has been modified since the precompiled header '/Volumes/LACIE_SHARE/UnrealEngine/Engine/Intermediate/Build/Mac/UE4Editor/Development/CoreUObject/PCH.CoreUObject.h.gch' was built
note: please rebuild precompiled header '/Volumes/LACIE_SHARE/UnrealEngine/Engine/Intermediate/Build/Mac/UE4Editor/Development/CoreUObject/PCH.CoreUObject.h.gch'

From what I’ve read elsewhere these are precompiled when Setup.command is run. So I figured if I went back and ran Setup.command now that I’ve changed my external drive name it might work but no luck.

So, any idea why I’m getting this “Sharing violation path” error?

Mike

Hi lyndonm,

The “sharing violation on path” on FAT drives appears to be a known issue with mono and the GitDependencies tool uses mono. See https://bugzilla.xamarin.com/show_bug.cgi?id=38538 and https://bugzilla.xamarin.com/show_bug.cgi?id=44505 for more information. The suggestion is to use a different filesystem as a work around. There are some tools to allow you to write to NTFS drives from macOS and HFS+ from Windows.

For your second issue I would first suggest cleaning the build/intermediate folder and see if that allows the editor to build.