Python 2.* should work. If that exec failed, then perhaps the code in ~/.emscripten was written in a non-Python-2.* compatible manner? Is that bad-looking text, "shared.Settings.-std = c++03", inside that file?
On Sat, Oct 17, 2015 at 8:51 AM, Flix <[email protected]> wrote: > Hi. > I've just installed emsdk and it seems to work with some basic c and cpp > files (from the tests folder). > > I've tried compiling something bigger and I got: > > WARNING root: (Emscripten: settings file has changed, clearing cache) >> INFO root: (Emscripten: Running sanity checks) >> WARNING root: emcc: cannot find library "X11" >> WARNING root: emcc: cannot find library "stdc++" >> Traceback (most recent call last): >> File "/media/me/emsdk/emscripten/tag-1.34.1/emcc", line 887, in <module> >> exec('shared.Settings.' + key + ' = ' + value) >> File "<string>", line 1 >> shared.Settings.-std = c++03 >> ^ >> SyntaxError: invalid syntax >> > > This happens when in .emscripten PYTHON is commented out, or when I set it > to /usr/bin/python2.7. > If I change it to /usr/bin/python3.4 I get this error message instead: > > File "/media/me/emsdk/emscripten/tag-1.34.1/emcc", line 154 >> ''' % (open(shared.path_from_root('site', 'build', 'text', 'docs', >> 'tools_reference', 'emcc.txt')).read()) >> ^ >> SyntaxError: invalid syntax >> > > Which Python version am I supposed to use ? > > -- > 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
