Android Compile Argument list too long

384 views
Skip to first unread message

Whiso

unread,
Mar 9, 2011, 4:46:35 PM3/9/11
to android-ndk
Hi!! How I can cut the output path of objects generated!! because the
list is too long
Is possible put all objects generated in same path? like Visual C++
does it!!

Whiso

unread,
Mar 10, 2011, 11:48:08 PM3/10/11
to android-ndk
I Fix this Issue, Just you need cut all path of Object generated

on definitions.mk

change
compile-c-source = $(eval $(call ev-compile-c-source,$1,$(1:%.c=%.o)))
by
compile-c-source = $(eval $(call ev-compile-c-source,$1,$(notdir
$(1:%.c=%.o))))

and

compile-cpp-source = $(eval $(call ev-compile-cpp-source,$1,$(1:%$
(LOCAL_CPP_EXTENSION)=%.o)))
by
compile-cpp-source = $(eval $(call ev-compile-cpp-source,$1,$(notdir
$(1:%$(LOCAL_CPP_EXTENSION)=%.o))))

also

can be reduced even more by changing this variable

LOCAL_OBJS_DIR := ./

David Turner

unread,
Mar 14, 2011, 7:36:19 PM3/14/11
to andro...@googlegroups.com, Whiso
The current scheme is to guarantee reproducible builds that don't miss dependencies (due to the way GCC generates depends files).
If people are interested, I could probably introduce a mode where relative paths are used during build commands, which should be shorter.
However, this will force you to run ndk-build from the top-level project directory (currently, you can invoke it in any sub-dir).

I advise you to file a bug at b.android.com about this and let other people vote on this.

Regards.

- David
 
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Reply all
Reply to author
Forward
0 new messages