smilingrob
(Robert Wallis)
November 26, 2014, 4:02am
1
Whether trying to build from 4.6-preview or the 4.6 branch I get the same error when building on Mac
[527/698] Compile Module.AvfMedia.cpp
In file included from /Users/robert/Dev/UnrealEngine/Engine/Intermediate/Build/Mac/UE4Editor/Debug/Plugins/Dynamic/AvfMedia/Module.AvfMedia.cpp:2:
/Users/robert/Dev/UnrealEngine/Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/AvfMediaModule.cpp:3:10: fatal error: 'AVFMediaPrivatePCH.h' file not found
#include "AVFMediaPrivatePCH.h"
Any ideas what this is? Maybe something isn’t being downloaded in the Setup.sh
?
smilingrob
(Robert Wallis)
November 26, 2014, 4:06am
2
Also the file does exist but the compiler isn’t finding it:
$ find . -iname "AVFMedia*"
./Engine/Intermediate/Build/Mac/UE4Editor/Debug/Plugins/Dynamic/AvfMedia
./Engine/Plugins/Media/AvfMedia
./Engine/Plugins/Media/AvfMedia/AvfMedia.uplugin
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/AvfMedia.Build.cs
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/AvfMediaModule.cpp
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/AvfMediaPrivatePCH.h
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/Player/AvfMediaPlayer.cpp
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/Player/AvfMediaPlayer.h
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/Tracks/AvfMediaAudioTrack.h
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/Tracks/AvfMediaCaptionTrack.h
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/Tracks/AvfMediaTrack.cpp
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/Tracks/AvfMediaTrack.h
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/Tracks/AvfMediaVideoTrack.cpp
./Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/Tracks/AvfMediaVideoTrack.h
AvfMedia.Build.cs even includes what seems to be the correct path:
PrivateIncludePaths.AddRange(
new string[] {
"AvfMedia/Private",
"AvfMedia/Private/Player",
"AvfMedia/Private/Tracks",
}
);
smilingrob
(Robert Wallis)
November 26, 2014, 4:21am
3
A workaround is removing it from the whitelist in the plugin file AvfMedia.uplugin
.
diff --git a/Engine/Plugins/Media/AvfMedia/AvfMedia.uplugin b/Engine/Plugins/Media/AvfMedia/AvfMedia.uplugin
index 2422010..6b068b4 100644
--- a/Engine/Plugins/Media/AvfMedia/AvfMedia.uplugin
+++ b/Engine/Plugins/Media/AvfMedia/AvfMedia.uplugin
@@ -18,7 +18,7 @@
"Name" : "AvfMedia",
"Type" : "Runtime",
"LoadingPhase" : "PreLoadingScreen",
- "WhitelistPlatforms" : [ "IOS", "MAC" ]
+ "WhitelistPlatforms" : [ ]
}
],
smilingrob
(Robert Wallis)
November 26, 2014, 8:51pm
4
The problem is that I have a case-insensitive file system on my Mac. And the filename was “Avf…” not “AVF…”
Pull Request:
https://github.com/EpicGames/UnrealEngine/pull/634/files
Thanks Rob! Merged in CL# 2387202 (GitHub Commit )