交叉编译Android图像的源(tslib)(Allwinner A20)

时间:2015-02-27 16:29:04

标签: android kernel cross-compiling

我想知道是否可以在Android源代码中添加此repo:https://github.com/kergoth/tslib以同时构建它。没有Android.mk文件。

我想用它来校准触摸屏

我见过这一个http://sourceforge.net/p/tslibonandroid/code/ci/master/tree/ 但是我的触摸屏(eGalax)没有添加

由于

**

编辑:

**我找到了Android的另一个repo,但我认为我的ARCH不起作用。 (它是Android.mk我必须修改吗?)我是交叉编译和C / C ++语言的新手。 我试图在文件夹中执行此操作:

autoreconf -ivs
./configure --target=sun7i_android

之后我试图建立我的形象。 结果:

Export includes file: hardware/tslib/Android.mk -- out/target/product/sugar-lemaker/obj/EXECUTABLES/ts_print_raw_intermediates/export_includes
Import includes file: out/target/product/sugar-lemaker/obj/EXECUTABLES/ts_test_intermediates/import_includes
Export includes file: hardware/tslib/Android.mk -- out/target/product/sugar-lemaker/obj/EXECUTABLES/ts_test_intermediates/export_includes
Import includes file: out/target/product/sugar-lemaker/obj/SHARED_LIBRARIES/ts/plugins/dejitter_intermediates/import_includes
Export includes file: hardware/tslib/Android.mk -- out/target/product/sugar-lemaker/obj/SHARED_LIBRARIES/ts/plugins/dejitter_intermediates/export_includes
Import includes file: out/target/product/sugar-lemaker/obj/SHARED_LIBRARIES/ts/plugins/input_intermediates/import_includes

输出文件夹不是/system/xbin/,而是/obj/EXECUTABLES/

Android.mk的开头是:

#
# This Makefile will build tslib with most of the plugins
# and all the test applications
#

LOCAL_PATH:= $(call my-dir)
LOCAL_MODULE_TAGS := optional

include $(CLEAR_VARS)

TSLIB_PLUGINDIR := /system/lib/ts/plugins

LOCAL_SRC_FILES := \
        src/ts_attach.c \
        src/ts_close.c \
        src/ts_config.c \
        src/ts_error.c \
        src/ts_fd.c \
        src/ts_load_module.c \
        src/ts_open.c \
        src/ts_option.c \
        src/ts_parse_vars.c \
        src/ts_read.c \
        src/ts_read_raw.c

我想我必须改变一些东西但是......那就是问题

1 个答案:

答案 0 :(得分:0)

我已经通过替换Android.mk 所有这些行解决了这个问题

LOCAL_MODULE_TAGS := optional

通过

LOCAL_MODULE_TAGS := eng

并使用

进行配置
autoreconf -ivs
./configure --enable-galax --target=sun7i --host=x86 --prefix=/usr --enable-shared --sysconfdir=/etc