# How do you add a third-party lib to the engine

**URL:** <https://forums.unrealengine.com/t/how-do-you-add-a-third-party-lib-to-the-engine/456344>\
**Category:** Platform & Builds\
**Tags:** buildcs, unreal-engine, dll-missing, question\
**Created:** [October 3, 2019, 1:17pm UTC](https://forums.unrealengine.com/t/how-do-you-add-a-third-party-lib-to-the-engine/456344 "2019-10-03T13:17:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_814115b8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_814115b8](https://forums.unrealengine.com/u/anonymous_user_814115b8)\
**Post date:** [October 3, 2019, 1:17pm UTC](https://forums.unrealengine.com/t/how-do-you-add-a-third-party-lib-to-the-engine/456344/1 "2019-10-03T13:17:08Z")

</div>

So I do not want to add a third-party lib to my unreal project. I’m trying to add a third-party lib to the engine. (I’m building the engine from source.) I’ve already got it working by modifying a .build.cs file, because I’ve added the include paths, the additional library, the public library path, and the run-time dependency. What am I missing? When the editor comes up, it can’t find the DLL unless I add its directory to the PATH env-var. Also, I can build a package for my game and my DLL finds its way into the package’s third-party directory (along with lots of other third-party DLLs in their own respective folders), but the packaged executable can’t locate the new DLL either.

To re-cap, all I’ve done is move my third-party targets into the third-party directory and then point Unreal to those files by modifying a .build.cs file. My build is succeeding, but I fail at run-time. With my PATH env-var patched, I’ve been able to debug the engine and step into my third-party library code. It’s just that I’m missing some sort of config setting somewhere that sets up the search paths so that Unreal can find the DLL at run-time. Any clues?

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [October 4, 2019, 10:03am UTC](https://forums.unrealengine.com/t/how-do-you-add-a-third-party-lib-to-the-engine/456344/2 "2019-10-04T10:03:03Z")

</div>

> **[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...

> **[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...
