Windows 64 packaging succeeds, but 32 bit and HTML5 fails
I've tried to google it for a while now, but haven't found any solutions that work for me.
I see there are a lot of warnings about some BINARYEN, and an assert failure claiming "--separate-asm requires building to HTML", but googling it have left me no wiser.
This one just as a long expception message that I can't really decipher. Googling the entire string obviously doesn't work, and I can't find any significant part of it that answers what the problem is either.
And here's the log for the successful build, if that helps.
EDIT: It's also worth mentioning that I can package for these platform with a fresh, blank C++ project. It's only after I start adding content and classes that these issues show themselves. It's happened in another project too, so I might be doing something codewise that's ignored for Windows 64, but not for other platforms.
I found the source of the HTML5 issue.
I did eventually manage to update the emscripten version to 1.37.16, all I needed was to restart my computer after I'd updated the version and the environment variables through the Emscripten Command Prompt with these commands:
However, this was not the issue. Even when using 1.37.16, it failed to package. It did get rid of the "BINARYEN" warnings, but it still found an error when it got to the main project CPP compilation.
What I did notice was that when I launched the project, I got the warning about "Class None" not being a valid class. This error turned out to come from the fact that the engine had no tutorial set, and this was what prevented me from packaging for HTML5. By going to Tutorials under the "Engine" tab in the Project Settings and setting the tutorial to EditorTutorial rather than None, I fixed the issue and am now able to package for HTML5.
I still can't package for Windows 32 however, and I noticed that I can't even package a blank template project for windows 32. Given that the two issues are not related, I have decided to resolve this question and separate the Windows 32 issue to a new question.
For anyone who finds this later looking for a solution to the Windows 32 issue, hopefully my other question will have been resolved by then. You can go here to see if it has:
Okay ! I found it, it's due to Emscripten version used bu UE4. Make sure to use an updated version of Emscripten and choose 1.37.16 version of it when compiling project.
answered Aug 02 '17 at 11:44 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here