Can't load project if I include a line that uses third party library

I’ve been following this guide to try to include a library called librealsense.

After following all the instructions, when I try to open my project named Hand_Visualizer, I get this error when the project is initializing.

Here is a pastebin of my build.cs file:

I am able to successfully build the project in visual studio, but I just can’t open the UE4 project without getting that error…

If I comment out the lines of code that uses the third party library, the project loads fine! But just using one line from the third party library results in not being able to open the project.

I would really appreciate it if someone could help me out!

Maybe look up the logs in Saved/Logs, maybe there some more info. Linking that library messes up module dll for some reason and OS can’t link it up to UE4. Did you build that lib file?