About Store Forum Documentation Contact



Post Reply 
Can't build WebJS. Emscripten problem.
Author Message
EsentheLaw Offline
Member

Post: #1
Can't build WebJS. Emscripten problem.
Hey everyone!
The demo was great, so I just bought the engine so I could start building for web.

I installed Emscripten as per the instructions.
Now I'm getting an error which is assume is from VisualStudio saying
WARNING: Platform 'Emscripten' referenced in the project file cannot be found.
The Operation can not be completed.


I searched around about this, but everthing I've found doesn't help or seems to be out of date.

I'm using the new community edition of VS2013, btw. It builds for windows perfectly
Oddly, I get the same warning about Emscripten when I build windows, only it goes on to work.

I got the latest (emsdk-1.29.0-web-64bit.exe) installed.

Any ideas?
Thanks in advance!
02-03-2015 02:23 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Can't build WebJS. Emscripten problem.
Hi,

Thank you for your purchase!

Can you try this?
http://www.esenthel.com/community/showth...7#pid50017

This is about installing VS 2010 first, and then installing Emscripten.
If you'll confirm this works I'll update the documentation, thank you smile
02-03-2015 11:52 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #3
RE: Can't build WebJS. Emscripten problem.
I've updated the Web compiler documentation:
http://www.esenthel.com/?id=doc#Compilers
02-04-2015 12:06 AM
Find all posts by this user Quote this message in a reply
EsentheLaw Offline
Member

Post: #4
RE: Can't build WebJS. Emscripten problem.
(02-04-2015 12:06 AM)Esenthel Wrote:  I've updated the Web compiler documentation:
http://www.esenthel.com/?id=doc#Compilers

Ok. I can try this tomorrow.
So, is Emscripten version 1.29 (current latest) known to work?
I read elsewhere advice to back off to version 1.25. But that could be old.
(Ive actually reverted from 1.29 to 1.25 and that change alone did nothing)

Thanks

Ok I as much as it pains me, I added vs2010.
So first I uninstalled Emscripten (1.25) - Just to be sure.
Installed vs2010.
Reinstalled Emscripten 1.25.

This got me further, but got a few issues:
1>------ Build started: Project: FistyFlight, Configuration: Release Emscripten ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.Redirect.10.props(2​3,3): warning MSB4011: "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Emscripten\Microsoft.Cpp.Emscripten.d​efault.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Default.props (113,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Esenthel\Projects\_Build_\FistyFlight\Project.vcxproj]
1> stdafx.cpp
1> Auto.cpp
1> main.cpp
1>GCCLINK : warning root: Disabling asm.js validation for memory growth (memory can grow, but you lose some amount of speed)
1> In function _ZN5lzham18search_accelerator12find_matchesEjb()
1> void ()* asm sideeffect "pause", ""
1>GCCLINK : LLVM error : asm() with non-empty content not supported, use EM_ASM() (see emscripten.h)
1> Stack dump:
1> 0. Program arguments: C:/Program Files/Emscripten/clang/e1.25.0_64bit\llc c:\users\alienlaw\appdata\local\temp\tmpff5ein\FistyFlight.bc -march=js -filetype=asm -o c:\users\alienlaw\appdata\local\temp\tmpd_643x.4.js -O2 -emscripten-max-setjmps=20
1> 1. Running pass 'JavaScript backend' on module 'c:\users\alienlaw\appdata\local\temp\tmpff5ein\FistyFlight.bc'.
1> Traceback (most recent call last):
1> File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py", line 1578, in <module>
1> _main(environ=os.environ)
1> File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py", line 1566, in _main
1> temp_files.run_and_clean(lambda: main(
1> File "C:\Program Files\Emscripten\emscripten\1.25.0\tools\tempfiles.py", line 39, in run_and_clean
1> return func()
1> File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py", line 1574, in <lambda>
1> DEBUG_CACHE=DEBUG_CACHE,
1> File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py", line 1461, in main
1> jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE)
1> File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py", line 804, in emscript_fast
1> end_funcs = backend_output.rindex(end_funcs_marker)
1> ValueError: substring not found
1> Traceback (most recent call last):
1> File "C:\Program Files\Emscripten\emscripten\1.25.0\\emcc", line 1259, in <module>
1> final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
1> File "C:\Program Files\Emscripten\emscripten\1.25.0\tools\shared.py", line 1464, in emscripten
1> assert os.path.exists(filename + '.o.js'), 'Emscripten failed to generate .js'
1> AssertionError: Emscripten failed to generate .js
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Must be something easy.
And Advice?

Oh BTW, for anyone who needs it, a link to vs2010: http://www.visualstudio.com/downloads/do...-studio-vs
(This post was last modified: 02-04-2015 01:48 AM by EsentheLaw.)
02-04-2015 01:22 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #5
RE: Can't build WebJS. Emscripten problem.
Thanks, I was able to reproduce the problem.
I'm going to try and recompile LZHAM compression library with latest version.
I'll start investigating this right now with first priority.
Thank you for your patience.
02-04-2015 02:22 AM
Find all posts by this user Quote this message in a reply
EsentheLaw Offline
Member

Post: #6
RE: Can't build WebJS. Emscripten problem.
No problem. The fact that you're working on it is all I need to know!

Thanks!
02-04-2015 02:32 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #7
RE: Can't build WebJS. Emscripten problem.
Thanks! smile

I've updated LZHAM to 1.0 final release from Alpha and then recompiled for WEB platform, and confirming that this solved the issue.
Now I'll have to do some final tweaks to LZHAM usage in the engine, adjust projects for Mac/Linux and after recompiling all platforms I'll upload the latest version, If there will be no delays I hope to upload it tomorrow.
02-04-2015 04:41 AM
Find all posts by this user Quote this message in a reply
EsentheLaw Offline
Member

Post: #8
RE: Can't build WebJS. Emscripten problem.
Seems like you may have a few issues to clean up with web build.
I can wait a while.
Give me a holler when your done!!!
02-05-2015 02:24 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #9
RE: Can't build WebJS. Emscripten problem.
Uhm, it's done? pfft
(This post was last modified: 02-05-2015 02:58 PM by Tottel.)
02-05-2015 02:58 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #10
RE: Can't build WebJS. Emscripten problem.
Hi,

Yes it's done smile

I've made a post in version history yesterday, over here:
http://www.esenthel.com/community/showth...1#pid50591
02-05-2015 08:32 PM
Find all posts by this user Quote this message in a reply
EsentheLaw Offline
Member

Post: #11
RE: Can't build WebJS. Emscripten problem.
Nice! !!

So, to be sure:
Emscripten 1.9 (latest ) is OK?
Vs2010 is still required?

Thanks!
02-05-2015 08:56 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #12
RE: Can't build WebJS. Emscripten problem.
Nothing changed regarding VS/Emscripten requirement.

On my system I have Emscripten 1.21, haven't tried newer versions.
02-05-2015 09:12 PM
Find all posts by this user Quote this message in a reply
Post Reply