Compiling Qt and tslib for mini2440 and run a demo app

We will create a Qt app that is compatible on mini2440 on our host computer then we will copy the libraries and binary of the app to mini2440 and will run the app….

So first we need to set up the Qt environment that we have in our mini2440(Qtopia) to our host computer…

These are the steps we must follow

1. tslib compilation
2. Qt4.6.2 compilation
3. Copy library of tslib and Qt4.6.2 into mini2440 board.
4. Configure the environment in mini2440 board.
5. Run Qt example program

1. tslib compilation

Tslib is an abstraction layer for touchscreen panel events, as well as a filter stack for the manipulation of those events. It was created by Russell King, of arm.linux.org.uk. Tslib is generally used on embedded devices to provide a common user space interface to touchscreen functionality.

$sudo apt-get install git-core
$cd /usr/local
$git clone http://github.com/kergoth/tslib.git
$export PATH=/usr/local/arm/4.3.2/bin:$PATH
$export CROSS_COMPILE=arm-none-linux-gnueabi-
$export CC=${CROSS_COMPILE}gcc
$export CFLAGS=-march=armv4t
$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"
$export ac_cv_func_malloc_0_nonnull=yes
$cd /usr/local/tslib
$./autogen-clean.sh
$./autogen.sh
$./configure --host=arm-linux --prefix=/home/tslib --enable-shared=yes --enable-static=yes
$make
$make install

If everything went ok you will see tslib in you will see tsblib in /home/tslib

2.Qt Compilation

$wget http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.3.tar.gz
$mv qt-everywhere-opensource-src-4.6.3.tar.gz /usr/local
$cd /usr/local
$tar -zxvf  qt-everywhere-opensource-src-4.6.3.tar.gz
$cd qt-everywhere-opensource-src-4.6.3
$cd mkspecs/common/
$gedit g++.conf

Edit that file

change         QMAKE_CFLAGS_RELEASE += -O2
into               QMAKE_CFLAGS_RELEASE += -O0
Then save the file

$cd /usr/local/qt-everywhere-opensource-src-4.6.3/mkspecs/qws/linux-arm-g++/
$gedit qmake.conf

Edit the file.Copy paste the below content , note that, the path /usr/local/arm/4.3.2/ is the path which you installed tool chain.Remember that the PATH variable should have the location of arm-none-linux-gnueabi-gcc

#
# qmake configuration for building with arm-linux-g++
#

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lts
QMAKE_CXX = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lts
QMAKE_LINK = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lts
QMAKE_LINK_SHLIB = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lts

# modifications to linux.conf
QMAKE_AR = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-objcopy
QMAKE_STRIP = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-strip

QMAKE_INCDIR += /home/tslib/include/
QMAKE_LIBDIR += /home/tslib/lib/

QMAKE_CFLAGS_RELEASE += -march=armv4 -mtune=arm920t
QMAKE_CFLAGS_DEBUG += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_MT += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_MT_DBG += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_MT_DLL += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_MT_DLLDBG += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_SHLIB += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_THREAD += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_WARN_OFF += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_WARN_ON += -march=armv4t -mtune=arm920t

QMAKE_CXXFLAGS_DEBUG += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_MT += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_MT_DBG += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_MT_DLL += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_MT_DLLDBG += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_RELEASE += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_SHLIB += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_THREAD += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_WARN_OFF += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_WARN_ON += -march=armv4t -mtune=arm920t

load(qt_config)

Save the file

$mkdir /usr/local/Qt
$cd /usr/local/qt-everywhere-opensource-src-4.6.3

Then issue this command

$./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools -qt-sql-sqlite -no-3dnow -system-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-opengl -gtkstyle -no-openvg -no-xshape -no-xsync -no-xrandr -qt-freetype -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-linuxinput -qt-mouse-tslib -qt-mouse-linuxinput

chose ‘o’ Open Source Edition
chose ‘yes’ to accept license offer

$make
$make install

Now the compilation is done, you will see the result files in /usr/local/Qt.

3 .Copy library of tslib and Qt4.6.3 into mini2440 board

Use sd card,pendrive or you can copy through network

copy library and example program of Qt to pendrive

$cd /usr/local/Qt/lib
$cp *4.6.3   /media/Pendrive/
$cp -r fonts/   /media/Pendrive/
$cd /usr/local/Qt
$cp -r demos/   /media/Pendrive/

copy tslib into pendrive

$mkdir /media/Pendrive/tslib/lib/
$cd /home/tslib/lib/
$cp -r * /media/Pendrive/tslib/lib/
$cp * /media/Pendrive/tslib/lib/

Now connect the pendrive to the usb port of Mini2440 and in mini2440’s console

