re-distribute/package emscripten-sdk with a commercial app.

2016-09-19 Thread kajinor
Hello community, I just have a short question about emscripten's license model, especially because emscripten has a lot of dependencies I think. Is it allowed to re-distribute/package the emscripten-sdk+compiler, like emsdk-portable package, together with a closed-source commercial application?

Re: emsdk: CERTIFICATE_VERIFY_FAILED on Debian with python 2.7.12

2016-09-19 Thread Floh
I haven't seen the certificate problem on OSX yet (I'm currently on the latest MacOS Sierra prerelease-version). However I'm not using the standard python version coming with OSX (which is 2.7.10), but use the brew version 2.7.12. I have also openssl installed via brew (although not directly mu

Re: emsdk: CERTIFICATE_VERIFY_FAILED on Debian with python 2.7.12

2016-09-19 Thread Floh
PS: I also cannot reproduce the problem when going back to MacOS 10.12's default python installation, installing and './emsdk update' both work: ➜ emsdk_portable python -c "import ssl; print ssl.OPENSSL_VERSION" OpenSSL 0.9.8zh 14 Jan 2016 ➜ emsdk_portable python --version Python 2.7.10 ➜ emsd

Re: re-distribute/package emscripten-sdk with a commercial app.

2016-09-19 Thread Jukka Jylänki
Yes! Not only is it allowed, we definitely encourage it. Feel free to bundle emsdk into your closed source commercial applications, that is the intention of the embedded emsdk structure. See the specific license of Emscripten in https://github.com/kripken/emscripten/blob/master/LICENSE. Note though

Re: emsdk: CERTIFICATE_VERIFY_FAILED on Debian with python 2.7.12

2016-09-19 Thread Matt Wallis
On Monday, September 19, 2016 at 12:28:53 PM UTC+1, Floh wrote: > > PS: I also cannot reproduce the problem when going back to MacOS 10.12's > default python installation, installing and './emsdk update' both work: > > ➜ emsdk_portable python -c "import ssl; print ssl.OPENSSL_VERSION" > OpenSSL 0

Re: emsdk: CERTIFICATE_VERIFY_FAILED on Debian with python 2.7.12

2016-09-19 Thread Matt Wallis
On Monday, September 19, 2016 at 10:44:21 AM UTC+1, Floh wrote: > > > > python -c "import ssl; print ssl.OPENSSL_VERSION" > > ...which in my case prints: > > OpenSSL 1.0.2h 3 May 2016 > Thanks for the suggestion. I get the same response (1.0.2h), which verifies that the python used via my PATH

Re: re-distribute/package emscripten-sdk with a commercial app.

2016-09-19 Thread Shlomi Fish
Hi kajinor, On Mon, 19 Sep 2016 02:26:03 -0700 (PDT) kajinor wrote: > Hello community, > > I just have a short question about emscripten's license model, especially > because emscripten has a lot of dependencies I think. Is it allowed to > re-distribute/package the emscripten-sdk+compiler, li

Passing array of objects to Javascript function from C?

2016-09-19 Thread Robert Goulet
Hi, How do we pass an array of objects to Javascript function from C? Consider the following example: struct data { double a; int b; unsigned char c; }; std::vector my_data; EM_ASM_ARGS({ var data_array = ??? process_data(data_array); }, my_data); Is this possible? I could

Re: Passing array of objects to Javascript function from C?

2016-09-19 Thread Alon Zakai
The most efficient way is to send the pointer into EM_ASM, then do reads directly to memory using the right offsets, but that requires using information about how the data is laid out in memory (on the plus side, the alignment rules are the natural 32-bit ones, with fully aligned doubles). Otherwi