Tool/software: Linux
Hello All
My board is am335x-evm, SDK is sdk-02.00.00.11.
I try to porting tslib for touchscreen
I have one problem.
TI site : processors.wiki.ti.com/.../Tslib
1. download tslib
git clone github.com/.../tslib.git
2. compile
# apt-get install libtool
# ./autogen.sh
# ./configure --prefix=/usr/tslib --host=arm-linux-gnu
# make
I can't edit the file config.h (comment the line "#define malloc rpl_malloc" to avoid this option:"#define malloc rpl_malloc" -> "//#define malloc rpl_malloc")
There is no #define malloc rpl_malloc in config.h (I attached my config.h file)
# make install
# export TSLIB_FBDEVICE=/dev/fb0
# export TSLIB_TSDEVICE=/dev/input/touchscreen0
# export TSLIB_CONFFILE=/etc/ts.conf
3. tslib copy to target board (rootfs)
root@ubuntu:/usr/tslib# ls
bin etc include lib share
root@ubuntu:/usr/tslib# cp -R * /opt/work/trunk/BSP/AM335X/RootFileSystem/Rootfs/
4. run ts_calibrate
# ./ts_calibrate
./ts_calibrate: line 1: syntax error: unexpected word (expecting ")") <= this error message
What is causing that syntax error?
Is there a problem with how to install tslib?



