Try uninstalling Emscripten SDK altogether, and clear up the directory
C:\Program
Files\Emscripten and reinstall the 1.22.0 SDK. Does that help?


2014-08-18 9:28 GMT+03:00 Rupali Roychoudhury <[email protected]>:

> Hi JJ
>
> I have upgraded Emscripten. After that in cmd prompt, under the directory
> C:\Users\t_chouru\zlib\build_release>  i type: emcmake cmake
> -DCMAKE_BUILD_TYPE=Release ..
> However, i still get the message :
> Traceback (most recent call last):
>   File "C:\Program Files\Emscripten\emscripten\1.21.0\\emcmake", line 7,
> in <mod
> ule>
>     exit(subprocess.call([configure_path] + sys.argv[1:]))
>   File "C:\Python27\lib\subprocess.py", line 524, in call
>     return Popen(*popenargs, **kwargs).wait()
>   File "C:\Python27\lib\subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "C:\Python27\lib\subprocess.py", line 948, in _execute_child
>     startupinfo)
> WindowsError: [Error 193] %1 is not a valid Win32 application
>
> I think the trackback is still going to emscripten 1.21.0 version. How do
> I make it point to the new version?
>
> From
> Rupali
>
> On Friday, August 15, 2014 5:43:04 PM UTC+8, jj wrote:
>
>> Can you try upgrading to Emscripten 1.22.0? I think that has improved the
>> error message for that particular error. For example, when I run 'emcmake
>> a_dummy_file.txt', I get the following error:
>>
>> ERROR    root: Exception thrown when invoking Popen in configure with
>> args: "a_dummy_file.txt"!
>> Traceback (most recent call last):
>>   File "C:\Projects\emsdk_uqm\emscripten\incoming\emconfigure", line 24,
>> in <module>
>>     shared.Building.configure(sys.argv[1:])
>>   File "C:\Projects\emsdk_uqm\emscripten\incoming\tools\shared.py", line
>> 1048, in configure
>>     process = Popen(args, stdout=stdout, stderr=stderr, env=env)
>>   File "C:\Projects\emsdk_uqm\python\2.7.5.3_64bit\lib\subprocess.py",
>> line 711, in __init__
>>     errread, errwrite)
>>   File "C:\Projects\emsdk_uqm\python\2.7.5.3_64bit\lib\subprocess.py",
>> line 948, in _execute_child
>>     startupinfo)
>> WindowsError: [Error 193] %1 is not a valid Win32 application
>>
>> The key is that the very first ERROR message lets you debug what it is
>> it's trying to run.
>>
>> Also, try just typing 'cmake'. Does that print you the cmake help line
>> with version information? If not, can you double-check the installation of
>> cmake, and make sure it is set in PATH?
>>
>>
>> 2014-08-15 12:08 GMT+03:00 Rupali Roychoudhury <[email protected]>:
>>
>> Hi jj,
>>>
>>> This is what i get when i type emcmake cmake -DCMAKE_BUILD_TYPE=Release
>>> .. in C:\Users\t_chouru\zlib\build_release> ----:
>>>
>>>
>>> Traceback (most recent call last):
>>>   File "C:\Program Files\Emscripten\emscripten\1.21.0\\emcmake", line
>>> 7, in <mod
>>> ule>
>>>     exit(subprocess.call([configure_path] + sys.argv[1:]))
>>>   File "C:\Python27\lib\subprocess.py", line 524, in call
>>>     return Popen(*popenargs, **kwargs).wait()
>>>   File "C:\Python27\lib\subprocess.py", line 711, in __init__
>>>     errread, errwrite)
>>>   File "C:\Python27\lib\subprocess.py", line 948, in _execute_child
>>>     startupinfo)
>>> WindowsError: [Error 193] %1 is not a valid Win32 application
>>>
>>>
>>> I am new to python. I do not know how to debug this. What is your
>>> solution to this problem?
>>> Looking forward to your reply
>>>
>>> From
>>> Rupali
>>>
>>> On Wednesday, August 13, 2014 3:02:04 PM UTC+8, jj wrote:
>>>
>>>> Try debugging where and why the /bin/env comes from. It may be a setup
>>>> inconsistency or an Emscripten bug, I don't know for certain. Or try to see
>>>> if you can install a python2 in the Cygwin setup. emcmake or emconfigure
>>>> should neither call to /bin/env/python2 on Windows when executing outside
>>>> Cygwin.
>>>>
>>>>
>>>> 2014-08-13 9:55 GMT+03:00 Rupali Roychoudhury <[email protected]>:
>>>>
>>>> Hi jj
>>>>>
>>>>> Yes I am on windows. I have installed Cygwin and it is not specified
>>>>> under the PATH variable. I have also replaced "emcmake" with 
>>>>> "emconfigure",
>>>>> however I am still getting "/bin/env: python2: No such file or
>>>>> directory" message. What is your suggestion?
>>>>>
>>>>> Looking forward to your reply
>>>>> from
>>>>> Rupali
>>>>>
>>>>>
>>>>> On Wednesday, August 13, 2014 2:18:17 PM UTC+8, jj wrote:
>>>>>
>>>>>> It is referring to '/bin/env'... re you on Windows? Do you have
>>>>>> Cygwin or MSYS installed and have that in PATH? If so, try removing those
>>>>>> from PATH in case it's accidentally using that environment. Also, try
>>>>>> replacing 'emcmake' with 'emconfigure' in that line if that might change
>>>>>> the output.
>>>>>>
>>>>>>
>>>>>> 2014-08-13 6:34 GMT+03:00 Rupali Roychoudhury <[email protected]>:
>>>>>>
>>>>>> Hi jj,
>>>>>>>
>>>>>>> Thank you for the solution. However when i type the command
>>>>>>> : emcmake cmake -DCMAKE_BUILD_TYPE=Release ..  i get the following 
>>>>>>> message "/bin/env:
>>>>>>> python2: No such file or directory" how do i solve this?
>>>>>>>
>>>>>>> Looking forward to your reply
>>>>>>>
>>>>>>> From
>>>>>>> Rupali
>>>>>>>
>>>>>>> On Tuesday, August 12, 2014 7:32:55 PM UTC+8, jj wrote:
>>>>>>>
>>>>>>>> It sounds like you copied a prebuilt Windows static library? That
>>>>>>>> won't work, since Emscripten is a cross-compiler. This means that it
>>>>>>>> compiles code on your host system (Windows) to run on another target 
>>>>>>>> system
>>>>>>>> (JS VM). As a result of that, any code that is compiled with the native
>>>>>>>> compiler to be executed on a native Windows system is unusable for
>>>>>>>> Emscripten, since the compilation targets are different.
>>>>>>>>
>>>>>>>> To resolve this, you'll need to download the zlib source tree and
>>>>>>>> build zlib from source using emcc. zlib has CMake build support, so 
>>>>>>>> you can
>>>>>>>> use that. Try e.g.
>>>>>>>>
>>>>>>>> git clone https://github.com/madler/zlib.git
>>>>>>>> cd zlib
>>>>>>>> mkdir build_release
>>>>>>>> cd build_release
>>>>>>>> emcmake cmake -DCMAKE_BUILD_TYPE=Release ..
>>>>>>>> mingw32-make
>>>>>>>>
>>>>>>>> After that completes, you will have a file 'libz.a' in the
>>>>>>>> directory build_release. For that set of command line parameters to
>>>>>>>> succeed, you will need to have git, cmake and mingw32 toolchain 
>>>>>>>> installed
>>>>>>>> and set up in PATH.
>>>>>>>>
>>>>>>>>
>>>>>>>> 2014-08-12 14:14 GMT+03:00 awt <[email protected]>:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I downloaded an implementation of ZLIB from
>>>>>>>>> http://www.winimage.com/zLibDll/index.html and copied
>>>>>>>>> the zlibstat.lib file to where my visual studio solution files are and
>>>>>>>>> tried to link to it with the -lzlibstat flag but emcc still complains 
>>>>>>>>> that
>>>>>>>>> it cannot find 'zlibstat.lib'.
>>>>>>>>>
>>>>>>>>> Does the Emscripten SDK already provides a ZLIB static lib that I
>>>>>>>>> can use without the need to build? I am developing on the Windows
>>>>>>>>> environment. Thanks.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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.
>>>>>>>
>>>>>>
>>>>>>  --
>>>>> 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.
>>>
>>
>>  --
> 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.

Reply via email to