install tslib error

tn88test
I tried to install  tslib. I got error when I tried "make install" command

libtool: install: arm-none-linux-gnueabi-ranlib /home/tslib/lib/libts.a
../libtool: line 1085: arm-none-linux-gnueabi-ranlib: command not found

I already built arm-linux-gcc-4.4.3 toolchain and set PATH in .bashrc. What
can I do to solve this problem?

davef
Check by:
   
   printenv

to insure you REALLY have a path to your compiler.

Also, maybe:

   sudo make install

tn88test
I already set path to compiler

home@home-PC:~$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
:/bin:/usr/games:/usr/local/games:/opt/FriendlyARM/toolschain/4.4.3/bin

This is the script file I tried to install tslib

#!/bin/bash

sudo apt-get install autoconf
sudo apt-get install libtool

# general cross-compile
export CROSS_COMPILE=arm-none-linux-gnueabi-
export CC=${CROSS_COMPILE}gcc
export CFLAGS=-march=armv4t
# -mtune=arm920t said is not a valid identifier
# -O0 -msoft-float -D__GCC_FLOAT_NOT_NEEDED
export CXX=${CROSS_COMPILE}"g++"
export AR=${CROSS_COMPILE}"ar"
export AS=${CROSS_COMPILE}"as"
export RANLIB=${CROSS_COMPILE}"ranlib"
export LD=${CROSS_COMPILE}"ld"
export STRIP=${CROSS_COMPILE}"strip"

# does make a difference
export ac_cv_func_malloc_0_nonnull=yes

echo " ****************** Configuring tslib  ********************* "

./autogen-clean.sh

./autogen.sh

./configure --host=arm-none-linux-gnueabi --prefix=/home/tslib
--enable-shared=yes --enable-static=yes

make
sudo make install

tn88test
After enter sudo password to make install here is the result

[sudo] password for home: 
Making install in etc
make[1]: Entering directory `/home/home/Downloads/tslib/etc'
make[2]: Entering directory `/home/home/Downloads/tslib/etc'
 /bin/mkdir -p '/home/tslib/etc'
 /usr/bin/install -c -m 644 ts.conf '/home/tslib/etc'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/home/Downloads/tslib/etc'
make[1]: Leaving directory `/home/home/Downloads/tslib/etc'
Making install in src
make[1]: Entering directory `/home/home/Downloads/tslib/src'
make[2]: Entering directory `/home/home/Downloads/tslib/src'
 /bin/mkdir -p '/home/tslib/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libts.la
'/home/tslib/lib'
libtool: install: /usr/bin/install -c .libs/libts-1.0.so.0.0.0
/home/tslib/lib/libts-1.0.so.0.0.0
libtool: install: (cd /home/tslib/lib && { ln -s -f libts-1.0.so.0.0.0
libts-1.0.so.0 || { rm -f libts-1.0.so.0 && ln -s libts-1.0.so.0.0.0
libts-1.0.so.0; }; })
libtool: install: (cd /home/tslib/lib && { ln -s -f libts-1.0.so.0.0.0
libts.so || { rm -f libts.so && ln -s libts-1.0.so.0.0.0 libts.so; }; })
libtool: install: /usr/bin/install -c .libs/libts.lai
/home/tslib/lib/libts.la
libtool: install: /usr/bin/install -c .libs/libts.a /home/tslib/lib/libts.a
libtool: install: chmod 644 /home/tslib/lib/libts.a
libtool: install: arm-none-linux-gnueabi-ranlib /home/tslib/lib/libts.a
../libtool: line 1085: arm-none-linux-gnueabi-ranlib: command not found
make[2]: *** [install-libLTLIBRARIES] Error 127
make[2]: Leaving directory `/home/home/Downloads/tslib/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/home/Downloads/tslib/src'
make: *** [install-recursive] Error 1

davef
Still looks like it can't find the compiler.

In the terminal window just before running your script type in:

   printenv

tn88test
home@home-PC:~$ printenv
LC_PAPER=vi_VN
LC_ADDRESS=vi_VN
SSH_AGENT_PID=1907
LC_MONETARY=vi_VN
GPG_AGENT_INFO=/run/user/home/keyring-qWjOL9/gpg:0:1
TERM=xterm
SHELL=/bin/bash
XDG_SESSION_COOKIE=aa204244b783d6885a674fac523eaceb-1380001649.885045-1280520196

