# Can I add the dlopen path of UnrealEditor?

**URL:** <https://forums.unrealengine.com/t/can-i-add-the-dlopen-path-of-unrealeditor/1355276>\
**Category:** Platform & Builds\
**Tags:** error-building, Linux, unreal-engine, question\
**Created:** [November 1, 2023, 6:02am UTC](https://forums.unrealengine.com/t/can-i-add-the-dlopen-path-of-unrealeditor/1355276 "2023-11-01T06:02:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yumcow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yumcow](https://forums.unrealengine.com/u/Yumcow)\
**Post date:** [November 1, 2023, 6:02am UTC](https://forums.unrealengine.com/t/can-i-add-the-dlopen-path-of-unrealeditor/1355276/1 "2023-11-01T06:02:16Z")

</div>

I downloaded Unreal Engine 5.1.0 from [Linux - Unreal Engine](https://www.unrealengine.com/en-US/linux) and used it.

The engine directory is /home/user/Linux\_Unreal\_Engine\_5.1.0 and the project directory is /home/user/dev/MyProject. I’m also using my own library to implement the server and the .so file is routed to /home/user/dev/bin/release.x64/libMyLib.so . To use this, I added the following to build.cs

```auto
PublicAdditionalLibraries.Add(MyLibPath);
RuntimeDependencies.Add(MyLibPath);
PublicDelayLoadDLLs.Add(MyLibPath);

```

I also added a directory with .so files to LD\_LIBRARY\_PATH via ~/.bashrc.

This worked normally when run through vscode. However, the module could not be built when UnrealEditor was directly run and then the .uproject file was selected to run. The logs are as follows.

```auto
LogCore: Warning: dlopen failed: libMyLib.so: cannot open shared object file: No such file or directory

```

I think LD\_LIBRARY\_PATH is exported when running through vscode, so the engine can use the library, but when running UnrealEditor directly, it doesn’t seem to be able to.

In fact, the error did not occur when I copied the .so file to /usr/lib.

Other issues are likely to arise if I copy all libraries to /usr/lib. Can’t I get UnrealEngine to use the library in my custom path?
