# How to setup cross-compilation toolchain for linux packaging

**URL:** <https://forums.unrealengine.com/t/how-to-setup-cross-compilation-toolchain-for-linux-packaging/296796>\
**Category:** Platform & Builds\
**Tags:** Linux, unreal-engine, Packaging, question\
**Created:** [October 21, 2014, 7:20am UTC](https://forums.unrealengine.com/t/how-to-setup-cross-compilation-toolchain-for-linux-packaging/296796 "2014-10-21T07:20:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryuikuya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ryuikuya](https://forums.unrealengine.com/u/ryuikuya)\
**Post date:** [October 21, 2014, 7:20am UTC](https://forums.unrealengine.com/t/how-to-setup-cross-compilation-toolchain-for-linux-packaging/296796/1 "2014-10-21T07:20:09Z")

</div>

I want to package the linux client and server following below 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...

but When I buit linux server with VS. there is following errors

Error 1 error : Unable to instantiate instance of ‘SubstanceCore’ object type from compiled assembly ‘StormUnitedServerModuleRules’. Unreal Build Tool creates an instance of your module’s ‘Rules’ object in order to find out about your module’s requirements. The CLR exception details may provide more information: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —\> UnrealBuildTool.BuildException: ERROR: Platform not supported by Substance

I just setup the linux toolchain like following steps

1, set up the windows enviroment for toolchain forder director  
2, click install.bat forder.  
3,rebuild the source code

![18479-enviroment.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/e/82efeaeed8f05c32462661aee3b400474fe08716.jpeg)

![18480-forder.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/8/20839c4583190664a4a1f93ef6156b950bd57c21.jpeg)

 ![18511-vs+package+linux.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/4/ae4157d5bebba39f1ae47d1839ab2116e2d5ae32.jpeg)

---

<div class="post-metadata">

**Author:** ![wittlief\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wittlief\_1](https://forums.unrealengine.com/u/wittlief_1)\
**Post date:** [April 8, 2015, 8:21pm UTC](https://forums.unrealengine.com/t/how-to-setup-cross-compilation-toolchain-for-linux-packaging/296796/2 "2015-04-08T20:21:56Z")

</div>

Hi ryuikuya,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes. If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, could you please submit a new report for it.