$mkdir /usr/local/Qt/lib/
$cp /sdcard/*4.6.3 /usr/local/Qt/lib/
rename all *.4.6.3 in /usr/local/Qt/lib into *.4, for example
$mv libQtCore.so.4.6.3 libQtCore.so.4 
$cp -r /udisk/fonts/ /usr/local/Qt/lib/
$cp -r /udisk/demos/ /mnt/
$cp -r /udisk/tslib/ /usr/local/

On mini2440 the pendrive will appear as /udisk instead of /media/Pendrive

4. Configure the environment in mini2440 board.

Below instructions will make mini2440 board not load its desktop so that our example Qt programs not conflict screen with the desktop

$cd /etc/init.d/
$vi rcS
comment last three lines:

#bin/qtopia&
#echo"                                 "> /dev/tty1
#ehco"Starting Qtopia, please waiting..." > /dev/tty1

Configure the environment in mini2440:

$cd /etc/
$vi profile

add those lines at the end of file

export LD_LIBRARY_PATH=/usr/local/tslib/lib
export QTDIR=/usr/local/Qt                 
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal        
export TSLIB_CONFFILE=/usr/local/etc/ts.conf  
export TSLIB_CONSOLEDEVICE=none               
export TSLIB_FBDEVICE=/dev/fb0              
export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
export TSLIB_TSDEVICE=/usr/local/tslib/lib/ts 
export TSLIB_TSEVENTTYPE=INPUT                
export QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140

Save it

5. Run Qt example program:

Now we can test Qt example programs

$cd /mnt/demos/embedded/fluidlauncher/
$./fluidlauncher -qws
Advertisements

117 thoughts on “Compiling Qt and tslib for mini2440 and run a demo app

  1. hey, in Qt compilation its uable to download the qt everywhere opensource 4.6.3 only 4.8.1 is available in nokia’s site and i tried the steps but its endss up like unable to fine make file seems like a bad tarball…..

  2. and i tried the qt every where open source 4.6.3 but same problem persists and my path is
    root@ubuntu:/usr/local# echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

    and at the initial i’ve set the ~/.bashrc path at the bootom as

    # enable programmable completion features (you don’t need to enable
    #this, if it’s already enabled in /etc/bash.bashrc and /etc/profile
    #sources /etc/bash.bashrc). if [ -f /etc/bash_completion ] && ! shopt
    #-oq posix; then
    # . /etc/bash_completion
    #fi

    export PATH=$PATH:/usr/local/arm/4.3.2/bin

    Thanks in advance ….

  3. while trying to make in QT compiliation i stuck with the error called The tslib functionality test
    failed,
    you might need to modify the include and library search paths by editing
    QMAKE_INCDIR and QMAKE_LIBDIR in ……”

    My compiled tslib is in the /home/tslib/ (bin, etc, include, lib) and

    qmake.conf has got following remarks ;
    QMAKE_INCDIR += /home/tslib/include
    QMAKE_LIBDIR += /home/tslib/lib

    and i tried “file ts_calibrate” gets this:

    ts_calibrate: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically
    linked (uses shared libs), for GNU/Linux 2.6.14, not stripped

    again i tried to make but same problem persists

  4. Which linux distro are you using???and for the path problem check all the files are in /usr/local/arm and also try export PATH=$PATH:/usr/local/arm/4.3.2/bin this command dirstly on commandline or as root

    • thanks for the reply first

      and i’m using ubuntu 10.4, and i tried without the tslib option as you said , now at the next step make it show the error as
      root@ubuntu:/usr/local/qt-everywhere-opensource-src-4.6.3# make
      make: *** No targets specified and no makefile found. Stop.

      and i tried the command maek –debug=m

      root@ubuntu:/usr/local/qt-everywhere-opensource-src-4.6.3# make –debug=m
      GNU Make 3.81
      Copyright (C) 2006 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.
      There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
      PARTICULAR PURPOSE.

      This program built for x86_64-pc-linux-gnu
      Reading makefiles…
      Updating makefiles….
      File `GNUmakefile’ does not exist.
      Must remake target `GNUmakefile’.
      Failed to remake target file `GNUmakefile’.
      File `makefile’ does not exist.
      Must remake target `makefile’.
      Failed to remake target file `makefile’.
      File `Makefile’ does not exist.
      Must remake target `Makefile’.
      Failed to remake target file `Makefile’.
      make: *** No targets specified and no makefile found. Stop.

  5. sorry seems like the ./configure is failed agian so that make file is not created without seeing this i tried to make as a result of it its showing the error make :.. no targets specified and no make file found.stop

    so the ./configure is failed again

    so pls give the ./configure command without tslib because i’m not sure that i’m using it without tslib option or not

    pls …

  6. Could anyone please help me? Thank a lot.

    jack@ubuntu:/usr/local/tslib$ ./autogen.sh
    ./autogen.sh: 3: autoreconf: not found

      • Thanks.

        It still doesn’t work. Firstly I tried “sudo apt-get install autoreconf”, it seems like run. However, It changes nothing after “./autogen.sh”.

        jack@ubuntu:/usr/local/tslib$ sudo apt-get install autoconf
        [sudo] password for jack:
        Reading package lists… Done
        Building dependency tree
        Reading state information… Done
        You might want to run ‘apt-get -f install’ to correct these:
        The following packages have unmet dependencies:
        autoconf : Depends: m4 (>= 1.4.13) but it is not going to be installed
        Recommends: automake but it is not going to be installed or
        automaken
        libqt4-dev : Depends: libqt4-dbus (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-qt3support (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-xml (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqtcore4 (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqtgui4 (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-network (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-svg (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-sql (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-script (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-scripttools (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-xmlpatterns (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-designer (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-help (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-test (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        Depends: libqt4-declarative (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        libqt4-opengl-dev : Depends: libqt4-opengl (= 4:4.7.0-0ubuntu4.4) but it is not going to be installed
        libqtwebkit-dev : Depends: libqtwebkit4 (= 2.0.0-0ubuntu1) but it is not going to be installed
        E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

        jack@ubuntu:/usr/local/tslib$ ls
        acinclude.m4 autogen.sh COPYING m4 plugins tests
        AUTHORS ChangeLog etc Makefile.am README TODO
        autogen-clean.sh configure.ac INSTALL NEWS src tslib.pc.in

        jack@ubuntu:/usr/local/tslib$ ./autogen.sh
        ./autogen.sh: 3: autoreconf: not found

      • your package manager is crashed and there are some broken packages thats why its asking for apt-get -f install which os you are using…Debian/Ubuntu…try to compile as root may be permision problems of that folder

  7. when i run /usr/local/tslib$ ./autogen.sh
    i get: ./autogen.sh: 3: autoreconf: not found

    I tried: /usr/local/tslib$ sudo apt-get install autoreconf
    i get: Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Couldn’t find package autoreconf

    Im running ubuntu 10.04 LTS
    Im not a linux guru so i have no idea what to do next Help please!

      • ok thanks that installed..
        But now i get this…… What am i doing wrong?

        sobiguy@sobiguy-Linux:/usr/local/tslib$ ./autogen.sh
        Can’t exec “libtoolize”: No such file or directory at /usr/bin/autoreconf line 189.
        Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 189.
        autom4te: cannot create autom4te.cache: No such file or directory
        aclocal: /usr/bin/autom4te failed with exit status: 1
        autoreconf: aclocal failed with exit status: 1

        It did install right SEE!

        sobiguy@sobiguy-Linux:~$ sudo apt-get install autoconf
        [sudo] password for sobiguy:
        Reading package lists… Done
        Building dependency tree
        Reading state information… Done
        The following extra packages will be installed:
        automake autotools-dev m4
        Suggested packages:
        autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool gettext
        The following NEW packages will be installed:
        autoconf automake autotools-dev m4
        0 upgraded, 4 newly installed, 0 to remove and 73 not upgraded.
        Need to get 1,685kB of archives.
        After this operation, 4,915kB of additional disk space will be used.
        Do you want to continue [Y/n]? y
        Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main m4 1.4.13-3 [241kB]
        Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid/main autoconf 2.65-3ubuntu1 [772kB]
        Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid/main autotools-dev 20090611.1 [64.1kB]
        Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid/main automake 1:1.11.1-1 [608kB]
        Fetched 1,685kB in 18s (91.4kB/s)
        Selecting previously deselected package m4.
        (Reading database … 128459 files and directories currently installed.)
        Unpacking m4 (from …/archives/m4_1.4.13-3_i386.deb) …
        Selecting previously deselected package autoconf.
        Unpacking autoconf (from …/autoconf_2.65-3ubuntu1_all.deb) …
        Selecting previously deselected package autotools-dev.
        Unpacking autotools-dev (from …/autotools-dev_20090611.1_all.deb) …
        Selecting previously deselected package automake.
        Unpacking automake (from …/automake_1%3a1.11.1-1_all.deb) …
        Processing triggers for install-info …
        Processing triggers for man-db …
        Processing triggers for doc-base …
        Processing 26 changed 1 added doc-base file(s)…
        Registering documents with scrollkeeper…
        Setting up m4 (1.4.13-3) …
        Setting up autoconf (2.65-3ubuntu1) …
        Setting up autotools-dev (20090611.1) …
        Setting up automake (1:1.11.1-1) …
        update-alternatives: using /usr/bin/automake-1.11 to provide /usr/bin/automake (automake) in auto mode.

      • Looks like you’re missing the libtool package. Try sudo apt-get install libtool

  8. Dear Ganeshred,
    I’ve tried to re-install ubuntu and repeat the commands above. So, I’ve pass the “./autogen.sh”. However, I faced a error when running “./configure –host=arm-linux –prefix=/home/tslib –enable-shared=yes –enable-static=yes”:

    root@ubuntu:/usr/local/tslib# ./configure –host=arm-linux –prefix=/home/tslib –enable-shared=yes –enable-static=yes
    configure: WARNING: if you wanted to set the –build type, don’t use –host.
    If a cross compiler is detected then cross compile mode will be used
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for arm-linux-strip… arm-none-linux-gnueabi-strip
    checking for a thread-safe mkdir -p… /bin/mkdir -p
    checking for gawk… no
    checking for mawk… mawk
    checking whether make sets $(MAKE)… yes
    checking for arm-linux-gcc… arm-none-linux-gnueabi-gcc
    checking whether the C compiler works… no
    configure: error: in `/usr/local/tslib’:
    configure: error: C compiler cannot create executables
    See `config.log’ for more details

    Could you please help me solve it?

    I thank you so much.

    Jack.

  9. Dear Ganeshred.

    Thank so much.

    I’m a newbee in Linux and mini2440, sorry for asking you lots of questions.

    Today I’ve tried to install arm-linux-gcc 4.3.2 and finally, I’ve install tslib successfully.

    Next step, I installed Qt 4.6.3 step by step following your guide. Everything seems OK till the “make” command. The error is:

    ../../corelib/tools/qbytearray.cpp:54:18: fatal error: zlib.h: No such file or directory
    compilation terminated.
    make[1]: *** [.obj/release-static-emb-arm/qbytearray.o] Error 1
    make[1]: Leaving directory `/home/jack/Downloads/qt-everywhere-opensource-src-4.6.3/src/tools/bootstrap’
    make: *** [sub-tools-bootstrap-make_default-ordered] Error 2

    Sorry for my bad English, I hope you can understand me.

    Thank you.

    Jack.

  10. Dear Ganeshred.

    I’ve tried sudo apt-get build-essential:

    root@ubuntu:/usr/local/qt-everywhere-opensource-src-4.6.2# sudo apt-get install build-essential
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    build-essential is already the newest version.
    build-essential set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    However, the error still appears when use “make”:

    root@ubuntu:/usr/local/qt-everywhere-opensource-src-4.6.2# make
    [… many words here..]
    ../../corelib/tools/qbytearray.cpp:54:18: fatal error: zlib.h: No such file or directory
    compilation terminated.
    make[1]: *** [.obj/release-static-emb-arm/qbytearray.o] Error 1
    make[1]: Leaving directory `/usr/local/qt-everywhere-opensource-src-4.6.2/src/tools/bootstrap’
    make: *** [sub-tools-bootstrap-make_default-ordered] Error 2

    So I couldn’t install Qt4.6.2 and Qt4.6.3. Please help me.

    Thanks.

    Jack.

  11. I faced some problem when using ./configure to install Qt:

    root@ubuntu:/usr/local/qt-everywhere-opensource-src-4.6.3# ./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools -qt-sql-sqlite -no-3dnow -system-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-opengl -gtkstyle -no-openvg -no-xshape -no-xsync -no-xrandr -qt-freetype -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-linuxinput -qt-mouse-tslib -qt-mouse-linuxinput

    Result:
    /usr/local/qt-everywhere-opensource-src-4.6.3/bin/qmake: 1: Syntax error: word unexpected (expecting “)”)
    The tslib functionality test failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR and QMAKE_LIBDIR in
    /usr/local/qt-everywhere-opensource-src-4.6.3/mkspecs/qws/linux-arm-g++

    Could anyone please help me? Thanks

  12. I’ve stuck at mini2440 board environment configuration.

    If I use $vi rcS ===> when I reset the board, it pause at the starting screen (with penguin Friendly ARM).

    If I skip this step and use
    $cd /etc/
    $vi profile
    ===> the board normally starting.
    But when I use
    $cd /mnt/demos/embedded/fluidlauncher/
    $./fluidlauncher -qws
    ===> I’ve got errors: ./fluidlauncher: error while loading shared libraries: libts-1.0.so.0: cannot open shared object file: No such file or directory

    please tell me where was I wrong?

    • go the directory usr/local/lib/ and check whether the library file libts-1.0.so.0 exists or not if yesmake a soft link it will solve the issue like this
      ln -s /usr/local/lib/libts-0.0.so.0 /usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/libts-0.0.so.0

      • Hi Ganesh,

        Unlike DzungDang’s error, I get libts-0.0.so.0: cannot open shared object file: No such file or directory.

        I followed your directions and created a softlink but i sill get the above error. Where does fluidlauncher look for this particular shared library. Any help is appreciated.

      • did you copied the files correctly..check whether the file are at exact location…and also check their permissions

  13. It’s works, cheers!!!! thankx a lot 😀 make a soft link like this:
    ln -s /usr/local/lib/libts-0.0.so.0 /usr/local/Qt/lib/libts-1.0.so.0

    when I disable qtopia from etc/init.d/rcS for running the hello world application when restarting the board, the helloworld application starts, but the touchscreen doesn’t work 🙂 could you please tell me how to solve this problem? thanks 🙂

    • Hi,
      i followed all the steps.
      i got the error for libts-0.0.so.0,
      So according DzungDang, i did
      ln -s /usr/local/lib/libts-0.0.so.0 /usr/local/Qt/lib/libts-0.0.so.0.

      But now, i am getting the error
      “error while loading shared libraries: libQtGui.so.4 cannot open shared object file. No such file or directory”.

      How should i solve this problem ??

    • Hi DzungDang,
      I am facing the exact same problem.
      I can see the display, but the touchscreen doesn’t work.
      How did you solve this problem ??

  14. Hello I am trying to run this routine I am getting stuck up at the following

    swami@swami-buntu:/usr/local/tslib$ sudo ./configure –host=arm-linux –prefix=/home/tslib –enable-shared=yes –enable-static=yes
    configure: WARNING: If you wanted to set the –build type, don’t use –host.
    If a cross compiler is detected then cross compile mode will be used.
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for arm-linux-strip… no
    checking for strip… strip
    checking for a thread-safe mkdir -p… /bin/mkdir -p
    checking for gawk… gawk
    checking whether make sets $(MAKE)… yes
    checking for arm-linux-gcc… no
    checking for gcc… no
    checking for arm-linux-cc… no
    checking for cc… no
    checking for arm-linux-cl.exe… no
    checking for cl.exe… no
    configure: error: in `/usr/local/tslib’:
    configure: error: no acceptable C compiler found in $PATH
    See `config.log’ for more details.

    • you dont have any of the dependencies your toolchain is not correct pls start from begining once again and cross check all steps

      • Ok I have decided to give a try from beginning once again. will get back for any assistance required to get the dependencies properly done.

  15. Hi I try to install arm toolchain “arm-linux-gcc-4.3.2.tgz” from friendyarm site to /usr/local/arm location. Previosyl I installed arm tool chain . When I ran arm-linux-gcc -v , Command was ran succesfully. Now I delete arm folder to reinstall all the component for embedded programing . I install arm toolchain then set up PATH and ı can see PATH When write echo $PATH at command line. Why arm-linux-gcc command cannot run 😦

  16. When I try this command above ‘$cp -r * /media/Pendrive/tslib/lib/’
    I get error like this
    cp cannot create symbolic link…… operation not permitted . This is about libts-1.0.so.0 and libts.so in home/tslib/lib folder . After that I formet my usb stich with ext2 format. Then That is okey . But ı can’t access to usb stcik with /udisk . How to mount usb with ext2 .

    • try using the command “df” it will show all the mounted partitions and see the path of your usb flash

  17. Ok ı solve symbolic link problem My HelloWorld Application works on mini 2440. But There is no touch panel function or usb mouse does not work. What can be done for this problem. When ı try to run porgram , Progmram work then command live show a message following:

    ‘ QWSTslibMouseHandlerPrivate: ts_config() failed with error: ‘No such file or di’
    Please check your tslib installation! ‘

  18. with some adjustments I got Qt to compile (Ubuntu-12.04(32) on 64 bit workstation) but had to drop the -qt-mouse option. I think the Qt configure line in this thread does not show the complete line with FireFox.

    I am also trying to include the Mysql capability,

    Help with the ‘configure’ command that enables mouse & USB-Keyboard & Mysql is appreciated.

  19. To Enable USB keyboard support : -qt-kbd-linuxinput add this as paramenter of configure command…Personally i never tried mysql..but when i searched reagrding your query i found this….
    Pass option “-qt-sql-mysql” to configure – this will compile MySQL support directly into Qt.

    Pass option “-plugin-sql-mysql” to configure – this will compile MySQL support as plugin.

    • All my research confirms that I need the -qt-sql-mysql but apparently there are additional issues to resolve in making it work. I think some of the confusion results from what might already be installed on on the development computer prior to using additional configure features. I found a couple packages that I needed to install in order to make this ‘how-to’ function at all. I will try to enhance the ‘how-to’ by documenting what additional packages were required. Since I am working from a ‘basic’ Ubuntu Desktop installation, I am more likely to require ‘add-on’s then someone using a workstation that has been used for other simular project development.

  20. Once compiled, which fliles need to be set in the QT-CREATOR for the new version. I have “Qt 4.6.3(Qt)” for the new version but can not find a ToolChain that builds without complaining about the FileFormat and Relocations in generic ELF

  21. i m getting error while cross-sompiling qt source-code as a
    /home/prashant/Desktop/PRASHANT_MATERIAL/MINI2440-MATERIALS/mini2440/qt-everywhere-opensource-src-4.6.3/bin/qmake: 1: Syntax error: word unexpected (expecting “)”)
    The tslib functionality test failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR and QMAKE_LIBDIR in
    /home/prashant/Desktop/PRASHANT_MATERIAL/MINI2440-MATERIALS/mini2440/qt-everywhere-opensource-src-4.6.3/mkspecs/qws/linux-arm-g++.

    • according to my knowledge this may occur due to two reasons…one is that you may miss typed or dropped some part of the qmake.conf while copying…..else it will be a permission issue…

  22. i m using qt-4.6.2 source i have successfully cross-compiled librairis but while executing my
    hello world app while building qt-creator showing following error
    /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /home/tslib/lib//libts.so when searching for -lts

  23. Dear all,

    i am able to cross compile and run Qt application on mini2440 by using “-qws ”
    command in terminal.
    but how to install Qt application on mini2440 so that directly by Double click on the icon we can able to Run the program..
    for this what i have to do.?

    please help me…

    Thanks and Regards.
    Sunil

  24. Thanks for your help! i spend 2 weeks to looking for how do compiling tslib. and now i have successed. But in part 2: when i run :

    ” ./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools -qt-sql-sqlite -no-3dnow -system-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-opengl -gtkstyle -no-openvg -no-xshape -no-xsync -no-xrandr -qt-freetype -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-linuxinput -qt-mouse-tslib -qt-mouse-linuxinput

    then ‘o’ and ‘yes’. it have a errors :

    Creating qmake. Please wait…
    g++ -c -o project.o -pipe -DQMAKE_OPENSOURCE_EDITION -O0 -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/usr/local/qt-everywhere-opensource-src-4.6.3/include -I/usr/local/qt-everywhere-opensource-src-4.6.3/include/QtCore -I/usr/local/qt-everywhere-opensource-src-4.6.3/src/corelib/global -I/usr/local/qt-everywhere-opensource-src-4.6.3/src/corelib/xml -I/usr/local/qt-everywhere-opensource-src-4.6.3/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/local/qt-everywhere-opensource-src-4.6.3/mkspecs/qws/linux-x86-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp
    make: g++: Command not found
    make: *** [project.o] Error 127

    please help me !!

  25. Dear Ganeshred!
    i have a error following:
    [root@FriendlyARM /]# cd /mnt/demos/embedded/fluidlauncher/
    [root@FriendlyARM fluidlauncher]# ./fluidlauncher -qws
    Couldnt open tslib config file: No such file or directory
    QWSTslibMouseHandlerPrivate: ts_config() failed with error: ‘Invalid argument’
    Please check your tslib installation!

    Everythings is OK, so, i didn’t understand this fail! Please help me!
    Thanks so much!

  26. Hi,
    I am trying to compile same thing since two days, I am getting below errors
    /home/tparkash/tes/qt-everywhere-opensource-src-4.6.0/bin/qmake: 1: /home/tparkash/tes/qt-everywhere-opensource-src-4.6.0/bin/qmake: Syntax error: word unexpected (expecting “)”)
    The tslib functionality test failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR and QMAKE_LIBDIR in
    /home/tparkash/tes/qt-everywhere-opensource-src-4.6.0/mkspecs/qws/linux-arm-g++.

    I am very much sure about qmake.conf and permission on tslib and qt source. I am not sure why this issue is coming. Any help will be highly appreciated.

    Thanks
    Tej

    • I did one change i.e “sudo rm /bin/sh; sudo ln -s /bin/bash /bin/sh”
      It changed my error type to

      /home/tparkash/tes/qt-everywhere-opensource-src-4.6.0/config.tests/unix/compile.test: line 69: /home/tparkash/tes/qt-everywhere-opensource-src-4.6.0/bin/qmake: cannot execute binary file

      Any pointers?

      Thanks
      Tej

      • Ok, I have solved the Problem. Its very unfortunate that ppl did not tell what actually is the problem.
        Problem is we have to use Host qmake. For that whatever Export (export PATH=/usr/local/arm/4.3.2/bin:$PATH etc.) we did in step during tslib installation, we have to undo all of that. Thats it.

        Hope that help someone

        Thanks
        Tej

  27. Hi Ganesh,

    I now get the following error.
    QWSTslibMouseHandlerPrivate: ts_config() failed with error: ‘No such file or directory’
    Please check your tslib installation!

    my profile looks like this

    export LD_LIBRARY_PATH=/usr/local/tslib/lib
    export QTDIR=/usr/local/Qt
    export QWS_MOUSE_PROTO=tslib:/dev/input/event0
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_CONFFILE=/usr/local/etc/ts.conf
    export TSLIB_CONSOLEDEVICE=none
    export TSLIB_FBDEVICE=/dev/fb0
    export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
    export TSLIB_TSDEVICE=/dev/input/event0 *i changed this from /usr/local/tslib/lib/ts*
    export TSLIB_TSEVENTTYPE=INPUT
    export QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140

    Thanks,

    • Remove the line “export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts” and re-run ./fluidlauncher -qws….worked for me…the problem is definitely in the environment variables

      -Daniel

  28. Hi Ganesh,
    I was frustrated with all the changes i made so i reinstalled Ubuntu and started fresh.

    Now i stuck at Qt 4.6.2 compilation. I get The tslib functionality test
    failed,
    you might need to modify the include and library search paths by editing
    QMAKE_INCDIR and QMAKE_LIBDIR in ……”

    I have made sure my qmake.conf is correct. I have changed the sh->dash to sh->bash.

    But i still get the Tslib functionality test fail error. What else should i be checking?

    Thanks,
    Anvesh

  29. Shouldnt this line ($export CC=${CROSS_COMPILE}gcc) be $export CC=${CROSS_COMPILE}gcc-4.3.2 ?

    Because in the /usr/local/arm/4.3.2/bin folder, i cant find arm-none-linux-gnueabi-gcc
    I can only find arm-none-linux-gnueabi-gcc-4.3.2

    Please confirm.

  30. Can some one help me solve the below issue? I get the following error:
    configure:3273: arm-none-linux-gnueabi-gcc-4.3.2 -march=armv4t conftest.c >&5
    Assembler messages:
    Fatal error: invalid -march= option: `armv4t’

    Below is my config.log

    configure:2915: checking for arm-linux-gcc
    configure:2942: result: arm-none-linux-gnueabi-gcc-4.3.2
    configure:3211: checking for C compiler version
    configure:3220: arm-none-linux-gnueabi-gcc-4.3.2 –version >&5
    arm-none-linux-gnueabi-gcc-4.3.2 (Sourcery G++ Lite 2008q3-72) 4.3.2
    Copyright (C) 2008 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    configure:3231: $? = 0
    configure:3220: arm-none-linux-gnueabi-gcc-4.3.2 -v >&5
    Using built-in specs.
    Target: arm-none-linux-gnueabi
    Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure –build=i686-pc-linux-gnu –host=i686-pc-linux-gnu –target=arm-none-linux-gnueabi –enable-threads –disable-libmudflap –disable-libssp –disable-libstdcxx-pch –with-gnu-as –with-gnu-ld –enable-languages=c,c++ –enable-shared –enable-symvers=gnu –enable-__cxa_atexit –with-pkgversion=’Sourcery G++ Lite 2008q3-72′ –with-bugurl=https://support.codesourcery.com/GNUToolchain/ –disable-nls –prefix=/opt/codesourcery –with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc –with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/libc –with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr –with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr –disable-libgomp –enable-poison-system-directories –with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin –with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
    Thread model: posix
    gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)
    configure:3231: $? = 0
    configure:3220: arm-none-linux-gnueabi-gcc-4.3.2 -V >&5
    arm-none-linux-gnueabi-gcc-4.3.2: ‘-V’ option must have argument
    configure:3231: $? = 1
    configure:3220: arm-none-linux-gnueabi-gcc-4.3.2 -qversion >&5
    arm-none-linux-gnueabi-gcc-4.3.2: unrecognized option ‘-qversion’
    arm-none-linux-gnueabi-gcc-4.3.2: no input files
    configure:3231: $? = 1
    configure:3251: checking whether the C compiler works
    configure:3273: arm-none-linux-gnueabi-gcc-4.3.2 -march=armv4t conftest.c >&5
    Assembler messages:
    Fatal error: invalid -march= option: `armv4t’
    configure:3277: $? = 1
    configure:3315: result: no
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME “tslib”
    | #define PACKAGE_TARNAME “tslib”
    | #define PACKAGE_VERSION “1.0.0”
    | #define PACKAGE_STRING “tslib 1.0.0”
    | #define PACKAGE_BUGREPORT “kergoth@handhelds.org”
    | #define PACKAGE_URL “”
    | #define PACKAGE “tslib”
    | #define VERSION “1.0.0”
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:3320: error: in `/usr/local/tslib’:
    configure:3322: error: C compiler cannot create executables
    See `config.log’ for more details

  31. Hi,

    first of all, thanks a lot for this tutorial. It helped me so much!

    Unfortunately, I got some of the problems listed on the comments, but after several tries and researches I finally could compile and run my first Hello World application on Qt on mini2440, under the default linux version.

    To solve the problem on tslib compilation, I used:

    “$ ./configure –host=arm-linux –prefix=/home/tslib –enable-shared=yes –enable-static=yes CC=/opt/toolchain/mini2440/arm-unknown-linux-gnueabi/bin/arm-mini2440-gcc ”

    specifying the gcc cross-compiler path with the “CC”.

    To solve problem with the “-qt-mouse-tslib” on the Qt cross-compilation, I inserted the line (after QMAKE_LIBDIR):

    QMAKE_LFLAGS += -Wl,-rpath-link=/usr/local/tslib/lib

    on the file “mkspecs/qws/linux-arm-g++/qmake.conf” and removed all lines until the “load(qt_config)”.

    I hope that it could be useful.

    Regards,
    Rodolfo

  32. Hi All,

    I too have enteered into the endless loop of crosscompiling. I am facing probles comipling the tslib. I am stuck with the “make install”. Pls check the output and suggest…

    regards,

    system@giridhar-12:~/Downloads/tslib$ sudo make install
    Making install in etc
    make[1]: Entering directory `/home/system/Downloads/tslib/etc’
    make[2]: Entering directory `/home/system/Downloads/tslib/etc’
    test -z “/home/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/system/Downloads/tslib/etc’
    make[1]: Leaving directory `/home/system/Downloads/tslib/etc’
    Making install in src
    make[1]: Entering directory `/home/system/Downloads/tslib/src’
    /bin/bash ../libtool –tag=CC –mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -DPLUGIN_DIR=\”/home/tslib/lib/ts/\” -DTS_CONF=\”/home/tslib/etc/ts.conf\” -DTSLIB_INTERNAL -fvisibility=hidden -DGCC_HASCLASSVISIBILITY -O2 -Wall -W -MT ts_attach.lo -MD -MP -MF .deps/ts_attach.Tpo -c -o ts_attach.lo ts_attach.c
    libtool: compile: arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -DPLUGIN_DIR=\”/home/tslib/lib/ts/\” -DTS_CONF=\”/home/tslib/etc/ts.conf\” -DTSLIB_INTERNAL -fvisibility=hidden -DGCC_HASCLASSVISIBILITY -O2 -Wall -W -MT ts_attach.lo -MD -MP -MF .deps/ts_attach.Tpo -c ts_attach.c -fPIC -DPIC -o .libs/ts_attach.o
    ../libtool: line 1125: arm-linux-gcc: command not found
    make[1]: *** [ts_attach.lo] Error 1
    make[1]: Leaving directory `/home/system/Downloads/tslib/src’
    make: *** [install-recursive] Error 1
    system@giridhar-12:~/Downloads/tslib$

    • and my toolchain is setup properly. pl see the output

      arm-linux-gcc -v
      Using built-in specs.
      Target: arm-none-linux-gnueabi
      Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure –build=i686-pc-linux-gnu –host=i686-pc-linux-gnu –target=arm-none-linux-gnueabi –enable-threads –disable-libmudflap –disable-libssp –disable-libstdcxx-pch –with-gnu-as –with-gnu-ld –enable-languages=c,c++ –enable-shared –enable-symvers=gnu –enable-__cxa_atexit –with-pkgversion=’Sourcery G++ Lite 2008q3-72′ –with-bugurl=https://support.codesourcery.com/GNUToolchain/ –disable-nls –prefix=/opt/codesourcery –with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc –with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/libc –with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr –with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr –disable-libgomp –enable-poison-system-directories –with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin –with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
      Thread model: posix
      gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)
      system@giridhar-12:~/Downloads/tslib$

      • Sorry all, I could finally compile it. There was a problem with the path I gave with ” ./configure ” command.

        Am trying to compile qt 4.6.3 for friendlyarm. will get back with the results.

  33. cp: cannot create symbolic link `/media/GALAXY/tslib/lib/libts.so’: Operation not permitted
    Need help to solve this..

  34. Tslib() ib install but touch screen is not work

    Show error

    QWSTslibMouseHandlerPrivate: ts_config() failed with error: ‘No such file
    or di’
    Please check your tslib installation!

  35. /usr/local/qt/arm-qte-4.6.3/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: line 69: /usr/local/qt/arm-qte-4.6.3/qt-everywhere-opensource-src-4.6.3/bin/qmake: cannot execute binary file

  36. qt-everywhere-opensource-src-4.6.3/bin/qmake: cannot execute binary file

    The tslib functionality test failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR and QMAKE_LIBDIR in
    /usr/local/qt/arm-qte-4.6.3/qt-everywhere-opensource-src-4.6.3/mkspecs/qws/linux-arm-g++.

  37. NEED HELP !!
    GOT ERROR at make.
    animation/qabstractanimation.cpp:1:0: error: bad value (armv4t) for -march= switch
    animation/qabstractanimation.cpp:1:0: error: bad value (arm920t) for -mtune= switch

  38. Hello, when i try ./autogen.sh, i have:

    libtoolize: rerunning libtoolize, to keep the correct libtool macros
    in-tree.
    configure.ac:7: installing `./missing’
    plugins/Makefile.am: installing `./depcomp’

    Is it a error??? Can you help me? Please!

  39. Hello,i completely install qt and tslib.compile my qt without any error. i also copied the lib folder in qt and tslib to mini2440 rootfilesystem usr/local.i connected to mini2440 through NFS.I go to mnt/demos/embedded/fluidlauncher.when i try to run fluid launcher application,following error occures.
    ./fluidlauncher -qws
    -/bin/sh: ./fluidlauncher: not found
    what i have to do now?please help me.

    • Hello,i completely install qt and tslib.compile my qt without any error. i also copied the lib folder in qt and tslib to mini2440 rootfilesystem usr/local.i connected to mini2440 through NFS.I go to mnt/demos/embedded/fluidlauncher.when i try to run fluid launcher application,following error occures.
      ./fluidlauncher -qws
      -/bin/sh: ./fluidlauncher: not found
      what i have to do now?please help me.

      • Hello,i completely install qt and tslib.compile my qt without any error. i also copied the lib folder in qt and tslib to mini2440 rootfilesystem usr/local.i connected to mini2440 through NFS.I go to mnt/demos/embedded/fluidlauncher.when i try to run fluid launcher application,following error occures.
        ./fluidlauncher -qws
        -/bin/sh: ./fluidlauncher: not found
        what i have to do now?please help me

  40. Thanks for your guidence in building qt for mini 2440.I faced some problems while configuring Qt by following command
    ./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools -qt-sql-sqlite -no-3dnow -system-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-opengl -gtkstyle -no-openvg -no-xshape -no-xsync -no-xrandr -qt-freetype -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-linuxinput -qt-mouse-tslib -qt-mouse-linuxinput

    I got the following error….

    project.o: could not read symbols: File in wrong format
    collect2: ld returned 1 exit status
    make: *** [/usr/local/qt-everywhere-opensource-src-4.6.3/bin/qmake] Error 1

    please help me

    • iI have the same error:
      /usr/bin/ld/:project.o:Recilation in generic ELF ( EM:40 )
      project.o : error adding symbols : File in wrong format
      collect 2: error : ld returned 1 exit status.
      make ** ….Error 1

      for solve this at first :
      cd /…/…/qt-every-where……/qmake/
      rm *.o

      with this you can ./configure again.

  41. Hi dude
    I have a big problem. When I run following command :
    $./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools -qt-sql-sqlite -no-3dnow -system-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-opengl -gtkstyle -no-openvg -no-xshape -no-xsync -no-xrandr -qt-freetype -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-linuxinput -qt-mouse-tslib -qt-mouse-linuxinput

    I get this error:
    Do you accept the terms of either license? y

    Creating qmake. Please wait…
    arm-none-linux-gnueabi-g++ -c -o project.o -m64 -pipe -DQMAKE_OPENSOURCE_EDITION -O0 -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/usr/local/qt-everywhere-opensource-src-4.6.3/include -I/usr/local/qt-everywhere-opensource-src-4.6.3/include/QtCore -I/usr/local/qt-everywhere-opensource-src-4.6.3/src/corelib/global -I/usr/local/qt-everywhere-opensource-src-4.6.3/src/corelib/xml -I/usr/local/qt-everywhere-opensource-src-4.6.3/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/local/qt-everywhere-opensource-src-4.6.3/mkspecs/linux-g++-64 -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp
    cc1plus: error: unrecognized command line option “-m64”
    make: *** [project.o] Error 1

    I have Ubuntu 14.04 64bit operating system. Does that have anything to do with this error?
    Please help me.

  42. bhauceeri@ubuntu:/usr/local/qt-everywhere-opensource-src-4.6.3$ make
    /usr/local/qt-everywhere-opensource-src-4.6.3/bin/qmake -spec mkspecs/qws/linux-arm-g++ -unix -o Makefile projects.pro
    make: /usr/local/qt-everywhere-opensource-src-4.6.3/bin/qmake: Command not found
    make: *** [Makefile] Error 127
    what does this error menas??
    how to remove??

  43. Original Poster
    Rep: Reputation: Disabled

    1. tslib compilation
    $cd /usr/local
    $git clone http://github.com/kergoth/tslib.git
    $export PATH=/usr/local/arm/4.3.2/bin:$PATH
    $export CROSS_COMPILE=arm-none-linux-gnueabi-
    $export CC=${CROSS_COMPILE}gcc
    $export CFLAGS=-march=armv4t
    $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”
    $export ac_cv_func_malloc_0_nonnull=yes
    $cd /usr/local/tslib
    $./autogen-clean.sh
    $./autogen.sh
    $./configure –host=arm-linux –prefix=/home/tslib –enable-shared=yes –enable-static=yes
    $make
    $make install

    i followed this steps for first tslib installation but when i checked file libts-1.0.so.0.0.0 in lib file then i got following output==>
    libts-1.0.so.0.0.0: ELF 32-bit LSB shared object, “Intel 80386”, version 1 (SYSV), dynamically linked, BuildID[sha1]=0xd113e8e6a6562ca3bd32f286ed9611919adc9a44, not stripped

    i want arm instead of that Intel 80386??

    • export CROSS_COMPILE=arm-none-linux-gnueabi-
      export CC=${CROSS_COMPILE}gcc
      export CFLAGS=-march=armv4t
      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”
      export ac_cv_func_malloc_0_nonnull=yes

      ]# cd /home/user/Download/
      ]# tar -xvjf tslib-1.4.tar.bz2
      ]# cd tslib-1.4
      ]# ./autogen-clean.sh
      ]# ./autogen.sh

      ]# ./configure –prefix=/usr/local/Crosstslib –host=arm-linux –target=arm-linux –enable-static –enable-shared

      ]# make (the processor is multicore then -j2/4)
      ]# make install

  44. Pingback: Qt installation error is “The tslib functionality test failed! ” - HTML CODE
  45. hi,
    i followed all the steps as mentioned.
    i was getting the error for libts-0.0.s0.0, after which i inserted the soft link.
    now i am getting the error “error while loading the shared libraries: libQtGui.so.4 cannot open the shared object file. No such file or directory”.
    what should i do ??

  46. Hi,
    i followed all the steps.
    i got the error for libts-0.0.so.0,
    So according DzungDang, i did
    ln -s /usr/local/lib/libts-0.0.so.0 /usr/local/Qt/lib/libts-0.0.so.0.

    But now, i am getting the error
    “error while loading shared libraries: libQtGui.so.4 cannot open shared object file. No such file or directory”.

    How should i solve this problem ??

  47. Hello,
    I followed exactly the same steps mentioned above but I am failing write in the ./configure step of qt-4.6 cross compilation. Following is the error that I am getting –
    ./configure -options……
    .
    .
    .
    .
    .
    arm-none-linux-gnueabi-g++ -c -o qxmlutils.o -pipe -DQMAKE_OPENSOURCE_EDITION -O0 -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/home/weds/qt-everywhere-opensource-src-4.6.1/include -I/home/weds/qt-everywhere-opensource-src-4.6.1/include/QtCore -I/home/weds/qt-everywhere-opensource-src-4.6.1/src/corelib/global -I/home/weds/qt-everywhere-opensource-src-4.6.1/src/corelib/xml -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/weds/qt-everywhere-opensource-src-4.6.1/mkspecs/qws/linux-x86-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT /home/weds/qt-everywhere-opensource-src-4.6.1/src/corelib/xml/qxmlutils.cpp
    arm-none-linux-gnueabi-g++ -o “/home/weds/qt-everywhere-opensource-src-4.6.1/bin/qmake” project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o option.o ………….
    ………………………………… qcryptographichash.o qxmlstream.o qxmlutils.o
    /home/weds/qt-everywhere-opensource-src-4.6.1/bin/qmake: 1: Syntax error: word unexpected (expecting “)”)
    /home/weds/qt-everywhere-opensource-src-4.6.1/bin/qmake: 1: Syntax error: word unexpected (expecting “)”) (this repeats several times)
    The host system byte order could not be detected!
    Turn on verbose messaging (-v) to see the final report.
    You can use the -host-little-endian or -host-big-endian switch to
    ./configure to continue.

    I have searched for this “….Syntax error: word….” error all over google. Going by the posts this seems to be a pretty common error. But somehow, even after reading numerous posts I am still clueless as to What this Error is and How to solve it.

    It would be really great if someone would help me in understanding this error.

    P.S 1 – My Sourcery_G++_Lite toolchain in located in /opt/WedsSourcery/ directory and my PATH variable is correctly pointing to /opt/WedsSourcery/Sourcery_G++_Lite/bin.
    P.S 2 – This particular “Sourcery_G++_Lite” toolchain I got in the form of a .tgz file from a Vendor Company. I just extracted it inside /opt/WedsSourcery/ directory. I hope that’s not a problem.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s