Porting Tslib on android for pandaboard

362 views
Skip to first unread message

monimi

unread,
Feb 24, 2012, 1:59:06 PM2/24/12
to android-porting
Hi, i am porting Tslib on android to run on pandaboard, but when i do
the 'make' step i get the following errors:


target thumb C: ts_calibrate <= external/android-tslib/tests/fbutils.c
target thumb C: ts_calibrate <= external/android-tslib/tests/
ts_calibrate.c
target thumb C: ts_calibrate <= external/android-tslib/tests/
testutils.c
target thumb C: libts <= external/android-tslib/src/ts_attach.c
target thumb C: libts <= external/android-tslib/src/ts_close.c
external/android-tslib/src/ts_close.c: In function 'ts_close':
external/android-tslib/src/ts_close.c:25: warning: implicit
declaration of function 'close'
target thumb C: libts <= external/android-tslib/src/ts_config.c
target thumb C: libts <= external/android-tslib/src/ts_error.c
target thumb C: libts <= external/android-tslib/src/ts_load_module.c
target thumb C: libts <= external/android-tslib/src/ts_open.c
target thumb C: libts <= external/android-tslib/src/ts_parse_vars.c
target thumb C: libts <= external/android-tslib/src/ts_read.c
target thumb C: libts <= external/android-tslib/src/ts_read_raw.c
target thumb C: libts <= external/android-tslib/src/ts_option.c
target StaticLib: libts (out/target/product/panda/obj/STATIC_LIBRARIES/
libts_intermediates/libts.a)
target Executable: ts_calibrate (out/target/product/panda/obj/
EXECUTABLES/ts_calibrate_intermediates/LINKED/ts_calibrate)
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/
gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/
ld: out/target/product/panda/obj/STATIC_LIBRARIES/libts_intermediates/
libts.a(ts_load_module.o): in function __ts_load_module:external/
android-tslib/src/ts_load_module.c:49: error: undefined reference to
'dlopen'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/
gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/
ld: out/target/product/panda/obj/STATIC_LIBRARIES/libts_intermediates/
libts.a(ts_load_module.o): in function __ts_load_module:external/
android-tslib/src/ts_load_module.c:57: error: undefined reference to
'dlsym'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/
gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/
ld: out/target/product/panda/obj/STATIC_LIBRARIES/libts_intermediates/
libts.a(ts_load_module.o): in function __ts_load_module:external/
android-tslib/src/ts_load_module.c:62: error: undefined reference to
'dlclose'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/
gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/
ld: out/target/product/panda/obj/STATIC_LIBRARIES/libts_intermediates/
libts.a(ts_load_module.o): in function __ts_load_module:external/
android-tslib/src/ts_load_module.c:87: error: undefined reference to
'dlclose'
collect2: ld returned 1 exit status

i really don't know what else to do, i'm kind of desparate at this
point, if someone could help me it would be great, thanks.

Nilly

unread,
Feb 28, 2012, 11:54:03 PM2/28/12
to android-porting

monimi,

Add following line to libts and and module using libts.

LOCAL_SHARED_LIBRARIES := \
libdl


Regards,
Niral

monimi

unread,
Mar 2, 2012, 12:06:11 PM3/2/12
to android-porting
Hi, i did a few changes and i successfully compiled it, but when i try
to calibrate the touchscreen i get the next:

shell@android:~# ts_calibrate
xres = 1280, yres = 720
Took 41 samples…
Top left : X = 0 Y = 0
Took 27 samples…
Top right : X = 0 Y = 0
Took 16 samples…
Bot right : X = 0 Y = 0
Took 22 samples…
Bot left : X = 0 Y = 0
Took 10 samples…
Center : X = 0 Y = 0
ts_calibrate: determinant is too small — 0.000000
Calibration failed.

the touchscreen is an eGalax, i patched the tslib code with a patch
for eGalax, but i don't know what could it be, i keep getting that
result with the calibration, any ideas about why?, thanks in advanced.
Reply all
Reply to author
Forward
0 new messages