# Cross compile for linux failed "Invalid target platform specified"

**URL:** <https://forums.unrealengine.com/t/cross-compile-for-linux-failed-invalid-target-platform-specified/465480>\
**Category:** Platform & Builds\
**Tags:** cross-compiling, Linux, unreal-engine, question\
**Created:** [May 19, 2020, 8:57pm UTC](https://forums.unrealengine.com/t/cross-compile-for-linux-failed-invalid-target-platform-specified/465480 "2020-05-19T20:57:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [May 19, 2020, 8:57pm UTC](https://forums.unrealengine.com/t/cross-compile-for-linux-failed-invalid-target-platform-specified/465480/1 "2020-05-19T20:57:46Z")

</div>

im on ue4 4.24 source build and am cross-compiling for Linux from windows ive downloaded the tool chain but when i compile the cook command failed saying

UATHelper: Packaging (Linux): 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, TVOSClient, TVOS, Wind  
owsNoEditor, Windows, WindowsClient, WindowsServer, XXX }  
PackagingResults: 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, TVOSClient, TVOS, WindowsNoEditor, Windows, WindowsClient, Win  
dowsServer, XXX }

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bad892c11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bad892c11](https://forums.unrealengine.com/u/anonymous_user_bad892c11)\
**Post date:** [January 4, 2021, 8:02pm UTC](https://forums.unrealengine.com/t/cross-compile-for-linux-failed-invalid-target-platform-specified/465480/2 "2021-01-04T20:02:35Z")

</div>

after you install linux toolchain you need to run GenerateProjectFiles.bat again.  
After that is done you need to go to your game dir and right click switch unreal version which will generate new files for your project for VS.  
After that you need to rebuild the development-editor  
That fixed it for me
