Hi friends:
Currently I’m working on some augmented reality stuff by using UE4 and opencv, and here is a part of my *.build.cs:
if (Target.Platform == UnrealTargetPlatform.IOS)
{
PublicFrameworks.AddRange(new string] { "/Users/<my name>/Documents/opencv2.framework" }); // this is the IOS version of OpenCV.
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
PrivateIncludePaths.Add("/usr/local/include");
PublicAdditionalLibraries.Add("/usr/local/lib/libopencv_core.2.4.9.dylib"); //these are all the Mac version of opencv
PublicAdditionalLibraries.Add("/usr/local/lib/libopencv_highgui.2.4.9.dylib");
PublicAdditionalLibraries.Add("/usr/local/lib/libopencv_imgproc.2.4.9.dylib");
}
As you can see, currently the project works perfect on Mac version, but for the IOS version, I cannot even use the opencv2.framework, during build, then Unreal build system simply report “framework not found /Users/<my name>/Documents/opencv2.framework”, I 100% make sure the path is right, and I also tried to use this /Users/<my name>/Documents/opencv2 path, but it still fails…
Can someone tell me do I need to do something else to reference this opencv IOS framework? I think I cannot use AddAddtionalLibraries to reference it since in that framework folder, it simply has headers files and a big file named “opencv2”…
Thanks
.