From fef04def238c0222de3500b176a8282cbc03d3dd Mon Sep 17 00:00:00 2001 From: Matthew Zane <mzane@ucsd.edu> Date: Wed, 19 Jan 2022 00:34:33 -0800 Subject: [PATCH] Removed setup instructions which are no longer needed README.md --- README.md | 91 ++----------------------------------------------------- 1 file changed, 2 insertions(+), 89 deletions(-) diff --git a/README.md b/README.md index 6f9bc01..8a2fa6e 100644 --- a/README.md +++ b/README.md @@ -18,65 +18,15 @@ unreal-opencv/Plugins/OpenCV Right-click "Hololens2OpenCV.uproject" and "Generate Visual Studio project files" -**Edit the plugin modules \*.build.cs** +**Compile the Unreal Project Editor** Open the Hololens2OpenCV.sln in visual studio -Open unreal-opencv\Plugins\OpenCV\Source\ThirdParty\OpenCVLibrary\OpenCVLibrary.Build.cs - -replace line 50 - -`RuntimeDependencies.Add("$(TargetOutputDir)/opencv_world451.dll", Path.Combine(PluginDirectory, "Binaries/Win64/opencv_world451.dll"));` - -with - -`RuntimeDependencies.Add("$(TargetOutputDir)/opencv_world451.dll", Path.Combine(PluginDirectory, "Source/ThirdParty/OpenCVLibrary/Windows/x64/vc15/bin/opencv_world451.dll"));` - -replace line 51 - -`RuntimeDependencies.Add("$(TargetOutputDir)/opencv_videoio_ffmpeg451_64.dll", Path.Combine(PluginDirectory, "Binaries/Win64/opencv_videoio_ffmpeg451_64.dll"));` - -with - -`RuntimeDependencies.Add("$(TargetOutputDir)/opencv_videoio_ffmpeg451_64.dll", Path.Combine(PluginDirectory, "Source/ThirdParty/OpenCVLibrary/Windows/x64/vc15/bin/opencv_videoio_ffmpeg451_64.dll"));` - -Open unreal-opencv\Plugins\OpenCV\Source\ThirdParty\ZBarLibrary\ZBarLibrary.Build.cs - -replace line 35 - -`RuntimeDependencies.Add("$(TargetOutputDir)/libzbar.dll", Path.Combine(PluginDirectory, "Binaries/ThirdParty/OpenCVLibrary/Win64/libzbar.dll"));` - -with - -`RuntimeDependencies.Add("$(TargetOutputDir)/libzbar.dll", Path.Combine(PluginDirectory, "Source/ThirdParty/ZBarLibrary/Windows/lib/libzbar-0.dll"));` - -**Compile the Unreal Project Editor** - Set the Solution Configurations to "Development Editor" and "Win64" Right-click the Hololens2OpenCV solution under the right panel "Solution Explorer" and "Build" -**Copy the .dlls over** - -Inside directory `unreal-opencv\Plugins\OpenCV\Source\ThirdParty\OpenCVLibrary\Windows\x64\vc15\bin` - -Copy `opencv_world451.dll`, `opencv_videoio_msmf451_64.dll`, `opencv_videoio_ffmpeg451_64.dll` and - -Paste into `unreal-opencv\Binaries\Win64` - -Inside directory `unreal-opencv\Plugins\OpenCV\Source\ThirdParty\ZBarLibrary\Windows\lib` - -Copy `libzbar64-0.dll` and - -Paste into `unreal-opencv\Binaries\Win64` - -Inside directory `unreal-opencv\Plugins\OpenCV\Source\ThirdParty\ZBarLibrary\Windows\zbar\libiconv\dll_x64` - -Copy `libiconv.dll` and - -Paste into `unreal-opencv\Binaries\Win64` - -At this point you can now open theHololens2OpenCV.uproject in Unreal Editor +At this point you can now open the Hololens2OpenCV.uproject in Unreal Editor **Fix the included Blueprints in the plugin** @@ -84,47 +34,10 @@ Once the Project is open we need to fix some blueprint errors in the Plugin In the Content Browser under "View Options" make sure "Show Plugin Contents" is enabled. -Open the blueprint at `OpenCV Content/BP_TestLevelDriver` and delete the SpawnActor node with a missing class causing the error, and connect the SpawnCameraObjects event to the SpawnActor ARCameraRender Node. - -Inside BP_TestLevelDriver On Event Beginplay() on the "Start AR Session" node set the session config to "DA_ARSessionConfig" - -Open the level blueprint for ARTestLevel at `OpenCV Content/` and delete the SpawnActor node with a missing class causing the error, and connect the SpawnCameraObjects event to the SpawnActor ARCameraRender Node. - -Inside the ARTestLevel Level blueprint On Event Beginplay() on the "Start AR Session" node set the session config to "DA_ARSessionConfig" - At this point you should be able to Package a Windows Release. **Now to package a Hololens2 Release** -Inside directory `unreal-opencv\Plugins\OpenCV\Source\ThirdParty\OpenCVLibrary\Hololens\lib\arm64` - -Copy `opencv_world452.dll` and - -Paste into `unreal-opencv\Binaries\Win64` - -Then - -Open unreal-opencv\Plugins\OpenCV\Source\ThirdParty\ZBarLibrary\ZBarLibrary.Build.cs - -replace line 28 - -`PublicAdditionalLibraries.Add(Path.Combine(ModulePath, "Hololens", "lib", "libzbar.lib"));` - -with - -`PublicAdditionalLibraries.Add(Path.Combine(ModulePath, "Windows", "lib", "libzbar-0.lib"));` - -Open unreal-opencv\Plugins\OpenCV\Source\ThirdParty\OpenCVLibrary\OpenCVLibrary.Build.cs - -replace line 34 - -`RuntimeDependencies.Add("$(TargetOutputDir)/opencv_world452.dll", Path.Combine(PluginDirectory, "Binaries/ThirdParty/OpenCVLibrary/Win64/opencv_world452.dll")); -` - -with - -`RuntimeDependencies.Add("$(TargetOutputDir)/opencv_world452.dll", Path.Combine(PluginDirectory, "Source/ThirdParty/OpenCVLibrary/Hololens/lib/arm64/opencv_world452.dll"));` - Project Settings > Platforms > Hololens > Packaging > Signing Certificate > Generate New You should now be able to package a HoloeLens2 Release -- GitLab