ue4plugins / VlcMedia

Media Framework plug-in using the Video LAN Codec (libvlc).
BSD 3-Clause "New" or "Revised" License
259 stars 143 forks source link

Having problems building this with UE4.14 #32

Closed reneweiser closed 7 years ago

reneweiser commented 7 years ago

I'm trying to use this as a project plugin. When I try to generate project files I get errors saying that "Plugins\VlcMedia\Source\VlcMedia\VlcMedia.Build.cs(11,19), The Type or Namespacename 'ReadOnlyTargetRules' could not be found for all three *.Build.cs.

Googling the problem revealed that changing the line public VlcMedia(ReadOnlyTargetRules Target) : base(Target) to public VlcMedia(TargetInfo Target) might help. After doing that the BT generates the files just fine, but when I try to start the Editor I get prompted that UE4Editor-VlcMedia.dll, UE4Editor-VlcMediaEditor.dll and UE4Editor-VlcMediaFactory.dll were built with a different engine and if I would like to rebuild them. After confirming I get the error that the project couldnt be compiled and that I should try compiling it manually.

When trying to compile the project in VS2015 I get this error: "[...]VlcMedia\Source\VlcMediaFactory\Private\VlcMediaFactoryModule.cpp' is trying to include the file 'CoreMinimal.h' as the precompiled header, but that file could not be located in any of the module's include search paths."

So right now I dont feel experienced enough to continue troubleshooting on my own since I assume the code of the plugin to be correct. Can someone tell me what I am missing? It would be much appreciated.

Just fyi, I installed vlc-3.0.0-20170411-1225 nightly but I dont feel like that has anything to do with my issue anyway.

gmpreussner commented 7 years ago

Did you pull the 4.14 tag of VlcMedia into your project? The code at head revision requires 4.16 and will not work with 4.14. Make sure you get the right version.

gmpreussner commented 7 years ago

Also, you don't need to install VLC on Windows and macOS. All required libraries are included.

reneweiser commented 7 years ago

I tried again with the code you linked and it worked. Thank you. Consider the issue resolved.