title: How do I generate `.generated.h` files in unreal manually on linux?
body: <p>When I try to open the project, it says "The following modules are missing or built with a different editor version: &lt;project name> Would you like to rebuild them now? If I click yes it says "&lt;project name> could not be compiled. Try rebuilding from source manually." and quits. This is a new project, has not yet been opened due to this error. (I have tried several times with different templates)</p>
  
  <p>So after researching I tried building manually with <code>GenerateProjectFiles.sh -cmakefile -game -project &lt;project file&gt;</code>, then <code>cmake</code>, then <code>make</code>. At first this didn't work because it was using g++ instead of clang, so I changed it to clang, changed the standard to c++14, and  now it almost compiles, but it complains that the <code>.generated.h</code> files do not exist. How do I generate them considering I can't open the editor, don't have Visual Studio, and am working on Linux? I also can't change the install files because I don't have permission (work computer). </p>
  
  <p>GenerateProjectFiles.sh output:</p>
  
  <pre><code>Setting up Unreal Engine 4 project files...
  
  chmod: changing permissions of bin/mcs: Operation not permitted
  chmod: changing permissions of bin/xbuild: Operation not permitted
  Fixing inconsistent case in filenames.
  Setting up Mono
  &lt;unreal dir&gt;/Engine/Binaries/ThirdParty/Mono/Linux/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: error : Access to the path "&lt;unreal dir&gt;/Engine/Source/Programs/DotNETCommon/DotNETUtilities/obj/Development/DotNETUtilities.csproj.FilesWrittenAbsolute.txt" is denied.  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
    at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at System.IO.StreamWriter..ctor (System.String path, System.Boolean append) [0x00008] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool)
    at Microsoft.Build.Tasks.WriteLinesToFile.Execute () [0x0002e] in &lt;1e06a39ffa2a4ecc9361f5e710a0e7cb&gt;:0 
  &lt;unreal dir&gt;/Engine/Binaries/ThirdParty/Mono/Linux/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: error : Access to the path "&lt;unreal dir&gt;/Engine/Source/Programs/UnrealBuildTool/obj/Development/UnrealBuildTool.csproj.FilesWrittenAbsolute.txt" is denied.  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
    at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at System.IO.StreamWriter..ctor (System.String path, System.Boolean append) [0x00008] in &lt;98fac219bd4e453693d76fda7bd96ab0&gt;:0 
    at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool)
    at Microsoft.Build.Tasks.WriteLinesToFile.Execute () [0x0002e] in &lt;1e06a39ffa2a4ecc9361f5e710a0e7cb&gt;:0 
  Discovering modules, targets and source code for project...
  Generating data for project indexing... 100%
  </code></pre>
  
  <p>make error:</p>
  
  <pre><code>    In file included from &lt;project dir&gt;/Source/MyProject2/MyProject2GameMode.cpp:3:
      &lt;project dir&gt;/Source/MyProject2/MyProject2GameMode.h:7:10: fatal error: 
            'MyProject2GameMode.generated.h' file not found
      #include "MyProject2GameMode.generated.h"
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      118 warnings and 1 error generated.
      make[2]: *** [CMakeFiles/FakeTarget.dir/Source/MyProject2/MyProject2GameMode.cpp.o] Error 1
      make[1]: *** [CMakeFiles/FakeTarget.dir/all] Error 2
      make: *** [all] Error 2
  </code></pre>