gicho / andless

Automatically exported from code.google.com/p/andless
1 stars 0 forks source link

Android.mk needs to be modified for NDK r5 on Windows/cygwin #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile andless using NDK r5 on Windows/cygwin

What is the expected output? What do you see instead?
The LOCAL_CFLAGS -I will not work. Make will fail with 
#include <utils/String8.h>
and
#include <media/AudioTrack.h>

Please provide any additional information below.
Remove the -I flag, using:
LOCAL_C_INCLUDES += $(LOCAL_PATH)/Android/include

Original issue reported on code.google.com by urak...@gmail.com on 19 Jan 2011 at 3:05

GoogleCodeExporter commented 8 years ago
Ah, the LOCAL_LDLIBS also have this issue. It should be written as:
LOCAL_LDLIBS := -llog $(call host-path, $(LOCAL_PATH)/Android/lib/libutils.so) 
$(call host-path, $(LOCAL_PATH)/Android/lib/libmedia.so)

Original comment by urak...@gmail.com on 19 Jan 2011 at 3:22

GoogleCodeExporter commented 8 years ago
Thank you! LOCAL_C_INCLUDES works just fine here (linux r3), but your version 
of LOCAL_LDLIBS seems to be not backward compatible... I'll try to fix it when 
I install r5.

Original comment by avs...@gmail.com on 19 Jan 2011 at 6:30

GoogleCodeExporter commented 8 years ago
Tuned my config a bit. Attached here.

Issue with LOCAL_LDLIBS on windows is caused by some ndk/gnumake/cygwin 
incompatibility, so conversion required for paths here.

To keep compatibility across platforms, ifeq/else/endif conditional directives 
may be used (see my file).

*hardcode warning* LOCAL_PATH is hardcoded, since I'm lazy to search for some 
working solution with my half-working cygwin or reinstall it.

Original comment by killy....@gmail.com on 19 Jan 2011 at 7:50

Attachments: