<div><br></div><div>Hello, I need to build strace for a project android.</div><div>I try to configure my environnements but i have many errors.</div><div><br></div><div>Can you help me please?</div><div>I do :</div><div><br>
</div><div><br></div><div>This is the Android.mk file.</div><div><br></div><div>####################################################################################################</div><div># BEGIN #</div>
<div>####################################################################################################</div><div><br></div><div><div># Copyright 2006 The Android Open Source Project</div><div><br></div><div>ifneq ($(TARGET_SIMULATOR),true)</div>
<div><br></div><div>LOCAL_PATH := $(my-dir)</div><div>include $(CLEAR_VARS)</div><div><br></div><div># From autoconf-generated Makefile</div><div>strace_SOURCES = strace.c syscall.c util.c desc.c file.c \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> io.c ioctl.c mem.c net.c process.c bjm.c \</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span> resource.c signal.c sock.c system.c term.c time.c \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> proc.c stream.c quota.c ioctlsort.c scsi.c block.c count.c</div>
<div><br></div><div>#excluded_sources = ipc.c</div><div><br></div><div>LOCAL_SRC_FILES:= $(strace_SOURCES)</div><div><br></div><div>LOCAL_SHARED_LIBRARIES :=</div><div><br></div><div># Hack for ARM devices. This version of strace does not support ARM, and the</div>
<div># patch that was used to add ARM support actually adds the ARM syscalls to</div><div># linux/sh/ (Sega Megadrive/Dreamcast/...) instead of linux/arm/ . The proper</div><div># way to fix this would be to upgrade to a version of strace that does support</div>
<div># ARM (e.g. 4.5.1.8), but that would mean having to reapply all Android-specific</div><div># changes. Sigh.</div><div>ifeq ($(TARGET_ARCH),arm)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>STRACE_ARCH_HEADERS := $(LOCAL_PATH)/strace/linux/sh</div>
<div>else</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>STRACE_ARCH_HEADERS := $(LOCAL_PATH)/strace/linux/$(TARGET_ARCH)</div><div>endif</div><div><br></div><div>LOCAL_C_INCLUDES := \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>$(STRACE_ARCH_HEADERS) \</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>$(KERNEL_HEADERS) \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>$(LOCAL_PATH)/linux \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>$(LOCAL_PATH)/android/arch/$(TARGET_ARCH)</div>
<div><br></div><div>LOCAL_CFLAGS := -DHAVE_ANDROID_OS -DHAVE_CONFIG_H -Dd_fileno=d_ino -D_LFS64_LARGEFILE=1</div><div><br></div><div><br></div><div>ifeq ($(TARGET_ARCH),x86)</div><div>LOCAL_CFLAGS += -Ulinux</div><div>endif</div>
<div><br></div><div>LOCAL_MODULE := strace</div><div><br></div><div>LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)</div><div><br></div><div>LOCAL_MODULE_TAGS := debug</div><div><br></div><div>include $(BUILD_EXECUTABLE)</div>
<div><br></div><div>endif # TARGET_SIMULATOR != true</div></div><div><br></div><div>################################################################################################################</div><div># END #</div>
<div>################################################################################################################</div><div><br></div><div>Thanks.</div><div>Ulucanavar</div>