UE4---Cross-compiling the Linux version on Windows10 reports an error

Error message: The specified target platform is invalid (LinuxNoEditor)

LogTargetPlatformManager: Error: Invalid target platform specified (LinuxNoEditor). Available = { AllDesktop, Android, Android_ASTC, Android_DXT, Android_ETC2, AndroidClient, Android_ASTCClient, Android_DXTClient, Android_ETC2Client, Android_Multi, Android_MultiClient, IOSClient, IOS, Lumin, LuminClient, MacNoEditor, Mac, MacClient, MacServer, TVOSClient, TVOS, WindowsNoEditor, Windows, WindowsClient, WindowsServer }
UATHelper: 打包 (Linux): ERROR: Cook failed.

思路来源:Cross compile for linux failed "Invalid target platform specified" - Platform & Builds - Unreal Engine Forums

Solution:

1 Re-run the GenerateProjectFiles.bat file in the installation directory of the source version

2. First, ensure that the project is a C++ project, not a pure blueprint project. If a Blueprint-only project is selected, this can be changed by creating a new C++ class in the Unreal Engine Editor.

3. Under the project folder, select the project name.uproject. Right-click to select switch unreal engine version... and select the source code version.

4. Right click and select Generate Visual Studio project files.

5. Use Visual Studio or Rider to open the project, change the solution to Development Editor|Win64, and click Run.

6. After entering UE4Editor, click File->Package Project->Linux->Linux. Wait for the packing to complete!

Guess you like

Origin blog.csdn.net/hellocode_7812/article/details/125974695