Project won't compile emscripten code
I've been brought onto a project with some specific goals: it is a game to be packaged for HTML5 deployment and the game needs to be able to talk to the chrome API for certain calls (Specifically, for the webkitSpeechRecognition object). In my original investigation on how to do this, it looked like emscripten was capable of the task (link here).
The project is a blueprints project, and so my thought was to make a set of functions in c++ that make the required calls to chrome and then call those from blueprints. However, even though the UE4 project apparently packages with emscripten, it won't let me compile the c++ code in the project because it doesn't "recognize" the emscripten macros.
Since it can't compile, I can't make the blueprints side recognize the function that I've written.
I will be greatly appreciative to anyone who can help with this. I can't be the only one who's trying to do this. Thanks!
It's a bit late but I stumbled across this question this post while trying to solve a similar problem so I thought I'd share my solution: https://forums.unrealengine.com/showthread.php?119332-js-c-communication&p=576340#post576340
Only tested it with UE 4.12
answered Aug 08 '16 at 11:51 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here