# How to make references to /Engine/Source/ThirdParty from my project

**URL:** <https://forums.unrealengine.com/t/how-to-make-references-to-engine-source-thirdparty-from-my-project/388216>\
**Category:** Mobile\
**Tags:** engine-compile, opencv, unreal-engine, Android, UE4, question, CPP\
**Created:** [March 17, 2017, 3:27pm UTC](https://forums.unrealengine.com/t/how-to-make-references-to-engine-source-thirdparty-from-my-project/388216 "2017-03-17T15:27:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ciri\_up](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ciri\_up](https://forums.unrealengine.com/u/Ciri_up)\
**Post date:** [March 17, 2017, 3:27pm UTC](https://forums.unrealengine.com/t/how-to-make-references-to-engine-source-thirdparty-from-my-project/388216/1 "2017-03-17T15:27:16Z")

</div>

Hi everyone. I’m a bit new to programming in UE4. I’m working on a project which involves the use of OpenCV on Android platforms. This is the problem: I created a module on Engine/Source/ThirdParty for OpenCV and I have created the OpenCV.Build.cs file, like on the other thirdparty modules, as this:

```
	string SdkBase = UEBuildConfiguration.UEThirdPartySourceDirectory + "OpenCV";
	if (!Directory.Exists(SdkBase))
	{
		string Err = string.Format("OpenCV SDK not found in {0}", SdkBase);
		System.Console.WriteLine(Err);
		throw new BuildException(Err);
	}
    
    if (Target.Platform == UnrealTargetPlatform.Android) {

        PublicIncludePaths.Add(SdkBase + "/Android/sdk/native/jni/include");
        string LibraryPath = SdkBase + "/Android/sdk/native/libs";

        PublicLibraryPaths.Add(LibraryPath + "/armeabi-v7a");
        PublicAdditionalLibraries.Add("libopencv_calib3d.a");
        PublicAdditionalLibraries.Add("libopencv_core.a");
        PublicAdditionalLibraries.Add("libopencv_features2d.a");
        PublicAdditionalLibraries.Add("libopencv_flann.a");
        PublicAdditionalLibraries.Add("libopencv_highgui.a");
        PublicAdditionalLibraries.Add("libopencv_imgcodecs.a");
        PublicAdditionalLibraries.Add("libopencv_imgproc.a");
        PublicAdditionalLibraries.Add("libopencv_ml.a");
        PublicAdditionalLibraries.Add("libopencv_objdetect.a");
        PublicAdditionalLibraries.Add("libopencv_photo.a");
        PublicAdditionalLibraries.Add("libopencv_shape.a");
        PublicAdditionalLibraries.Add("libopencv_stiching.a");
        PublicAdditionalLibraries.Add("libopencv_superres.a");
        PublicAdditionalLibraries.Add("libopencv_video.a");
        PublicAdditionalLibraries.Add("libopencv_videoio.a");
        PublicAdditionalLibraries.Add("libopencv_videostab.a");

        isLibrarySupperted = true;

        //Add the runtime dependency. ie: RuntimeDependencies.Add(new RuntimeDependency(OpenVRBinariesDir + "libopenvr_api.dylib"));
        RuntimeDependencies.Add(new RuntimeDependency(LibraryPath + "/armeabi-v7a/libopencv_java3.so"));

```

and when I try to import some of the .hpp available in the Android/sdk/native/jni/include on my project it returns me an error during compilation. Please, there is someone who can tell me what I am doing wrong?

Thank You

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [July 14, 2019, 9:20am UTC](https://forums.unrealengine.com/t/how-to-make-references-to-engine-source-thirdparty-from-my-project/388216/2 "2019-07-14T09:20:17Z")

</div>

Did you checked docs and wiki?

I found this:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Take a look.
