# Engine Binary does not contain LibOVR shim files

**URL:** <https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 20, 2016, 8:03pm UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963 "2016-10-20T20:03:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![trilorez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trilorez](https://forums.unrealengine.com/u/trilorez)\
**Post date:** [October 20, 2016, 8:03pm UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/1 "2016-10-20T20:03:12Z")

</div>

In Engine/Source/ThirdParty/LibOVR/LibOVR\_1\_0\_0/Src, the following files are missing:  
OVR\_CAPI\_Util.cpp  
OVR\_CAPIShim.c  
OVR\_StereoProjection.cpp

These files are required for me to directly access LibOVR, otherwise my project fails to compile.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [October 25, 2016, 2:24pm UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/2 "2016-10-25T14:24:38Z")

</div>

Hey trilorez,

I am not seeing these files every being included in the engine (back to 4.11). Can you explain where they originated from in order for you to require them?

Thanks.

---

<div class="post-metadata">

**Author:** ![trilorez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trilorez](https://forums.unrealengine.com/u/trilorez)\
**Post date:** [October 28, 2016, 6:00am UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/3 "2016-10-28T06:00:36Z")

</div>

I noticed that all of the Oculus related plugins (such as OculusRift and OculusInput) in the engine make use of those files to access LibOVR. I would like to be able to access LibOVR so I can determine the preferred audio device id for vr, since I am using my own audio engine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [October 28, 2016, 12:37pm UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/4 "2016-10-28T12:37:11Z")

</div>

Hey trilorez,

Can you point me to a chunk of code that the engine is using that relies on LibOVR?

Thanks.

---

<div class="post-metadata">

**Author:** ![trilorez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trilorez](https://forums.unrealengine.com/u/trilorez)\
**Post date:** [October 28, 2016, 6:50pm UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/5 "2016-10-28T18:50:29Z")

</div>

Sure, here are some files that include LibOVR shim files:  
[https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Plugins/Runtime/OculusRift/Source/OculusRift/Private/OculusRiftCAPI.cpp](https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Plugins/Runtime/OculusRift/Source/OculusRift/Private/OculusRiftCAPI.cpp)  
[https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Plugins/Runtime/OculusInput/Source/Private/OculusInputCAPI.cpp](https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Plugins/Runtime/OculusInput/Source/Private/OculusInputCAPI.cpp)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [November 3, 2016, 3:17pm UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/6 "2016-11-03T15:17:51Z")

</div>

Hey trilorez,

Is your engine not compiling? I am still not sure what your issue is.

Please explain more about the relevancy of the LibOVR files with UE4 and your project.

Thanks.

---

<div class="post-metadata">

**Author:** ![trilorez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trilorez](https://forums.unrealengine.com/u/trilorez)\
**Post date:** [November 3, 2016, 11:58pm UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/7 "2016-11-03T23:58:59Z")

</div>

I’m using the binary version of the engine, I believe there wouldn’t be an issue when compiling from source since the required files are present.

The issue is that I would like to directly access LibOVR in order to access functions that are not exposed by UE4’s OculusRift wrapper. When I include “OVR\_CAPI\_Audio.h” and use functions from it, I get linker errors stating that symbols are not defined. If I copy [these files](https://github.com/EpicGames/UnrealEngine/tree/release/Engine/Source/ThirdParty/Oculus/LibOVR/LibOVR_1_0_0/Src) to the equivalent engine directory on my computer, the project succeeds in compiling.

So basically, it looks like when making release binaries of the engine, those shim files are not being included. This could be intentional, but it means that if I want direct access to LibOVR then I have to copy the shim files manually.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [November 4, 2016, 12:46pm UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/8 "2016-11-04T12:46:14Z")

</div>

Hey trilorez,

If you would like to be able to include these files, I would highly recommend using the source build of the engine. You can start learning how to do that, here:

[][1]

Thank you for submitting a bug report, however at this time we believe that the issue you are describing is not actually a bug with the Unreal Engine, and so we are not able to take any further action on this. If you still believe this may be a bug, please provide steps for us to reproduce the issue, and we will continue our investigation.

[1]:

---

<div class="post-metadata">

**Author:** ![trilorez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trilorez](https://forums.unrealengine.com/u/trilorez)\
**Post date:** [November 5, 2016, 12:40am UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/9 "2016-11-05T00:40:23Z")

</div>

Just to clarify, are you saying that being able to access third party SDKs the engine uses is not supported? If so, I find that somewhat surprising since I think games should be able to take advantage of SDK features that aren’t exposed by the engine’s wrappers. I understand it’s easy to build from source or add the shim files directly to my project, but I’m still surprised at this not being supported by default.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [June 14, 2017, 3:41pm UTC](https://forums.unrealengine.com/t/engine-binary-does-not-contain-libovr-shim-files/373963/10 "2017-06-14T15:41:59Z")

</div>

Hi trilorez,

I apologize for not getting back to you sooner on this. To clarify, we do not include source files for third-party libraries in the binary version of the Engine. Not including these files does not affect the Engine’s default use of the LibOVR library, and our expectation is that anyone that needs to access parts of the library that are not included in our implementation is most likely working from a source-built Engine.
