I get an error when build static lib with NDK on Windows platform:
process_begin: CreateProcess( "PATH"android-ndk-r8boolchainsarm-linux-androideabi-4.6prebuiltwindowsinarm-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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…