Package Plugin Task failed!

I want to compile Cesium-UnReal by myself,。
According to the official instructions,first,I clone of cesium-unreal-samples and then clone the cesium-unreal.git code In the cesium-unreal-samples/Plugins directory, and compiled the Cesium Native code. When I tried to open CesiumForUnrealSamples.uproject with Ue4 (4.26), a plug-in compilation error appeared.
image
So,I downloaded plugin package into myUnreal project’s Plugins directory.
Then I opened the project file (CesiumForUnrealSamples.uproject) in Ue4, and then selected “Setting–>Plugins–>Geospatial” to configure the Cesium for Unreal plug-in, click Pagkage…, select the “plugin package” directory


The following error occurred:

UATHelper: Package Plugin Task (Windows): ERROR: Failed to create directory E:\UEProjects\cesium-unreal-samples\Plugins\CesiumForUnreal\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\cpp-httplib\CMakeFiles\Export\E_\UEProjects\cesium-unreal\extern__\Source\ThirdParty
cmake\httplib for copy

C++ compilation environment I use VS2019
It is currently not possible to generate a VS solution for the plug-in, please help to see what caused it

Hi @litar77,

After adding Cesium Unreal to the cesium-unreal-sample/Plugins directory, you will also need to compile cesium-native within cesium-unreal/extern directory. For more information, the instruction for cesium-native can be found in the README of cesium-unreal Github Repository GitHub - CesiumGS/cesium-unreal: Bringing the 3D geospatial ecosystem to Unreal Engine. After that, it should work correctly. Please let me know if you have any questions.

thans for your replay

After adding Cesium Unreal to the cesium-unreal-sample/Plugins directory,according to the instructions in readme.md,


I compile cesium-native by running the following commands:

cmake -B build -S . -G “Visual Studio 16 2019”
cmake --build build --config Debug --target install
cmake --build build --config Release --target install

But I don’t know how to “Point your Unreal Engine Project to the CesiumForUnreal.uplugin file to load the plugin into Unreal Engine.”

When I select CesiumForUnrealSamples.uproject,generate Visual Studio project files through the right-click menu,The following error message appeared

image

So cesium-unreal plugin‘s Visual Studio Solution is not generated.Please help tell me which step is the problem.

I can opened the CesiumForUnrealSamples.uproject in ue4,but when I double-click Cesium 3D Tileset in ue4,only the “Cesium3DTileset.h” and “Cesium3DTileset.cpp” were opened, and the Solution is empty

How can I generate the plugin sln file?

I package cesium for unreal plugin,and assigned to the cesium-unreal directory


ue4 has a lot of errors

