【问题标题】:Cross-compiling a source (tslib) for Android image (Allwinner A20)交叉编译 Android 映像的源代码 (tslib) (Allwinner A20)
【发布时间】:2015-04-30 10:36:44
【问题描述】:

我想知道是否可以将此存储库添加到 Android 源中: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

我想我必须改变一些东西,但是……这是个问题

【问题讨论】:

标签: android kernel cross-compiling


【解决方案1】:

我通过在 Android.mk 中替换 all 这些行

解决了这个问题
LOCAL_MODULE_TAGS := optional

通过

LOCAL_MODULE_TAGS := eng

并配置它

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-04-10
    • 1970-01-01
    • 2010-10-01
    • 2011-09-08
    • 1970-01-01
    • 2014-02-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多