# Link libraries Vosk and PortAudio to UE5 project

**URL:** <https://forums.unrealengine.com/t/link-libraries-vosk-and-portaudio-to-ue5-project/779606>\
**Category:** C++\
**Tags:** unreal-engine, crash, CPP, question\
**Created:** [February 27, 2023, 12:02pm UTC](https://forums.unrealengine.com/t/link-libraries-vosk-and-portaudio-to-ue5-project/779606 "2023-02-27T12:02:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonid\_System](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leonid\_System](https://forums.unrealengine.com/u/Leonid_System)\
**Post date:** [February 27, 2023, 12:02pm UTC](https://forums.unrealengine.com/t/link-libraries-vosk-and-portaudio-to-ue5-project/779606/1 "2023-02-27T12:02:40Z")

</div>

Hello, everyone! I have a project in C++ and I want to link the Vosk and PortAudio libraries to it. On 75% I get the following error: “The game module ‘SmartCompanion’ could not be loaded. There may be an operating system error, the module may not be properly set up, or a plugin which has been included into the build has not been turned on”. I tried deleting the folders “Binaries”, “Intermediate”, “Saved” and rebuilding the solution. That didn’t help either.

Here are the links to the code:  
SmartCompanion.Build.cs: [SmartCompanion/SmartCompanion.Build.cs at main · LeonSysprog/SmartCompanion · GitHub](https://github.com/LeonSysprog/SmartCompanion/blob/main/Source/SmartCompanion/SmartCompanion.Build.cs)  
SmartCompanion.h: [SmartCompanion/SmartCompanion.h at main · LeonSysprog/SmartCompanion · GitHub](https://github.com/LeonSysprog/SmartCompanion/blob/main/Source/SmartCompanion/SmartCompanion.h)  
SmartCompanion.cpp: [SmartCompanion/SmartCompanion.cpp at main · LeonSysprog/SmartCompanion · GitHub](https://github.com/LeonSysprog/SmartCompanion/blob/main/Source/SmartCompanion/SmartCompanion.cpp)

I was guided by these manuals:  
[https://web.archive.org/web/20140824192306/https://wiki.unrealengine.com/Linking\_Static\_Libraries\_Using\_The\_Build\_System](https://web.archive.org/web/20140824192306/https://wiki.unrealengine.com/Linking_Static_Libraries_Using_The_Build_System)

> **[How to integrate third-party library into Unreal Engine](https://georgy.dev/posts/third-party-integration/)**
>
> Concept There are two main types of libraries: Static and Dynamic (also called Shared).
> A static library is statically linked to a program and is available at compile time. A dynamic (or shared) library, on the other hand, is dynamically linked and...

Log output: [SmartCompanion/SmartCompanion.log at main · LeonSysprog/SmartCompanion · GitHub](https://github.com/LeonSysprog/SmartCompanion/blob/main/SmartCompanion.log)

---

<div class="post-metadata">

**Author:** ![Leonid\_System](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leonid\_System](https://forums.unrealengine.com/u/Leonid_System)\
**Post date:** [February 28, 2023, 11:28am UTC](https://forums.unrealengine.com/t/link-libraries-vosk-and-portaudio-to-ue5-project/779606/2 "2023-02-28T11:28:16Z")

</div>

Problem solved. This post helped me: [Unresolved external symbol for custom third party plugin (integrating Vosk)](https://forums.unrealengine.com/t/unresolved-external-symbol-for-custom-third-party-plugin-integrating-vosk/487496)
