UMediaPlayer does not compile with visual studio
I'm trying to get a UMediaPlayer variable in visual studio. Here are the errors I get: https://gist.github.com/fornof/c6657e18eb1d4090b29c1195821e5d3e This is basically saying it cannot find a source .generated file
Commenting this out compiles the solution:
I have this in the Project.Build.cs:
I tried this but it did not work: https://answers.unrealengine.com/questions/740950/cannot-open-source-file-namegeneratedh.html
This is my Actor cpp: https://gist.github.com/fornof/f78211e5242f5fb050874a947e0e7726 This is my Actor .h : https://gist.github.com/fornof/fbb542c7ff8f0a0b1598b4777b3ae99e
Do I need to build the engine from source to get rid of the .generated files not being found?
I found this suggesting that the .h files compile unless there is something wrong with them: https://www.reddit.com/r/unrealengine/comments/6maxct/help_uclassgeneratedh_issue/ could I be referencing UMediaPlayer incorrectly? Any help would be appreciated. Thanks
Edit: I found the issue: my .h file had copied code in it at the bottom. I found and removed it and now everything works fine.
Build.cs was my issue, I included "MediaPlayer" in it and it builds now.
answered Aug 30 '18 at 09:06 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here