# Packaging for linux (on win) fails

**URL:** <https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487>\
**Category:** Platform & Builds\
**Tags:** Linux, Packaging-Error, unreal-engine, question\
**Created:** [January 8, 2016, 3:34pm UTC](https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487 "2016-01-08T15:34:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![edcolmar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Post date:** [January 8, 2016, 3:34pm UTC](https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487/1 "2016-01-08T15:34:43Z")

</div>

Hey everyone.

I’ve been struggling with this one for two days now. I see a lot of similar issues that other people are having, but I can’t seem to find a solution that works.

I have been following this tutorial:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Along with some other help threads where people are having issues.

I can compile (in VS) and I have linux executables, but I cannot get the package step to complete.

Package step error log is here: [http://pastebin.com/MVUJiLkL](http://pastebin.com/MVUJiLkL)

I saw some others had this same issue, and the solution they found was to “build ue4 in ‘development’ ‘linux’ mode”. This is failing for me too:

```
Severity	Code	Description	Project	File	Line	Suppression State
Error linker command failed with exit code 1 (use -v to see invocation)	UE4	F:\Unreal Projects\MMDEMO1\Intermediate\ProjectFiles\clang++.exe	1	
Error Failed to produce item: F:\ue4github\UnrealEngine\Engine\Binaries\Linux\UE4Game	UE4	F:\Unreal Projects\MMDEMO1\Intermediate\ProjectFiles\ERROR	1	
Error	MSB3073	The command "F:\ue4github\UnrealEngine\Engine\Build\BatchFiles\Build.bat UE4Game Linux Development -waitmutex" exited with code -1.	UE4	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets	37	

```

Please help! I’m so close!!!

---

<div class="post-metadata">

**Author:** ![edcolmar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Post date:** [January 9, 2016, 1:40am UTC](https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487/2 "2016-01-09T01:40:22Z")

</div>

Update: I was able to complete the “build ue4 development linux” step. But I am still seeing this same error.

How can I get LinuxNoEditor to be available to package?

Fatal error: [File:F:\ue4github\UnrealEngine\Engine\Source\Developer\TargetPlatform\Private\TargetPlatformManagerModule.cpp] [Line: 220]  
Invalid target platform specified (LinuxNoEditor). Available = { AllDesktop, WindowsClient, WindowsNoEditor, WindowsServer, Windows, Android, Android\_ASTC, Android\_ATC, Android\_DXT, Android\_ETC1, Android\_ETC2, Android\_Multi, Android\_PVRTC, HTML5, IOS }

---

<div class="post-metadata">

**Author:** ![MACH2Simulations](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MACH2Simulations](https://forums.unrealengine.com/u/MACH2Simulations)\
**Post date:** [January 9, 2016, 3:02pm UTC](https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487/3 "2016-01-09T15:02:07Z")

</div>

is linux selected in target platforms

---

<div class="post-metadata">

**Author:** ![edcolmar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Post date:** [January 9, 2016, 4:23pm UTC](https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487/4 "2016-01-09T16:23:39Z")

</div>

Thanks for the response Mulldoon!

Inside of VS, linux is there. Is there somewhere else to check?

 ![73632-ss4.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/b/aeba752bce15704c5d97ab15cf785846d30625a5.jpeg)

---

<div class="post-metadata">

**Author:** ![edcolmar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Post date:** [January 9, 2016, 4:40pm UTC](https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487/5 "2016-01-09T16:40:23Z")

</div>

It is also here. inside ue4. Anywhere else to check?

 ![73634-ss5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/f/fcf62d703b63b531b0e650213d244dcffeb07647.jpeg)

---

<div class="post-metadata">

**Author:** ![edcolmar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Post date:** [January 9, 2016, 4:51pm UTC](https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487/6 "2016-01-09T16:51:35Z")

</div>

I am also seeing some conflicting instructions (now that i’ve gone through the process multiple times). For example:

This [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Compiling_For_Linux) page says after running the powershell script, and setting the environment variable, the next step is “re-regenerate UE4 project files (using GenerateProjectFiles.bat)”

This [http://allarsblog.com/2015/11/06/Installing-Linux-Toolchain-On-Windows/](http://allarsblog.com/2015/11/06/Installing-Linux-Toolchain-On-Windows/) page says the next step is to run “Setup.bat”

I’ve tried it both ways now, with the same result, so maybe it does not matter… Suggestions?

---

<div class="post-metadata">

**Author:** ![edcolmar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Post date:** [January 9, 2016, 10:45pm UTC](https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487/7 "2016-01-09T22:45:31Z")

</div>

Totally stuck here… I’m going to try to start from scratch with a new github pull.

Is there any way to verify these steps along the way?

---

<div class="post-metadata">

**Author:** ![edcolmar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Post date:** [January 10, 2016, 5:03am UTC](https://forums.unrealengine.com/t/packaging-for-linux-on-win-fails/343487/8 "2016-01-10T05:03:21Z")

</div>

Update: I started over from a completely new github pull, and followed the instructions again. I got an error, but it was not the error I was expecting. This led me towards a potential solution.

I was building inside VS previously in “development” configuration.

Once I switched to “development-editor” “win64” and built “ue4” my linux packaging works.
