The fixed pipeline OpenGL emulation layer was implemented bottom up for minimal amount of features that were needed at the time to build some projects. It was never an attempt to provide a complete fixed pipeline emulation layer, and there has been no progress on it in a while. If you do need more fixed pipeline features, try to see how far you can get by compiling against the Regal project, which implements fixed pipeline GL on top of GLES2.
For slow build times, you could try to take a peek at the emprofile.py toolchain profiler script ( https://github.com/kripken/emscripten/blob/master/site/source/docs/optimizing/Profiling-Toolchain.rst) to see which parts of the compilation are slowest. That sometimes can suggest how to change linker flags in a way to find good build flags for quick iteration, vs the most optimised flags for release. 2017-01-10 7:40 GMT+02:00 BGB <cr88...@gmail.com>: > On 1/9/2017 11:07 PM, BGB wrote: > >> On 1/9/2017 10:06 PM, Charles Vaughn wrote: >> >>> optimizer.exe is run from multiple workers in a chunked fashion. I would >>> recommend you build emscripten from scratch so you can take advantage of >>> the latest version. >>> >>> I would also recommend Ninja over make, but you'll need to switch to a >>> CMake project, though that has the benefit of being able to generate both >>> ninja projects and Visual Studio ones from the same source. >>> >>> >> the Windows 'emsdk' tool seems to list 1.35.0 as latest. >> trying to build the Linux version in WS4L, which has 1.37.1 available. >> >> had to manually upgrade CMake, as the "latest" version it had was IIRC >> 2.8.1, but LLVM seemed to want a minimum of 3.4.3... >> >> downloaded CMake, now building with 3.7.1, seems to be working, and at >> least thus far it doesn't seem I am having to do the usual thing of chasing >> down and installing dependencies. the "dependency dance" is IMO probably >> one of the main annoyances of trying to rebuild most FOSS stuff from source. >> >> >> trying to build project with newly built emcc: >> <--- >> asm2wasm: >> /home/bgb/.emscripten_ports/binaryen/binaryen-version_21/src/asm2wasm.h:2066: >> wasm::Asm2WasmBuilder::processFunction(cashew::Ref)::__lambda15: >> Assertion `index >= 0' failed. >> Traceback (most recent call last): >> File "/home/bgb/emsdk_portable/emscripten/master/emcc", line 13, in >> <module> >> emcc.run() >> File "/home/bgb/emsdk_portable/emscripten/master/emcc.py", line 2099, >> in run >> subprocess.check_call(cmd, stdout=open(wasm_text_target, 'w')) >> File "/usr/lib/python2.7/subprocess.py", line 540, in check_call >> raise CalledProcessError(retcode, cmd) >> subprocess.CalledProcessError: Command '[u'/home/bgb/.emscripten_port >> s/binaryen/binaryen-version_21/bin/asm2wasm', 'deeptail0.asm.js', >> '--total-memory=536870912', '-O3', '--mem-init=deeptail0.html.mem', >> '--mem-base=1024', '--wasm-only']' returned non-zero exit status -6 >> ---> >> >> ( this appears to have to do with compiling switch() statements or >> similar... ) >> >> > ADD: > > it still works if I don't use WASM though, but I would like to be able to > use WASM. > > a quick skim of the code didn't see anything obviously amiss, so don't > know how to fix it on my end (not entirely sure how that assert can fail, > logic implies it probably shouldn't fail). > > ( though, FWIW, the codebase does have a few relatively large switch > statements in it, ... ) > > > as for build speeds (with WASM disabled): > "make": 2 minutes; > "make -j": 36 seconds. > > I will regard this as an improvement (so, normal/full = 10 min -> 2 min; > make -j = 2 min -> 36 sec). > > > quick tests, it appears a lot of the OpenGL related issues still exist > though (at least the more obvious ones). > > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to emscripten-discuss+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.