Skip to content
Snippets Groups Projects
Commit fef04def authored by Matthew Zane's avatar Matthew Zane
Browse files

Removed setup instructions which are no longer needed README.md

parent 7cc7e9eb
Branches main
No related tags found
No related merge requests found
...@@ -18,65 +18,15 @@ unreal-opencv/Plugins/OpenCV ...@@ -18,65 +18,15 @@ unreal-opencv/Plugins/OpenCV
Right-click "Hololens2OpenCV.uproject" and "Generate Visual Studio project files" 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 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" Set the Solution Configurations to "Development Editor" and "Win64"
Right-click the Hololens2OpenCV solution under the right panel "Solution Explorer" and "Build" Right-click the Hololens2OpenCV solution under the right panel "Solution Explorer" and "Build"
**Copy the .dlls over** At this point you can now open the Hololens2OpenCV.uproject in Unreal Editor
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
**Fix the included Blueprints in the plugin** **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 ...@@ -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. 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. At this point you should be able to Package a Windows Release.
**Now to package a Hololens2 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 Project Settings > Platforms > Hololens > Packaging > Signing Certificate > Generate New
You should now be able to package a HoloeLens2 Release You should now be able to package a HoloeLens2 Release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment