# How to build the UE4 runtime as a library（lib or dll），in order to embed it into our project。

**URL:** <https://forums.unrealengine.com/t/how-to-build-the-ue4-runtime-as-a-library-lib-or-dll-in-order-to-embed-it-into-our-project/487736>\
**Category:** Platform & Builds\
**Tags:** dll, UE4-24, library, build, unreal-engine, question\
**Created:** [August 20, 2021, 1:35pm UTC](https://forums.unrealengine.com/t/how-to-build-the-ue4-runtime-as-a-library-lib-or-dll-in-order-to-embed-it-into-our-project/487736 "2021-08-20T13:35:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_40d99fe4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_40d99fe4](https://forums.unrealengine.com/u/anonymous_user_40d99fe4)\
**Post date:** [August 20, 2021, 1:35pm UTC](https://forums.unrealengine.com/t/how-to-build-the-ue4-runtime-as-a-library-lib-or-dll-in-order-to-embed-it-into-our-project/487736/1 "2021-08-20T13:35:51Z")

</div>

in unreal engine 4.27 preview ，there is a new feature that we can build the UE4 runtime as a library and interact with it through a minimal，build-in API. This API starts UE4,optionally accepting a command-line and window handle and so on.Is anyone know how i can handle this process? Thanks very much.

---

<div class="post-metadata">

**Author:** ![duyaokun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duyaokun/32/893361_2.png) [@duyaokun](https://forums.unrealengine.com/u/duyaokun)\
**Post date:** [February 12, 2024, 8:59am UTC](https://forums.unrealengine.com/t/how-to-build-the-ue4-runtime-as-a-library-lib-or-dll-in-order-to-embed-it-into-our-project/487736/2 "2024-02-12T08:59:49Z")

</div>

This is the document [Building Unreal Engine as a Library | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/SharingAndReleasing/BuildAsALibrary/)
