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"

Creating C++ Projects invokes Mono on OS X which fails to find .bash_profile

When I go to create a new project, and I choose to create a C++ project over Blueprint I get the following error from mono:

Failed to generate project files. Log output:

Running Mono...

 Setting up Mono
 /Users/Shared/UnrealEngine/4.7/Engine /Users/Shared/UnrealEngine/4.7/Engine/Binaries/Mac
 UnrealBuildTool Exception: System.IO.FileNotFoundException: Could not find file "/Users/username/.bash_profile"
 File name: '/Users/username/.bash_profile'
   at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
   at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
   at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
   at System.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0 
   at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] in <filename unknown>:0 
   at System.IO.StreamReader..ctor (System.String path) [0x00000] in <filename unknown>:0 
   at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
   at System.IO.File.OpenText (System.String path) [0x00000] in <filename unknown>:0 
   at System.IO.File.ReadAllLines (System.String path) [0x00000] in <filename unknown>:0 
   at UnrealBuildTool.AndroidPlatform.HasAnySDK () [0x00000] in <filename unknown>:0 
   at UnrealBuildTool.AndroidPlatform.HasRequiredManualSDKInternal () [0x00000] in <filename unknown>:0 
   at UnrealBuildTool.UEBuildPlatform.HasRequiredManualSDK () [0x00000] in <filename unknown>:0 
   at UnrealBuildTool.UEBuildPlatform.ManageAndValidateSDK () [0x00000] in <filename unknown>:0 
   at UnrealBuildTool.UEBuildPlatform.RegisterBuildPlatform () [0x00000] in <filename unknown>:0 
   at UnrealBuildTool.UnrealBuildTool.RegisterAllUBTClasses (Boolean bSkipBuildPlatforms) [0x00000] in <filename unknown>:0 
   at UnrealBuildTool.UnrealBuildTool.Main (System.String[] Arguments) [0x00000] in <filename unknown>:0

(I've changed my username to "username" so you might see "/Users/username")

I'm not sure how to get around this, or why it's got such a dependency on .bash_profile, I use zsh, so I have a .zshrc instead - is this going to be a problem? Do I just need to create a dummy file? Is there some setting I'm missing that I should be using instead?

Product Version: Not Selected
Tags:
more ▼

asked Mar 05 '15 at 04:46 PM in Bug Reports

avatar image

bbuck
1 2 3

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

1 answer: sort voted first

That's very weird. We've had this bug very briefly, but that was before we released 4.7 and now we're checking if .bash_profile exists before we try reading it. What version of the engine you're using exactly?

more ▼

answered Mar 05 '15 at 05:37 PM

avatar image

ZeroEightSix STAFF
2k 18 6 36

avatar image bbuck Mar 05 '15 at 06:53 PM

Currently I'm using 4.7.2. I just installed it the engine Tuesday and then ran the update that was available yesterday for it before I started working with it.

avatar image ZeroEightSix STAFF Mar 05 '15 at 07:07 PM

OK, thanks. We'll investigate this but in a meantime you should be able to work around this by creating an empty .bash_profile file in your home directory. Sorry for the trouble.

avatar image bbuck Mar 05 '15 at 07:41 PM

That sounds great! I got a blueprint working to start learning the interface. I wasn't sure if the .bash_profile was actually needed for anything to work or not which is what least me to post this here.

(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