Ndk-build: CreateProcess: make (e=87): The parameter is incorrect

Posted by user1514958 on Stack Overflow See other posts from Stack Overflow or by user1514958
Published on 2012-09-26T09:45:51Z Indexed on 2012/10/04 9:37 UTC
Read the original article Hit count: 797

Filed under:
|
|
|

I get an error when build static lib with NDK on Windows platform:

process_begin: CreateProcess( "PATH"\android-ndk-r8b\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ar.exe, "some other commands" ) failed.
make (e=87): The parameter is incorrect.
make: *** [obj/local/armeabi-v7a/staticlib.a] Error 87
make: *** Waiting for unfinished jobs....

All source files build successfully, and this error occur when compose object files.

I don't get this error when build this project in Ubuntu, it occur only on Windows.

I suppose I found the issue: second parameter of CreateProcess Win API function lpCommandLine has max length 32,768 characters. But in my case it is more than 32,768 characters.

How I can solve this issue?

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows