Android的NDK-生成错误的make.exe:*** create_child_process:DuplicateHandle(中)失败(E = 6) [英] Android ndk-build error make.exe: *** create_child_process: DuplicateHandle(In) failed (e=6)

查看:621
本文介绍了Android的NDK-生成错误的make.exe:*** create_child_process:DuplicateHandle(中)失败(E = 6)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是比较新的Andr​​oid和我有使用NDK-build命令的一个问题。
我使用NDK r9d在Windows 7 64位。

I'm relatively new to Android and I have a problem using the ndk-build command. I use the NDK r9d under Windows 7 64bits.

当我运行它创建我的Andr​​oid项目(Makefile文件等...),然后创建运行NDK-build.cmd(我查了一下,这是在Android项目中调用)我得到错误的过程我的构建系统:

When I run my build system which creates my Android project (makefiles etc...) and then creates a process running ndk-build.cmd (I checked that it is call in the Android project) I get the error:

的make.exe:*** create_child_process:DuplicateHandle(中)失败(E = 6)

但是当我运行NDK-build.cmd手动,在Windows命令控制台,在我的构建系统创建的相同的Andr​​oid项目(或任何Android项目)一切工作。

But when I run ndk-build.cmd "manually" in the windows command console in the same Android project created by my build system (or any Android project) everything is working.

我找到喜欢这里的一些相关的问题:

I did find some related questions like here:

<一个href=\"https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014825836\" rel=\"nofollow\">https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014825836

https://cygwin.com/ml/cygwin/2004-09/ msg01506.html

但是,所有我发现说,无论是它的化妆版本,它是不是(我认为),因为NDK构建一个问题,工作正常,当我使用手动或者说,它是关系到标准输入处理,并再次我不我不觉得这里的问题。加上所有我发现anwsers是有关一个类似的错误,但不完全相同的:

But all I found says either that it's a problem of make version which is not (I think) since ndk-build works fine when I use it "manually" or it says that it is related to stdin handling and again I don't think that the issue here. Plus all the anwsers that I found was related to a similar error but not exactly the same:

process_easy:DuplicateHandle(中)失败(E = 6)

process_easy: DuplicateHandle(In) failed (e=6)

也许有人知道我的错误消息的含义。我不认为这是具体到Android NDK的构建,但也许。

Maybe someone knows the meaning of my error message. I don't think that's specific to Android ndk-build but maybe.

感谢您的阅读(和抱歉任何英文错误,我法语和英文不流利)

Thank you for reading (and sorry for any english mistakes, I am french and not fluent in english)

推荐答案

Finaly,我发现我的问题在这里的解决方案:

Finaly, I found a solution to my problem here:

http://www.zeusedit.com/zforum/viewtopic.php? T = 174

我不知道是什么问题,但按照这个环节,它关系到化妆环境和把手。

I am not sure about what the problem was but according to this link, it was related to the make environment and the handles.

解决办法:不要使用CreateProcess函数(从Windows)直接调用NDK-build.cmd,我创建了一个包含一个批处理文件:

The solution : Instead of using the createProcess function (from Windows) directly to call ndk-build.cmd, I created a batch file containing:

开始NDK-build.cmd

start ndk-build.cmd

和我打电话通过CreateProcess函数这个批处理(.bat)。

And I called this batch (.bat) via the createProcess function.

我让你看到的链接了解更多详情。

I let you see the link for more details.

这篇关于Android的NDK-生成错误的make.exe:*** create_child_process:DuplicateHandle(中)失败(E = 6)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