# WmfMedia don't let me to package my game

**URL:** <https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331>\
**Category:** Platform & Builds\
**Tags:** error, source-build, unreal-engine, Packaging, packaging-projects, question\
**Created:** [May 17, 2018, 1:26pm UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331 "2018-05-17T13:26:53Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a53f035c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a53f035c](https://forums.unrealengine.com/u/anonymous_user_a53f035c)\
**Post date:** [May 17, 2018, 1:26pm UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/1 "2018-05-17T13:26:53Z")

</div>

Hey guys!

I have an issue packing my game it always end up with error at the same point.

Tested on:

- UE 4.19
- UE 4.18

The error says:

```
UATHelper: Packaging (Windows (64-bit)): ERROR: UBT ERROR: Failed to produce item: C:\UnrealEngine-4.18\Engine\Plugins\Media\WmfMedia\Binaries\Win64\UE4-WmfMedia.lib
UATHelper: Packaging (Windows (64-bit)): Total build time: 1662.75 seconds (Local executor: 0.00 seconds)
UATHelper: Packaging (Windows (64-bit)): Took 1663.0043994s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): ERROR: Command failed (Result:5): C:\UnrealEngine-4.18\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Win64 Development -NoUBTMakefiles -remoteini="C:\Users\grzes\Documents\Unreal Projects\test" -skipdeploy -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2018.05.17-13.29.35.txt' 
UATHelper: Packaging (Windows (64-bit)): (see C:\UnrealEngine-4.18\Engine\Programs\AutomationTool\Saved\Logs\UAT_Log.txt for full exception trace)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

```

This have been tested on a clean TopDown project without any changes made.

What I did exactly:

1. Create new project based on TopDown template
2. Change package settings to include TopDown map (only this config array was changed nothing else)
3. Run package for Win64

Both UE engines were source build.

Please help me out here I am stuck real hard.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a53f035c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a53f035c](https://forums.unrealengine.com/u/anonymous_user_a53f035c)\
**Post date:** [May 18, 2018, 11:18am UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/2 "2018-05-18T11:18:03Z")

</div>

What I found so far is that the problem (at least for me) occur only when using Visual Studio 2017. And I’d need to point out that I used GenerateProjectFiles.bat with flag -2017 when building UE4 source code.

---

<div class="post-metadata">

**Author:** ![ZachasPlays](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZachasPlays](https://forums.unrealengine.com/u/ZachasPlays)\
**Post date:** [May 23, 2018, 6:06am UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/3 "2018-05-23T06:06:39Z")

</div>

I’ve got the same problem, do you have a solution?

ERROR: UBT ERROR: Failed to produce item: C:\Unreal\UnrealEngine-release\Engine\Plugins\Media\WmfMedia\Binaries\Win64\CleanThirdPersonClient-WmfMedia.lib

---

<div class="post-metadata">

**Author:** ![Frigerius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frigerius](https://forums.unrealengine.com/u/Frigerius)\
**Post date:** [May 24, 2018, 11:08pm UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/4 "2018-05-24T23:08:52Z")

</div>

Can reproduce the same error on 4.19.2 with VS2017 15.7.2.  
Ok rebuilding the engine with VS2015 and rebuiding the project with VS2015 it succeeds. Also a friend of mine using an older version of VS2017 was able to build, so it this error looks version related … would be rly happy if someone has a fix for this.

---

<div class="post-metadata">

**Author:** ![testo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@testo](https://forums.unrealengine.com/u/testo)\
**Post date:** [May 26, 2018, 11:56am UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/5 "2018-05-26T11:56:15Z")

</div>

OK guys I found 2 threads on Unreal Engine Issue site that seem to be the same problem as we have. Please vote on them so the UE4 crew know that its kinda important issue.

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-59150)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-59234)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_14bc3250](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_14bc3250](https://forums.unrealengine.com/u/anonymous_user_14bc3250)\
**Post date:** [May 29, 2018, 10:44am UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/6 "2018-05-29T10:44:00Z")

</div>

I got the same error on 4.18.3 with VS2017 15.7.2:

3\>ERROR : UBT error : Failed to produce item: D:\UnrealEngine\Engine\Plugins\Media\WmfMedia\Binaries\Win64\UE4-WmfMedia.lib

3\>Total build time: 5.42 seconds (Local executor: 0.00 seconds)

3\>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command “…..\Build\BatchFiles\Build.bat UE4Game Win64 DebugGame -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.

3\>Done building project “UE4.vcxproj” – FAILED.

This only happens if I build with “DebugGame” configuration. When I used “Debug Editor” configuration, it works fine.

I’ve tried to clean and rebuild it for many times, but no luck.

Any solution?

---

<div class="post-metadata">

**Author:** ![Frigerius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frigerius](https://forums.unrealengine.com/u/Frigerius)\
**Post date:** [May 29, 2018, 10:52am UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/7 "2018-05-29T10:52:35Z")

</div>

Use VS2015 and wait for a fix, so vote for the linked issues.

---

<div class="post-metadata">

**Author:** ![testo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@testo](https://forums.unrealengine.com/u/testo)\
**Post date:** [June 1, 2018, 10:39am UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/8 "2018-06-01T10:39:03Z")

</div>

OK guys, I downloaded the engine from github , version 4.20 and successfully packaged a blank project, had one additional error though : [Cannot build project (UBT ERROR) - Platform & Builds - Unreal Engine Forums](https://answers.unrealengine.com/questions/397021/cannot-build-project-ubt-error.html)  
All I needed to do to fix that, was to delete created earlier binaries and built them again, after this, project packaged successfully.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0df12f74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0df12f74](https://forums.unrealengine.com/u/anonymous_user_0df12f74)\
**Post date:** [June 1, 2018, 3:03pm UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/9 "2018-06-01T15:03:46Z")

</div>

If you ever have trouble with this in the future and aren’t explicitly using the WMF Media Player plugin in your game, from the main menu go to Edit-\>Plugins then select the Media Players section on the left and uncheck the Enabled box for the plugin.

It seems there was a bug introduced in 4.19 that is causing issues for some people, so it’s good to hear 4.20 has fixed the issue.

---

<div class="post-metadata">

**Author:** ![NorthWeapon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NorthWeapon](https://forums.unrealengine.com/u/NorthWeapon)\
**Post date:** [June 7, 2018, 5:58pm UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/10 "2018-06-07T17:58:27Z")

</div>

I got the same error as well!

```
[458/464] Link Krieg-OculusInput.lib
[459/464] Link Krieg-ExampleDeviceProfileSelector.lib
[460/464] Link Krieg-CharacterAI.lib
[461/464] Link Krieg-RuntimePhysXCooking.lib
[462/464] Link Krieg-WindowsMoviePlayer.lib
ERROR: UBT ERROR: Failed to produce item: D:\UnrealEngineSource\Engine\Plugins\Media\WmfMedia\Binaries\Win64\Krieg-WmfMedia.lib
Total build time: 1293.23 seconds (Local executor: 0.00 seconds)

```

My guess is there is an issue loading the Windows Media File plugin when using Visual Studio 2017. As you can see from the 4.20 changelog for Unreal Engine, Visual Studio 2017 is now officially the default VS version for projects:

> Core Updates:  
> Visual Studio 2017. UE4 will now use the Visual Studio 2017 compiler, and generate project files for Visual Studio  
> 2017 by default. We’ve also added support for the Windows 10 SDK.

---

<div class="post-metadata">

**Author:** ![0lento\_archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0lento\_archive](https://forums.unrealengine.com/u/0lento_archive)\
**Post date:** [July 14, 2018, 11:28am UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/11 "2018-07-14T11:28:43Z")

</div>

Anyone affected by this, could you try and see if the change from [https://github.com/EpicGames/UnrealEngine/commit/3618d96b476b32d68c3d5a7ed3b90163a062da79#diff-1d6db60a63ecee034537431e85198c73](https://github.com/EpicGames/UnrealEngine/commit/3618d96b476b32d68c3d5a7ed3b90163a062da79#diff-1d6db60a63ecee034537431e85198c73) helps for this? I looked at 4.20 changes on WmfMedia and that was only thing that looked related to this. I tried to repro the build error with few VS2017 without success (my 4.19.2 builds just fine regardless) so I can’t tell if this fix helps for those who has this issue.

---

<div class="post-metadata">

**Author:** ![SmoothMoovGreg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SmoothMoovGreg](https://forums.unrealengine.com/u/SmoothMoovGreg)\
**Post date:** [July 21, 2018, 6:38pm UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/12 "2018-07-21T18:38:36Z")

</div>

I just had this error when switching over to a new PC. This is an easy fix. Go to your project, in the menu, go to Edit, Plugins. Search for the WmfMedia plugin. Make sure the Enable checkbox is unchecked. Your package should build now.

---

<div class="post-metadata">

**Author:** ![SmoothMoovGreg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SmoothMoovGreg](https://forums.unrealengine.com/u/SmoothMoovGreg)\
**Post date:** [July 25, 2018, 10:54pm UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/13 "2018-07-25T22:54:21Z")

</div>

Actually, searching for WmfMedia in the plugins sections doesn’t work. In the Plugins menu, scroll down to Media Players, click on it, find the WMF Media Plugin and disable it.

---

<div class="post-metadata">

**Author:** ![be-cat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/be-cat/32/903596_2.png) [@be-cat](https://forums.unrealengine.com/u/be-cat)\
**Post date:** [August 14, 2018, 2:18am UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/14 "2018-08-14T02:18:12Z")

</div>

you can try to setup VC++2015.3 v14.00(V140)toolset desktop in the Visual Studio 2017 individual components.

---

<div class="post-metadata">

**Author:** ![think01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/think01/32/713467_2.png) [@think01](https://forums.unrealengine.com/u/think01)\
**Post date:** [December 19, 2018, 1:04pm UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/15 "2018-12-19T13:04:41Z")

</div>

This worked for me too (UE 4.19.2, latest VisualStudio). Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3f422bcf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3f422bcf](https://forums.unrealengine.com/u/anonymous_user_3f422bcf)\
**Post date:** [January 16, 2019, 11:08am UTC](https://forums.unrealengine.com/t/wmfmedia-dont-let-me-to-package-my-game/425331/16 "2019-01-16T11:08:08Z")

</div>

What if I need that plugin? It works in editor
