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] 
> <javascript:>>:
>
>> 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/z
>>>>>> LibDll/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] <javascript:>.
>> 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