# Engine in WSL environment

**URL:** <https://forums.unrealengine.com/t/engine-in-wsl-environment/448565>\
**Category:** Platform & Builds\
**Tags:** engine-compile, cross-compiling, windows-10, Linux, unreal-engine, question\
**Created:** [May 7, 2019, 6:32pm UTC](https://forums.unrealengine.com/t/engine-in-wsl-environment/448565 "2019-05-07T18:32:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TehnoMag](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TehnoMag](https://forums.unrealengine.com/u/TehnoMag)\
**Post date:** [May 7, 2019, 6:32pm UTC](https://forums.unrealengine.com/t/engine-in-wsl-environment/448565/1 "2019-05-07T18:32:05Z")

</div>

Has anyone run the engine in WSL environment after compiling through crosutils?

I have one issue after compiled it in any configuration

> ./UE4Editor-Linux-Debug: symbol lookup  
> error: /mnt/e/Unreal Engine  
> 4/Engine/Engine/Binaries/Linux/libUE4Editor-UnrealEd-Linux-Debug.so:  
> undefined symbol:  
> \_Z50Z\_Construct\_UClass\_UAnimPreviewInstance\_NoRegisterv

on real linux system, after compiling through native binutils, i have no errors. But my primary develop platform are Windows and i prefer building here. And if it possible run in WSL it will be very comfortably to debug

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [May 7, 2019, 6:34pm UTC](https://forums.unrealengine.com/t/engine-in-wsl-environment/448565/2 "2019-05-07T18:34:40Z")

</div>

Did you cross-build it using our cross-toolchain? Maybe RPATHs got embedded wrong. Would you readelf -a libUE4Editor-UnrealEd-Linux-Debug.so and attach the output here?

---

<div class="post-metadata">

**Author:** ![TehnoMag](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TehnoMag](https://forums.unrealengine.com/u/TehnoMag)\
**Post date:** [May 7, 2019, 7:24pm UTC](https://forums.unrealengine.com/t/engine-in-wsl-environment/448565/3 "2019-05-07T19:24:51Z")

</div>

Yes. v13\_clang-7.0.1-centos7

Engine - 4.22 from 4.22 branch

Visual Studio - Community 2019 16.0.3

WSL setup with Ubuntu 18.0.4 LTS from Market

addition packages for environment - gdb and binutils

I just rebuild engine to Editor Development configuration from scratch. Error is here. readelf output in attachment.link text

---

<div class="post-metadata">

**Author:** ![TehnoMag](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TehnoMag](https://forums.unrealengine.com/u/TehnoMag)\
**Post date:** [May 7, 2019, 7:45pm UTC](https://forums.unrealengine.com/t/engine-in-wsl-environment/448565/4 "2019-05-07T19:45:22Z")

</div>

One more thing.  
i found \_Z50Z\_Construct\_UClass\_UAnimPreviewInstance\_NoRegisterv in libUE4Editor-AnimGraph.debug, so it`s seems function must be exported from there.

And yes

> nm -D libUE4Editor-AnimGraph.so | grep  
> Construct\_UClass\_UAnimPreviewInstance\_NoRegister

> 00000000002ff040 T \_Z50Z\_Construct\_UClass\_UAnimPreviewInstance\_NoRegisterv

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [May 7, 2019, 11:47pm UTC](https://forums.unrealengine.com/t/engine-in-wsl-environment/448565/5 "2019-05-07T23:47:24Z")

</div>

There’s something wrong with the libUE4Editor-UnrealEd-Linux-Debug.so binary, since the bulk of DT\_NEEDED entries are missing - it does not depend on any of the other editor libraries. Probably a bug in the FixDeps step of the cross-build process, which is different from the native build. Unfortunately there’s no easy solution right now, but here’s the number of JIRA that is tracking the issue: UE-68926

---

<div class="post-metadata">

**Author:** ![TehnoMag](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TehnoMag](https://forums.unrealengine.com/u/TehnoMag)\
**Post date:** [May 8, 2019, 5:17am UTC](https://forums.unrealengine.com/t/engine-in-wsl-environment/448565/6 "2019-05-08T05:17:01Z")

</div>

What about LD\_PRELOAD ? or another workaround?
