x

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"

GitDependencies.exe.config read-only error

I am storing UE4 in perforce and building from source. So files that are normally stored in git are read-only on my disk unless I check them out. I get this error during the build

 2>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(3884,5): error MSB3021: Unable to copy file "App.config" to "..\..\..\Binaries\DotNET\GitDependencies.exe.config". Access to the path '..\..\..\Binaries\DotNET\GitDependencies.exe.config' is denied.

It doesn't seem to break anything, so I can work around it for now, but it is definitely annoying to see 'build failed' all the time instead of only when the build actually fails.

Product Version: Not Selected
Tags:
more ▼

asked Jan 24 '15 at 04:34 AM in Installation & Setup

avatar image

ryani
57 9 14 30

avatar image Doug E ♦♦ STAFF Jan 28 '15 at 07:08 PM

Hey ryani-

Which version of the engine are you trying to build? As of 4.6 the dependencies have been included with the Setup.bat file when ran. Could you describe the process you use when trying to build the engine?

Cheers

Doug Wilson

avatar image ryani Jan 28 '15 at 07:58 PM

4.6.1

After running setup.bat and GenerateProjectFiles.bat (which both work flawlessly), I open the solution in Visual Studio.

Then, one of the build steps for the GitDependencies.exe program tries to copy that App.config file into the binaries directory, but the binary and config already exist since they were required for doing the engine setup.

And because they need to exist for new setups, I have them checked into perforce, which means those files on the local disk are read-only, which means the copy fails and shows the error I've described.

So, every build shows a superfluous error even when I didn't intend to change GitDependencies.exe or the associated config file.

I can work around the problem by tagging the files in perforce as writeable on all clients, but that feels like a hack. A better solution would be for GitDependencies.exe to not get rebuilt by default.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I've disabled building it as part of solution configurations by default in changelist 2466280 (commit 8a36c1a1bc2e763b3fbd2a6139c96d26606190ec).

more ▼

answered Mar 02 '15 at 03:10 PM

avatar image

Ben Marsh STAFF
778 24 9 18

avatar image ryani Mar 02 '15 at 03:27 PM

Thanks Ben!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hey ryani-

I agree that the option should exist to choose whether the .exe gets rebuilt or not. I have submitted a feature request to have this included in the engine (UE-8549). For the time being your best bet would be to continue tagging the necessary files as writeable.

Cheers

Doug Wilson

more ▼

answered Jan 28 '15 at 08:43 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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