Errors when running ./GenerateProjectFiles.sh

hi, when i run ./GenerateProjectFiles.sh i get some yellow text and when i run “make” after that it gives me

[maxce@Linux-Desktop UnrealEngine-release]$ make
bash "/home/maxce/Desktop/UnrealEngine-release/Engine/Build/BatchFiles/Linux/Build.sh" CrashReportClient Linux Shipping  
Fixing inconsistent case in filenames.
Setting up Mono
Running command : Engine/Binaries/DotNET/UnrealBuildTool.exe CrashReportClient Linux Shipping
Creating makefile for CrashReportClient (no existing makefile)
ERROR: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
make: *** [Makefile:327: CrashReportClient-Linux-Shipping] Error 6

Here is the output from ./GenerateProjectFiles.sh

[maxce@Linux-Desktop UnrealEngine-release]$ ./GenerateProjectFiles.sh                                       Attempting to set up UE4 pretty printers for gdb (existing UE4Printers.py, if any, will be overwritten)...
        updated UE4Printers.py
        found necessary entries in ~/.gdbinit file, not changing it.

Setting up Unreal Engine 4 project files...

Fixing inconsistent case in filenames.
Setting up Mono
Generating data for project indexing...   
WARNING: Exception while generating include data for UE4Editor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for BenchmarkTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for BlankProgram: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for BuildPatchTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for CrashReportClient: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for CrashReportClientEditor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                
WARNING: Exception while generating include data for DatasmithSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for HeadlessChaos: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for LiveCodingConsole: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for ShaderCompileWorker: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for SlateViewer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                            
WARNING: Exception while generating include data for SwitchboardListener: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for TestPAL: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                                
WARNING: Exception while generating include data for TextureShareSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealCEFSubProcess: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for UnrealFileServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealFrontend: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealHeaderTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealInsights: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealLightmass: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealMultiUserServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for UnrealPak: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for UnrealRecoverySvc: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for UnrealVersionSelector: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for BootstrapPackagedGame: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
Generating data for project indexing... 100%
Generating data for project indexing...   
WARNING: Exception while generating include data for UE4Editor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for BenchmarkTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for BlankProgram: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for BuildPatchTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for CrashReportClient: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for CrashReportClientEditor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                
WARNING: Exception while generating include data for DatasmithSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for HeadlessChaos: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for LiveCodingConsole: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for ShaderCompileWorker: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for SlateViewer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                            
WARNING: Exception while generating include data for SwitchboardListener: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for TestPAL: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                                
WARNING: Exception while generating include data for TextureShareSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealCEFSubProcess: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for UnrealFileServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealFrontend: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealHeaderTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealInsights: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealLightmass: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealMultiUserServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for UnrealPak: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for UnrealRecoverySvc: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for UnrealVersionSelector: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for BootstrapPackagedGame: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
Generating data for project indexing... 100%
Writing project files... 100%
Generating data for project indexing...   
WARNING: Exception while generating include data for UE4Editor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for BenchmarkTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for BlankProgram: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for BuildPatchTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for CrashReportClient: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for CrashReportClientEditor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                
WARNING: Exception while generating include data for DatasmithSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for HeadlessChaos: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for LiveCodingConsole: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for ShaderCompileWorker: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for SlateViewer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                            
WARNING: Exception while generating include data for SwitchboardListener: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for TestPAL: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                                
WARNING: Exception while generating include data for TextureShareSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealCEFSubProcess: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for UnrealFileServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealFrontend: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealHeaderTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealInsights: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealLightmass: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealMultiUserServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for UnrealPak: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for UnrealRecoverySvc: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for UnrealVersionSelector: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for BootstrapPackagedGame: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
Generating data for project indexing... 100%
Generating data for project indexing...   
WARNING: Exception while generating include data for UE4Editor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for BenchmarkTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for BlankProgram: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for BuildPatchTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for CrashReportClient: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for CrashReportClientEditor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                
WARNING: Exception while generating include data for DatasmithSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for HeadlessChaos: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for LiveCodingConsole: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for ShaderCompileWorker: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for SlateViewer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                            
WARNING: Exception while generating include data for SwitchboardListener: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for TestPAL: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                                
WARNING: Exception while generating include data for TextureShareSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealCEFSubProcess: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for UnrealFileServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealFrontend: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealHeaderTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealInsights: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealLightmass: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealMultiUserServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for UnrealPak: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for UnrealRecoverySvc: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for UnrealVersionSelector: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for BootstrapPackagedGame: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
Generating data for project indexing... 100%
Generating data for project indexing...   
WARNING: Exception while generating include data for UE4Editor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for BenchmarkTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for BlankProgram: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for BuildPatchTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for CrashReportClient: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for CrashReportClientEditor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                
WARNING: Exception while generating include data for DatasmithSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for HeadlessChaos: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for LiveCodingConsole: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for ShaderCompileWorker: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for SlateViewer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                            
WARNING: Exception while generating include data for SwitchboardListener: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for TestPAL: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                                
WARNING: Exception while generating include data for TextureShareSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealCEFSubProcess: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                    
WARNING: Exception while generating include data for UnrealFileServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealFrontend: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealHeaderTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                       
WARNING: Exception while generating include data for UnrealInsights: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for UnrealLightmass: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                        
WARNING: Exception while generating include data for UnrealMultiUserServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for UnrealPak: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for UnrealRecoverySvc: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for UnrealVersionSelector: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
WARNING: Exception while generating include data for BootstrapPackagedGame: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                  
Generating data for project indexing... 100%
Generating data for project indexing...   
WARNING: Exception while generating include data for UE4Editor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                              
WARNING: Exception while generating include data for BenchmarkTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for BlankProgram: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for BuildPatchTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                         
WARNING: Exception while generating include data for CrashReportClient: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for CrashReportClientEditor: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                
WARNING: Exception while generating include data for DatasmithSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                           
WARNING: Exception while generating include data for HeadlessChaos: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                          
WARNING: Exception while generating include data for LiveCodingConsole: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.                                                      
WARNING: Exception while generating include data for ShaderCompileWorker: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for SlateViewer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for SwitchboardListener: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for TestPAL: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for TextureShareSDK: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealCEFSubProcess: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealFileServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealFrontend: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealHeaderTool: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealInsights: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealLightmass: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealMultiUserServer: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealPak: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealRecoverySvc: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for UnrealVersionSelector: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
WARNING: Exception while generating include data for BootstrapPackagedGame: Platform Linux is not a valid platform to build. Check that the SDK is installed properly.
Generating data for project indexing... 100%
Writing project files... 100%

Hello,
First make sure you have the latest tool-chain from here Linux Development Requirements for Unreal Engine | Unreal Engine 5.1 Documentation.
Now in case it’s the latest version and you’re sure it was downloaded fully successfully that means it’s not broken, just go place it manually from where ever that Unreal Engine folder is located, example if my Unreal Engine folder is located in my home folder I would navigate to “/home/username/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/” ignore quotes. Navigate to that location, “cd ~/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/” and paste it there. For my case, broken tool-chain was v17_clang-10.0.1-centos7.
If you have any questions don’t hesitate to ask.

1 Like

Hello. My toolchain was probably not properly installed, and when I try to install it again, it returns “Toolchain already installed skipping”. How to uninstall it and re-install it properly?

1 Like

Bit late but…
Go to ./Engine/Extras/SDKs. Find and delete the sdk for your platform (in my case HostLinux/v22clang…) and rerun Setup and GenerateProjectFiles.
Fixed it for me while building for Linux.