make: execvp: /Users/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bi Android


make: execvp: /Users/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++: Argument list too long


개발환경은 Android Studio로 바꾸고 Android 빌드를 하는데 발생한 에러.

Android Studio에서는 잘되었는데 Jenkins에서만 발생했다.


여러 삽질 끝에 확인한 결과는

command line build시에 32768 character를 넘으면 안되는데 obj파일이 많다보니 그걸 넘긴것 같다.

폴더명을 짧게 줄였더니 해결. 얼마나 버티려나...


solution : 

1. rename android studio Folder "PrjectName.AndroidStudio" to "s"
2. open AndroidStudio, import folder "s"
3. build/Clean Project
4. build/Rebuild Project



https://stackoverflow.com/questions/7651374/arm-linux-androideabi-g-exe-createprocess-no-such-file-or-directory-error 

The maximum length of the command line string passed to CreateProcess() is 32,768 characters. The length includes all the arguments.
Incidentally, the Android NDK build system may generate a command line longer than 32,768 characters because the full paths of your source files are too long and the number of source files is too large and the object file paths are thus too long and many. All the full paths are added to the command line when linking.

덧글

댓글 입력 영역


Post-it