WINDOWID=65011717
LC_NUMERIC=vi_VN
GNOME_KEYRING_CONTROL=/run/user/home/keyring-qWjOL9
GTK_MODULES=overlay-scrollbar
USER=home
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd
=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=0
1;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.
tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz
=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.d
eb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31
:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=0
1;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.x
bm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;
35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mk
v=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;3
5:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=0
1;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd
=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*
.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00
;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga
=00;36:*.spx=00;36:*.xspf=00;36:
LC_TELEPHONE=vi_VN
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/home/keyring-qWjOL9/ssh
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
SESSION_MANAGER=local/home-PC:@/tmp/.ICE-unix/1858,unix/home-PC:/tmp/.ICE-unix/1
858
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:
/sbin:/bin:/usr/games:/usr/local/games:/opt/FriendlyARM/toolschain/4.4.3/bin
DESKTOP_SESSION=ubuntu
LC_IDENTIFICATION=vi_VN
PWD=/home/home
GNOME_KEYRING_PID=1847
LANG=en_US.UTF-8
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
LC_MEASUREMENT=vi_VN
UBUNTU_MENUPROXY=libappmenu.so
COMPIZ_CONFIG_PROFILE=ubuntu
GDMSESSION=ubuntu
SHLVL=1
HOME=/home/home
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=home
COMPIZ_BIN_PATH=/usr/bin/
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-rVkO15Rvpe,guid=90fe1bac91ac0ac
32f32bb3a52412772
LESSOPEN=| /usr/bin/lesspipe %s
TEXTDOMAIN=im-config
XDG_RUNTIME_DIR=/run/user/home
DISPLAY=:0
XDG_CURRENT_DESKTOP=Unity
LESSCLOSE=/usr/bin/lesspipe %s %s
LC_TIME=vi_VN
TEXTDOMAINDIR=/usr/share/locale/
COLORTERM=gnome-terminal
XAUTHORITY=/home/home/.Xauthority
LC_NAME=vi_VN
_=/usr/bin/printenv

davef
OK.  Based on past bad experience I always put my export statement in every
script.

Sorry, someone else will have to take over.

tn88test
After doing things step by step. The problem started at ./autogen.sh. 

home@home-PC:~/Downloads/tslib$ ./autogen-clean.sh
Removing autogenned files...
Done.
home@home-PC:~/Downloads/tslib$ ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in `m4/internal'.
libtoolize: copying file `m4/internal/libtool.m4'
libtoolize: copying file `m4/internal/ltoptions.m4'
libtoolize: copying file `m4/internal/ltsugar.m4'
libtoolize: copying file `m4/internal/ltversion.m4'
libtoolize: copying file `m4/internal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros
in-tree.
configure.ac:7: installing `./missing'
plugins/Makefile.am: installing `./depcomp'

I found some one has the same problem
http://www.friendlyarm.net/forum/topic/2629

PLEASE HELP ME!!!

davef
I think there are other tools you need.  As you only mention two I will ask
if you have:

build-essential
automake
libcurses5-dev (for menuconfig)

And maybe look through this tutorial:
http://mini2440vietnam.blogspot.co.nz/2011/04/upgrade-qt462-in-mini2440....

tn88test
Finally I successfully compiled tslib. I change --prefix=/home/tslib to
--prefix=/home/home/tslib and change "sudo make install" to "make install".
Thank you for your help!

Dupil
This fixed the problem for me
sudo "PATH=$PATH" make install

Dafi
Install ended perfectly but when I test here is the result : 

me@mycomputer:~$ ts_test
ts_open: No such file or directory

I think my environnment variable are not correct, but I do not find out
which part to look at.

any suggestion, help ?

davef
Try <printenv> on the target's command line.

If you look in the directory that you install tslib in what files are
there?

Ron
Hi

Following is the error I get while compiling tslib from ubuntu PC. Can
anybody help?

libtool: compile:  arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I../src
-DTS_POINTERCAL=\"/home/tslib/etc/pointercal\" -DTSLIB_INTERNAL
-fvisibility=hidden -DGCC_HASCLASSVISIBILITY -O2 -Wall -W -MT input-raw.lo
-MD -MP -MF .deps/input-raw.Tpo -c input-raw.c  -fPIC -DPIC -o
.libs/input-raw.o
input-raw.c: In function 'check_fd':
input-raw.c:205: error: 'ABS_MT_SLOT' undeclared (first use in this
function)
input-raw.c:205: error: (Each undeclared identifier is reported only once
input-raw.c:205: error: for each function it appears in.)
input-raw.c: In function 'ts_input_read_mt':
input-raw.c:583: error: 'ABS_MT_SLOT' undeclared (first use in this
function)
make[2]: *** [input-raw.lo] Error 1
make[2]: Leaving directory `/home/mou/Downloads/tslib-1.5/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mou/Downloads/tslib-1.5'
make: *** [all] Error 2

davef
4 pages of input-raw using the search function.

There was someone with this issue in the last month or so.

Raghavendra
Hi All,
Now we are using 7" lcd capacitive touch screen cape with Beagle Bone Black
and AM3358 TI SDK (03.02.00.05) on ubuntu 12.04.

U-Boot : 2016.05
U-Boot Config : am335x_boneblack_defconfig
Kernel : 4.4.32
Kernel Config : tisdk_am335x-evm_defconfig
dts : am335x-boneblack.dts

So how to integrate this cape with SDK, is there any configuration changes,
Please let me know, waiting for your reply..

Thanks,
Raghavendra

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number: 4 7 9 9