# Compiling the source code to use with unreal plugin

**URL:** https://discourse.kitware.com/t/compiling-the-source-code-to-use-with-unreal-plugin/1189
**Category:** Pulse Physiology Engine
**Created:** [January 12, 2024, 3:45pm UTC](https://discourse.kitware.com/t/compiling-the-source-code-to-use-with-unreal-plugin/1189 "2024-01-12T15:45:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![NucleusDev](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@NucleusDev](https://discourse.kitware.com/u/NucleusDev)
#### Post date: [January 12, 2024, 3:45pm UTC](https://discourse.kitware.com/t/compiling-the-source-code-to-use-with-unreal-plugin/1189/1 "2024-01-12T15:45:50Z")

</div>

I need a few additional actions for some of my scenarios which is why i am tying to edit the source code on a personal repo. I need to now use it with the Unreal Plugin.

1. Is there a Workflow to replace the files in the plugin.
2. Is there a Build order or configuration that i need to know in order to build similar dlls for the plugin
3. If the cdm folder is replaced with the cdm folder from the source code ("including the cpp files) and i remove the dependencies from UPLUGIN file. would it work ?  
5 is there a resource i can refer to, to understand the workflow

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [January 12, 2024, 5:30pm UTC](https://discourse.kitware.com/t/compiling-the-source-code-to-use-with-unreal-plugin/1189/2 "2024-01-12T17:30:19Z")

</div>

The Pulse plugin provides a prebuilt Pulse Engine binary, you will need to rebuild that.  
Build Pulse per the readme instructions on the [Pulse Repository](https://gitlab.kitware.com/physiology/engine)  
But with the Pulse\_AS\_SHARED cmake option enabled

![image](https://discourse.kitware.com/uploads/default/original/1X/fb7887d50700285c2f63c3ceaffdd2abd6a9b8d5.png)

Then just replace the `ThirdParty/PulseSDK/include` directory with the `<pulse_build_dir>install/include` folder. The `Pulse.lib` will be in the `<pulse_build_dir>install/lib` folder, and the `Pulse.dll` will be in the `<pulse_build_dir>install/bin` folder. If you are using the `StandardMale@0s.json` or `StandardFemale@0s.json` states, you can find those in the `<pulse_build_dir>install/bin.states` folder

I will update our Readme with these instructions.

Your plugin now has all your Pulse updates and you can use your new actions

---

<div class="post-metadata">

### Author: ![TomD](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/t/b4bc9f/32.png) [@TomD](https://discourse.kitware.com/u/TomD)
#### Post date: [March 15, 2024, 10:13am UTC](https://discourse.kitware.com/t/compiling-the-source-code-to-use-with-unreal-plugin/1189/3 "2024-03-15T10:13:51Z")

</div>

Hi Aaron,

I’m following the instructions provided, but I’m not able to see the same options in CMake as in your image. I don’t see AS\_SHARED or LIBS\_ONLY. I’m using the latest commit on the stable branch, and using VS2022. I tried compiling anyway, but I only generated Pulse **C**.lib and Pulse **C**.dll, not the specific file names you have mentioned. Do you know why this might happen?

---

<div class="post-metadata">

### Author: ![TomD](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/t/b4bc9f/32.png) [@TomD](https://discourse.kitware.com/u/TomD)
#### Post date: [March 15, 2024, 11:17am UTC](https://discourse.kitware.com/t/compiling-the-source-code-to-use-with-unreal-plugin/1189/4 "2024-03-15T11:17:42Z")

</div>

I’ve managed to find the solution. For anyone else suffering from the same issue, at the time of writing this isn’t supported on the stable branch, only on the integration branch.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [March 15, 2024, 11:35am UTC](https://discourse.kitware.com/t/compiling-the-source-code-to-use-with-unreal-plugin/1189/5 "2024-03-15T11:35:43Z")

</div>

I had to make a few patches to stable to build the last unity and unreal plug-ins. This branch was used for those builds.

[https://gitlab.kitware.com/physiology/engine/-/tree/patch/4\_2\_unity\_unreal?ref\_type=heads](https://gitlab.kitware.com/physiology/engine/-/tree/patch/4_2_unity_unreal?ref_type=heads)

I should probably merge those into stable and tag
