x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

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

Product Version: UE 4.15
Tags:
more ▼

asked Mar 17 '17 at 03:27 PM in C++ Programming

avatar image

Ciri up
3 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question