Re: NDK r5b: Argument list too long

Postby Yopia » 28 May 2011, 07:41

Solution found on google groups :
(http://groups.google.com/group/android-ndk/browse_thread/thread/88d52ef3aa674fd5)
http://groups.google.com/group/android-ndk/browse_thread/thread/88d52ef3aa674fd5
There are several ways

that could help you work around this:

1/ Try installing the NDK and your project in top-level directories to make
the final build commands smaller. What I mean would be:
- install the ndk as /cygdrive/c/ndkr5/
- put your project under /cydrive/c/myproj/

2/ Try generating static libraries that contain fewer object files. I.e.
instead of generating libfoo.a, try to make libfoo1.a + libfoo2.a +
libfoo3.a, where each one only contains a third of the object files. Not
ideal, but would help to reduce the size of the static archive command.




The first one works for the guy asking. Hope that will help you.


보통 NDK/sample 혹은 NDK 폴터에 jni 작업을 하는데..

만약 NDK/sample  폴더안에서 폴터트리가 많이 내려가면 에러가 발생될수 있으니 주의하세요~!!


ex) NDK/sample/NDK_TEST/aaa/bbb/ccc/ddd/jni 

     -> NDK/sample/NDK_Test/jni