UATHelper: Package Plugin Task (Windows): Stacktrace: 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Package Plugin Task (Windows): 在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Package Plugin Task (Windows): 在 AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, List1 IniKeyBlacklist, List1 IniSectionBlacklist) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 378
UATHelper: Package Plugin Task (Windows): ERROR: Failed to copy E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_enc.dir\Release\draco_co.6CDF4B51.tlog\draco_compression_attributes_pred_schemes_enc.lastbuildstate to E:\UEProjects\cesium-unreal-samples\Plugins\cesium-un
real\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_enc.dir\Release\draco_co.6CDF4B51.tlog\draco_compression_attributes_pred_schemes_enc.lastbuildstate
UATHelper: Package Plugin Task (Windows): SafeCopyFile Exception was Exception in mscorlib: 未能找到路径“E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_enc.dir\Debug\draco_co.6CDF4B51.tlog\draco_compression_attributes_pre
d_schemes_enc.lastbuildstate”的一部分。
UATHelper: Package Plugin Task (Windows): Stacktrace: 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Package Plugin Task (Windows): 在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Package Plugin Task (Windows): 在 AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, List1 IniKeyBlacklist, List1 IniSectionBlacklist) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 378
UATHelper: Package Plugin Task (Windows): ERROR: Failed to copy E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_enc.dir\Debug\draco_co.6CDF4B51.tlog\draco_compression_attributes_pred_schemes_enc.lastbuildstate to E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unre
al\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_enc.dir\Debug\draco_co.6CDF4B51.tlog\draco_compression_attributes_pred_schemes_enc.lastbuildstate
UATHelper: Package Plugin Task (Windows): SafeCopyFile Exception was Exception in mscorlib: 未能找到路径“E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_dec.dir\Release\draco_co.9EA33BAC.tlog\draco_compression_attributes_p
red_schemes_dec.lastbuildstate”的一部分。
UATHelper: Package Plugin Task (Windows): Stacktrace: 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Package Plugin Task (Windows): 在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Package Plugin Task (Windows): 在 AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, List1 IniKeyBlacklist, List1 IniSectionBlacklist) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 378
UATHelper: Package Plugin Task (Windows): ERROR: Failed to copy E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_dec.dir\Release\draco_co.9EA33BAC.tlog\draco_compression_attributes_pred_schemes_dec.lastbuildstate to E:\UEProjects\cesium-unreal-samples\Plugins\cesium-un
real\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_dec.dir\Release\draco_co.9EA33BAC.tlog\draco_compression_attributes_pred_schemes_dec.lastbuildstate
UATHelper: Package Plugin Task (Windows): SafeCopyFile Exception was Exception in mscorlib: 未能找到路径“E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_dec.dir\Debug\draco_co.9EA33BAC.tlog\draco_compression_attributes_pre
d_schemes_dec.lastbuildstate”的一部分。
UATHelper: Package Plugin Task (Windows): Stacktrace: 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Package Plugin Task (Windows): 在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Package Plugin Task (Windows): 在 AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, List1 IniKeyBlacklist, List1 IniSectionBlacklist) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 378
UATHelper: Package Plugin Task (Windows): ERROR: Failed to copy E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_dec.dir\Debug\draco_co.9EA33BAC.tlog\draco_compression_attributes_pred_schemes_dec.lastbuildstate to E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unre
al\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_pred_schemes_dec.dir\Debug\draco_co.9EA33BAC.tlog\draco_compression_attributes_pred_schemes_dec.lastbuildstate
UATHelper: Package Plugin Task (Windows): SafeCopyFile Exception was Exception in mscorlib: 未能找到路径“E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_dec.dir\Debug\draco_co.C8B46396.tlog\draco_compression_attributes_dec.lastbuildsta
te”的一部分。
UATHelper: Package Plugin Task (Windows): Stacktrace: 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Package Plugin Task (Windows): 在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Package Plugin Task (Windows): 在 AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, List1 IniKeyBlacklist, List1 IniSectionBlacklist) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 378
UATHelper: Package Plugin Task (Windows): ERROR: Failed to copy E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_dec.dir\Debug\draco_co.C8B46396.tlog\draco_compression_attributes_dec.lastbuildstate to E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostPro
ject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_dec.dir\Debug\draco_co.C8B46396.tlog\draco_compression_attributes_dec.lastbuildstate
UATHelper: Package Plugin Task (Windows): SafeCopyFile Exception was Exception in mscorlib: 未能找到路径“E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_enc.dir\Debug\draco_co.96AA2BF4.tlog\draco_compression_attributes_enc.lastbuildsta
te”的一部分。
UATHelper: Package Plugin Task (Windows): Stacktrace: 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Package Plugin Task (Windows): 在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Package Plugin Task (Windows): 在 AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, List1 IniKeyBlacklist, List1 IniSectionBlacklist) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 378
UATHelper: Package Plugin Task (Windows): ERROR: Failed to copy E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_enc.dir\Debug\draco_co.96AA2BF4.tlog\draco_compression_attributes_enc.lastbuildstate to E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostPro
ject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_enc.dir\Debug\draco_co.96AA2BF4.tlog\draco_compression_attributes_enc.lastbuildstate
UATHelper: Package Plugin Task (Windows): SafeCopyFile Exception was Exception in mscorlib: 未能找到路径“E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_enc.dir\Release\draco_co.96AA2BF4.tlog\draco_compression_attributes_enc.lastbuilds
tate”的一部分。
UATHelper: Package Plugin Task (Windows): Stacktrace: 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Package Plugin Task (Windows): 在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Package Plugin Task (Windows): 在 AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, List1 IniKeyBlacklist, List1 IniSectionBlacklist) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 378
UATHelper: Package Plugin Task (Windows): ERROR: Failed to copy E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_enc.dir\Release\draco_co.96AA2BF4.tlog\draco_compression_attributes_enc.lastbuildstate to E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostP
roject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_enc.dir\Release\draco_co.96AA2BF4.tlog\draco_compression_attributes_enc.lastbuildstate
UATHelper: Package Plugin Task (Windows): SafeCopyFile Exception was Exception in mscorlib: 未能找到路径“E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostProject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_dec.dir\Release\draco_co.C8B46396.tlog\draco_compression_attributes_dec.lastbuilds
tate”的一部分。
UATHelper: Package Plugin Task (Windows): Stacktrace: 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Package Plugin Task (Windows): 在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Package Plugin Task (Windows): 在 AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, List1 IniKeyBlacklist, List1 IniSectionBlacklist) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 378
UATHelper: Package Plugin Task (Windows): ERROR: Failed to copy E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_dec.dir\Release\draco_co.C8B46396.tlog\draco_compression_attributes_dec.lastbuildstate to E:\UEProjects\cesium-unreal-samples\Plugins\cesium-unreal\CesiumForUnreal\HostP
roject\Plugins\CesiumForUnreal\extern\build\cesium-native\extern\draco\draco_compression_attributes_dec.dir\Release\draco_co.C8B46396.tlog\draco_compression_attributes_dec.lastbuildstate

Hi @litar77,

We encountered the issue about visual studio not displaying the source code before. The fix is to open the sample project using editor and through the editor, add an empty C++ class (e.g Empty actor). Then you can see the generate in visual studio option again

For the packaging problem, I’m not sure the cause of it. Does it happen if you package it outside the plugin directory?

Bao

thx,very much。now,I can open the vs slution with all source code files。
But when try to compile the project,a compilation error occurred:

Unhandled exception: System.UnauthorizedAccessException: Access to the path “C:\Program Files\Epic Games\UE_4.26\Engine\Intermediate\EditorRuns\20376” is denied. CesiumForUnrealSamples E:\UEProjects\cesium-unreal-samples\Intermediate\ProjectFiles\UnrealBuildTool 1

I don’t know how to solve this problem.

For the packaging problem,I think this is caused by the file name being too long. If anyone else encounters this problem, I hope Cesium can troubleshoot it again.