# Package Plugin Task failed！

**URL:** <https://community.cesium.com/t/package-plugin-task-failed/13301>\
**Category:** Cesium for Unreal\
**Created:** [April 22, 2021, 5:18am UTC](https://community.cesium.com/t/package-plugin-task-failed/13301 "2021-04-22T05:18:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![litar77](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/litar77/32/4761_2.png) [@litar77](https://community.cesium.com/u/litar77)\
**Post date:** [April 22, 2021, 5:18am UTC](https://community.cesium.com/t/package-plugin-task-failed/13301/1 "2021-04-22T05:18:07Z")

</div>

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](https://global.discourse-cdn.com/cesium/original/2X/0/0d50791b5edfd587c7cceda8b4b0bda235b8cf29.png)  
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

 ![image](https://global.discourse-cdn.com/cesium/original/2X/c/c16063d8df71f58a8858f77591b076823bab1c0c.png)  
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

---

<div class="post-metadata">

**Author:** ![BaoTran](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@BaoTran](https://community.cesium.com/u/BaoTran)\
**Post date:** [April 22, 2021, 9:11pm UTC](https://community.cesium.com/t/package-plugin-task-failed/13301/2 "2021-04-22T21:11:57Z")

</div>

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](https://github.com/CesiumGS/cesium-unreal). After that, it should work correctly. Please let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![litar77](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/litar77/32/4761_2.png) [@litar77](https://community.cesium.com/u/litar77)\
**Post date:** [April 24, 2021, 11:28am UTC](https://community.cesium.com/t/package-plugin-task-failed/13301/3 "2021-04-24T11:28:40Z")

</div>

thans for your replay

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

 ![image](https://global.discourse-cdn.com/cesium/original/2X/c/cd9781b97c5ca731d1c835e0482a1a24bc45754a.png)  
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

 ![image](https://global.discourse-cdn.com/cesium/original/2X/3/3d1ed97fd6aa11f4604d522486fdd0e1423d9a64.png)

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](https://global.discourse-cdn.com/cesium/original/2X/0/0ae82d65e58689c688191bba12bf1cc16a94b72c.png)

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

 ![image](https://global.discourse-cdn.com/cesium/original/2X/0/0e090443370b596408e4d62f572bc8ba773743ee.png)

How can I generate the plugin sln file？

---

<div class="post-metadata">

**Author:** ![litar77](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/litar77/32/4761_2.png) [@litar77](https://community.cesium.com/u/litar77)\
**Post date:** [April 24, 2021, 2:16pm UTC](https://community.cesium.com/t/package-plugin-task-failed/13301/4 "2021-04-24T14:16:43Z")

</div>

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

 ![image](https://global.discourse-cdn.com/cesium/original/3X/0/5/0597976140e52667560529a80e74bb72d1e661fa.png)  
ue4 has a lot of errors  
 ![image](https://global.discourse-cdn.com/cesium/original/2X/0/0d12a69b4acd1a7f36b12c437b712fab320ce968.png)

UATHelper: Package Plugin Task (Windows): Stacktrace: 在 [System.IO](http://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, List`1 IniKeyBlacklist, List`1 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](http://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, List`1 IniKeyBlacklist, List`1 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](http://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, List`1 IniKeyBlacklist, List`1 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](http://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, List`1 IniKeyBlacklist, List`1 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](http://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, List`1 IniKeyBlacklist, List`1 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](http://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, List`1 IniKeyBlacklist, List`1 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](http://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, List`1 IniKeyBlacklist, List`1 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](http://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, List`1 IniKeyBlacklist, List`1 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

---

<div class="post-metadata">

**Author:** ![BaoTran](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@BaoTran](https://community.cesium.com/u/BaoTran)\
**Post date:** [April 26, 2021, 1:37pm UTC](https://community.cesium.com/t/package-plugin-task-failed/13301/5 "2021-04-26T13:37:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![litar77](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/litar77/32/4761_2.png) [@litar77](https://community.cesium.com/u/litar77)\
**Post date:** [April 29, 2021, 12:45pm UTC](https://community.cesium.com/t/package-plugin-task-failed/13301/6 "2021-04-29T12:45:57Z")

</div>

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.
