# Errors while linking to opencv

**URL:** <https://forums.unrealengine.com/t/errors-while-linking-to-opencv/414622>\
**Category:** Pipeline & Plugins\
**Tags:** UE4-14, UE4-16, opencv, unreal-engine, Visual-Studio, UE4, question\
**Created:** [January 15, 2018, 4:31pm UTC](https://forums.unrealengine.com/t/errors-while-linking-to-opencv/414622 "2018-01-15T16:31:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e88bfa5b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e88bfa5b](https://forums.unrealengine.com/u/anonymous_user_e88bfa5b)\
**Post date:** [January 15, 2018, 4:31pm UTC](https://forums.unrealengine.com/t/errors-while-linking-to-opencv/414622/1 "2018-01-15T16:31:56Z")

</div>

Hello everybody! I successfully linked OpenCV 3.1 with visual studio 2015, and also linked unreal with visual studio 2015,but unreal engine can not recognize the opencv library. I followed that tutorial [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Integra)… and changed the dll file names according to 3.1 version. Two errors occur every time after building :-

**error CS0117** : ‘UnrealBuildTool.ModuleRules.PCHUsageMode’ does not contain a definition for ‘UseExplicitOrSharedPCHs’.

**error MSB3075** : The command ““C:\Program Files\Epic Games\UE\_4.14\Engine\Build\BatchFiles\Build.bat” CV1Editor Win64 Development “D:\unreal project\CV1\CV1.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.

I have installed UE 4.16 and built successfully , but a message like that appear when i try to use a plugin, although when running a downloaded example with the plugin it works properly! Any help please?

![227121-module-not-found.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/f/0df5cc7052ecd67a943c99048edc4a481c4522de.png)
