Thursday, April 28, 2011

Upgrade Qt4.6.2 in mini2440

After day by day searching code from many forums, I lastly did compile Qt4.6.2 successfully on my Ubuntu 10.04. After that work, 'fluid program' run perfectly on the mini2440 board. Also, my own programs which are written in QtCreator could run on the board (I will write the instructions on later article)
And now, the way of upgrading Qt4.6.2 in mini2440 is listed below.
At first, you should have general view of the work:
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.
................................................................................................................


Sorry readers, I will not continue this blog. All content is transfer to new blog.
Please visit here engineeryou.blogspot.com
Thank you

97 comments:

  1. Great ! After about 3 weeks trying to compile buildroot you have come with a surprising solution. Congratulations from Manoel Gomes de Andrade (andrade.manoel@gmail.com)

    ReplyDelete
  2. Hi, i have a problem. in step 2, when i call make command

    #then, you will wait for about 5 miniutes

    $make <---- this make
    #it will take nearly one hour on my due core 1.7GHz laptop, too long!

    i have this error:

    ./../corelib/tools/qbytearray.cpp:54:18: error: zlib.h: No such file or directory
    ../../corelib/tools/qbytearray.cpp: In function ‘QByteArray qCompress(const uchar*, int, int)’:
    ../../corelib/tools/qbytearray.cpp:467: error: ‘::compress2’ has not been declared
    ../../corelib/tools/qbytearray.cpp:470: error: ‘Z_OK’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:477: error: ‘Z_MEM_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:481: error: ‘Z_BUF_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:485: error: ‘Z_BUF_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp: In function ‘QByteArray qUncompress(const uchar*, int)’:
    ../../corelib/tools/qbytearray.cpp:548: error: ‘::uncompress’ has not been declared
    ../../corelib/tools/qbytearray.cpp:552: error: ‘Z_OK’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:568: error: ‘Z_MEM_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:572: error: ‘Z_BUF_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:576: error: ‘Z_DATA_ERROR’ was not declared in this scope

    you have an idea some this?? A solution?'
    thanks for your patient

    ReplyDelete
    Replies
    1. sudo apt-get install zlib1g-dev

      Delete
  3. Hi ThX. It seems that you lacked file named "zlib.h" so that it made the following errors. I'm not sure with reason for this kind of error. Did you get qt-everywhere-opensource-src-4.6.2.tar.gz from the Qt site? If yes, I suggest you delete them all and try to download again from Qt's website, extract it and cross-compile again.
    In my computer, i've two zlib.h files on:
    /usr/local/qt-everywhere-opensource-src-4.6.2/src/3rdparty/freetype/src/gzip
    and on:
    /usr/local/qt-everywhere-opensource-src-4.6.2/src/3rdparty/zlib

    check your computer to find whether it is existed. Tell me the result you got. Good luck

    ReplyDelete
  4. Hi, thanks. for your disponition. Yesterday i resolve the problem, trough your tips and other ;)
    So, i has re-download from official site the qt-everywhere-opensource-src-4.6.2 and extrac it. I make the same step in your guide but i has the same problem. I search the tslib in my system but there was present in the same directory that you show in precedent response. So, i download and isntall the package:
    zlib-bin
    zlib1g-dev
    zlib1g
    with apt-get. After this the compialtion of Qt are succeded and i'm very very happy ;)
    thanks a lot for your disponition.

    ReplyDelete
  5. Hi ThX, i'm glad when your works get result (The happiness comes only when results go after hard work, doesn't it?). Good luck with coding :)

    ReplyDelete
  6. Hello, i have a problem. in step 2, when i call

    ./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 have this error:

    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/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.2/mkspecs/qws/linux-arm-g++.
    root@ignacio-desktop:/usr/local/qt-everywhere-opensource-src-4.6.2#

    you have an idea some this??
    thanks

    ReplyDelete
  7. I personally think that the qmake in your computer has a problem (improper installation, i guess)
    Please run two commands and do cross-compile Qt again.
    sudo apt-get install qt3-dev-tools
    sudo apt-get install libqt3-mt-dev

    That's just what i guess. Please tell me what you get, if it's still not success, tell me so that i will find other ways.
    Good luck

    ReplyDelete
    Replies
    1. Hi I'm José Nunes.
      I've had the same problem as Anonymous and I've followed your steps:

      sudo apt-get install qt3-dev-tools
      sudo apt-get install libqt3-mt-dev

      But I'm still with the problem, could you please help me to solve this problem?

      I've compiled the tslib with no problem.

      Delete
  8. sorry.... now it's work. Before intall the package qt3-dev-tools and libqt3-mt-dev, I has to re-download from official site the qt-4.6.2 and extrac it. I make the same step in your guide and it finish ok.
    tks for your help and your time.

    ReplyDelete
  9. nice, i'm glad to hear that :)

    ReplyDelete
  10. Hi Phucxu,

    when di tslib compilation, i have some problem:
    $cd /usr/local
    $sudo 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
    Removing autogenned files...
    Done

    $./autogen.sh
    ./autogen.sh: 3:autoreconf: not found

    $./configure --host=arm-linux --prefix=/home/tslib --enable-shared=yes --enable-static=yes
    bash: ./configure:No such file or directory

    $make
    $make install

    I have a problem with the ./autogen.sh
    Do you have a solution?
    Should i start from beginning again to install tslib??

    Thanks,

    ReplyDelete
  11. Hi, I personally think that you should start from beginning, download tslib again from command "git clone ...". Tell me what you get.

    ReplyDelete
  12. phucxu said...
    Hi, I personally think that you should start from beginning, download tslib again from command "git clone ...". Tell me what you get.

    Hi again Phucxu,
    Now it's work. The solution, I have to install autoreconf.

    Yet, i have problem again in installing Qt. When i do "make install" i found some error

    ../../corelib/tools/qbytearray.cpp:54:18: error: zlib.h: No such file or directory
    ../../corelib/tools/qbytearray.cpp: In function ‘QByteArray qCompress(const uchar*, int, int)’:
    ../../corelib/tools/qbytearray.cpp:467: error: ‘::compress2’ has not been declared
    ../../corelib/tools/qbytearray.cpp:470: error: ‘Z_OK’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:477: error: ‘Z_MEM_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:481: error: ‘Z_BUF_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:485: error: ‘Z_BUF_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp: In function ‘QByteArray qUncompress(const uchar*, int)’:
    ../../corelib/tools/qbytearray.cpp:548: error: ‘::uncompress’ has not been declared
    ../../corelib/tools/qbytearray.cpp:552: error: ‘Z_OK’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:568: error: ‘Z_MEM_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:572: error: ‘Z_BUF_ERROR’ was not declared in this scope
    ../../corelib/tools/qbytearray.cpp:576: error: ‘Z_DATA_ERROR’ was not declared in this scope
    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

    Any ideas??

    Thanks,

    ReplyDelete
  13. Hi again Phucxu,
    We wanna install QT 4.6.2 as your command, What if QT 4.6.3 has been installed in Mini2440?

    Should we do reinstall QT4.6.3 first or just do your instruction above??

    Many thanks,
    -Paul-

    ReplyDelete
  14. Hi Paul, i'm sorry i fully don't get your means. If your board already has Qt4.6.3 inside, there is no needed to install previous version. If the board has Qt4.6.3 but you still want to install Qt4.6.2, just do the instructions above. And finally, if you want to install Qt4.6.3, i think it is possible to apply the same way upgrading Qt4.6.2 for Qt4.6.3
    Still query, feel free ask me here :)

    ReplyDelete
  15. Hi Anonymous, cross-compile is a hard job with a lot of unnamed errors. And your errors seem had been done by previous comments. Anyway, in your case, you should install those package with apt-get:
    zlib-bin
    zlib1g-dev
    zlib1g

    good luck!

    ReplyDelete
  16. Hi Phucxu,

    Sorry i cannot comment on your blog again.
    Please check your yahoo email.

    thanks,
    -Paul-

    ReplyDelete
  17. Hi
    From few weeks I fighting with Segmentation fault error, I try use toolchain 4.3.2 and 4.4.3 , effect is the same. If you use image with system from FriendlyARM downloads tell me which one do you use.

    ReplyDelete
  18. 1. Can this be applied on TQ2440 board?
    2. The board has Qtopia 2.2.0, following this tutorial, can I successfully develop apps on TQ2440 board.
    3. I know it is EmbedSky board, but it might not make a big difference.

    ReplyDelete
  19. How did you menage to copy the tslib files on SD card when there are symbolic links? What FS is on your SD card?

    ReplyDelete
  20. I'll answer my two questions :)

    1. Yes it can be applied.
    2. Yep again.
    3. It might not make a big difference.
    ---------------------------------------
    1. Compress the files in *.tar, copy to uSD card and uncompress them in the board FS.

    ReplyDelete
  21. i have problem like this:
    ./fluidlauncher: error while loading shared libraries: libts-0.0.so.0: cannot op
    en shared object file: No such file or directory

    , does anyone know what should i do..??

    ReplyDelete
  22. spectrum demo can't load Audio device ???
    how to init audio device when start...

    ReplyDelete
  23. Hi,
    Thanks for this tutorial. I need help with Touchscreen.
    I compiled Qt and tslib successfully.
    Typing "cat /dev/input/ts" works as mentioned (weird chars when touched).
    ts_calibrate and ts_test work fine too (touch screen is working fine).

    If I use "export QWS_MOUSE_PROTO=tslib:/dev/input/ts" it shows "Segmentation fault". When I replace this line by just "export QWS_MOUSE_PROTO=" (without driver:options" the my "Hello World" shows perfectly, but no touch screen.

    Compiling Qt with "-no-freetype" generates the same result: "Segmentation fault".

    I can't find a way to work touch with my app.

    Any suggestion?
    Thank you.
    Afonso.

    ReplyDelete
  24. I've managed to work with QMAKE_CFLAGS_RELEASE += -O2 set. Nice :)

    ReplyDelete
  25. Hi Anonymous, for error: "./fluidlauncher: error while loading shared libraries: libts-0.0.so.0: cannot open shared object file: No such file or directory"

    Make sure that you do the step 3 and 4 CORRECTLY. I also faced this problem before because of giving wrong PATH NAME of library.

    ReplyDelete
  26. @ Pham Thuan, sorry, i didn't do anything with audio before, i will try later

    ReplyDelete
  27. @Afonso, how about with "export QWS_MOUSE_PROTO=tslib:/dev/input/event0", it works fine? i supposed it'll be fine. I 've checked the MY board, there's no file "/dev/input/ts" but only "/dev/input/event0" and ".../mice".

    ReplyDelete
  28. Hi phuxcu gr8 post man and vry helpful for beginners ..
    I m stuck in ste 2 where it give error:

    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.2/mkspecs/qws/linux-arm-g++.
    i didnot have net connection on that computer so i downloaded a tar file of tslib and used it on my pc.
    i followed your methodology but i dont stand this step
    export PATH=/usr/local/arm/4.3.2/bin:$PATH
    because when i searched this path there was no such path
    could you please explain me what is the meaning of this path may be in fedora some packages are installed on diff locations so i can give the right path and i could complete the following steps..
    please try to rely me as soon as possible
    Thanks

    ReplyDelete
  29. @Abhishek: After installing tslib, reboot the system OR export all variables except PATH to empty string.

    ReplyDelete
  30. And if you have error like: "word unexpected (expecting ")")" there is a GREAT possibility that you have cross-compiled the qmake, that you shouldn't do.

    ReplyDelete
  31. @Abhishek: the path "PATH=/usr/local/arm/4.3.2/bin" is an "arm-linux-gcc-4.3.2 toolchain". You should find it and install it on your computer first; then, do those steps again. Every thing will be fine

    ReplyDelete
  32. Great post phucxu ihav done it in 2nd attempt it is very helpful ...thx a lot

    ReplyDelete
  33. I have performance issues. The GUI seems to work slow... any ideas or experience with that kind of issue?

    ReplyDelete
  34. I'm a "newbie" to Linux and I am trying to cross compile an application to run on the mini2440. I'm running Ubuntu 10.0.4 within VirtualBox on a Win7 PC.

    I have been following your examples and have run into a similar problem that was posted by "Anonymous" on June 26, 2011. I tried to follow the suggestions posted but my attempts to cross compile still fail with the following messages:

    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") ...

    Any other thoughts or things to look for or try out? Any help would be much appreciated.

    Thanks

    ReplyDelete
  35. From October 12
    "And if you have error like: "word unexpected (expecting ")")" there is a GREAT possibility that you have cross-compiled the qmake, that you shouldn't do."

    After installing tslib, reboot the system OR export all variables except PATH to empty string.

    ReplyDelete
  36. And delete the current folder with Qt that you have tried to compile and untar the source again and start the procedure from the beginning but follow the suggestions above.

    ReplyDelete
  37. Hey thanks!!! I was able to compile qt opensource on another pc and obtained the generated files..
    Now i want to know that can i use those file to cross compile qt application on other pc..
    I copied the following set of files on pasted it on location /usr/local/Qt and in Qt creator i am giving the path but it is not compiling on that path..

    ReplyDelete
  38. in my mini2440, i found an app named start Qt 4.6.3, does it mean, the device has already run on 4.6.3? so why should we change to 4.6.2?

    ReplyDelete
  39. Hey Phucxu ....
    I have successfully completed the task and now my application is running on board..
    i want to ask one thing that is there any way that as soon as i switch on the board my application opens ..
    because i have to install the application where i will not be having access to a computer so if there is any way that boards directly opens my application....

    ReplyDelete
  40. After finishing step 4, and rebooting ARM it just stopped at "Starting leds service ...". After a while, nothing happened! Can anyone help us?? What is the next step?

    ReplyDelete
  41. @Anonymous

    you need skip this step:
    #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.

    this step is cause here.

    ReplyDelete
  42. I-ve done that, but we found another problem. Now we have a error QWSTslibMouseHandlerPrivate:ts_config() failed with error: 'No such file or directory'
    Please check your tslib instalation

    Thanks for your help in advance!

    ReplyDelete
  43. Hi,
    I new to Linux and I'm guite lost!
    As someone wrote before I have a problem with the libts library. The message I get is the next:

    ./flickable: error while loading shared libraries: libts-0.0.so.0: cannot open shared object file: No such file or directory

    I have checked the contents of the folders and I think they are okay. In the tslib/lib folder I have libts-1.0.so.0 instead of libts-0.0.so.0.
    Is it possible to change this?

    Thanks for your help in advance!

    ReplyDelete
  44. Hello,
    I tried to run Qt example program, following steps 3, 4 and 5 but I find this error:

    Couldnt open tslib config file: No such file or directory
    QWSTslibMouseHandlerPrivate: ts_config() failed with error: 'No such file or directory'
    Please check your tslib installation!

    I check the Path wrote in the file "profile" of /etc directory, but all seems ok.

    Could you help me?

    Thanks a lot.

    Gio

    ReplyDelete
  45. Hi!

    Nice post!! :)
    I managed to complie tslib and qt4.7.4 under Ubuntu 11.10 32bit with arm-linux-gcc 4.3.2.
    Now I transfered the complied Qt/lib files and the demos and tslib to my mini2440 board. I follow your instructions.

    But when I try to modify the rcS file I get this error in console on my host pc:

    VFS: Mounted root (yaffs filesystem) on device 31:3.
    Freeing init memory: 108K

    cannot run '/etc/init.d/rcS': Permission denied

    Please press Enter to activate this console.
    can't open /dev/tty2: No such file or directory

    can't open /dev/tty3: No such file or directory

    can't open /dev/tty4: No such file or directory

    can't open /dev/tty2: No such file or directory

    can't open /dev/tty4: No such file or directory

    can't open /dev/tty3: No such file or directory
    ...... etc

    I tried to do this command after the modification : chmod -x rcS

    but the result is the same...

    What do you think? Where did I mistake?

    Thank you!!!

    ReplyDelete
  46. Hi,

    I need some help :)

    I typed:

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

    And I got:

    ...
    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... 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

    How can I set the C compiler?

    I have ELLK but it doesn't contains anything about GUI.

    Thank you :)

    David

    ReplyDelete
  47. Hi,

    Is this "export TSLIB_TSDEVICE=/usr/local/tslib/lib/ts" right?
    It didn't worked to me.

    TSLIB_TSDEVICE=/dev/input/event0 worked well.
    It took me for a week to find it.

    By the way this is a great tutorial. :-)

    fekda

    ReplyDelete
    Replies
    1. Hi,
      I am facing the problem that touchscreen does not work.
      I can see the display, but no touch screen.

      I changed TSLIB_TSDEVICE to /dev/input/event0, but still touch screen not working.

      How did you solve this problem ??

      Delete
  48. hey i got this error


    ./configure: 4463: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4472: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4490: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4499: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4518: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/which.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4860: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4877: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 4940: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 5037: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 5037: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 5037: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    ./configure: 5532: /usr/local/qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test: Permission denied
    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++.

    thanks in advance sara...

    ReplyDelete
    Replies
    1. hey i too got the same error...

      but i did it by placing "sudo" in front of each command.

      Delete
  49. and i've checked 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

    thanks in advance....

    ReplyDelete
  50. Hi i hav d/l your file n trying to run the "fluidlauncher" then ia m getting the below message...

    Could not read calibration: "/etc/pointercal"


    -- the application is displayed on my board but when i touch the screen the app got erased y i dont know ?

    plz helpp

    Thanks in Adv.

    ReplyDelete
  51. Hi....

    and I am getting this error on step.... make stage.

    Error: selected processor does not support Thumb mode `swp r4,r3,[r2]'

    Can anyone help ?

    ReplyDelete
  52. Hi,
    I used the pre-compiled version to test my mini2440. I set Qt Versions as it is mentioned above. But I got “Qt version is not properly installed, please run make install” error message.
    Does anybody know the way to set qmake properly?
    I suppose I have to set QT libraries and so on ... but I am not sure.
    Thanks, David

    ReplyDelete
  53. hi
    thanks for post.I have a question.
    when we want compile Qt, we must use CC,CXX,... as we use for tslib?
    i mean CC must be arm-none-linux-gnueabi-gcc ,...?

    ReplyDelete
  54. hi.
    I in previous comment ask for CXX,CC,...
    really after compile tslib,i restart computer and just set export PATH=/usr/local/arm/4.3.2/bin:$PATH
    and compile qt as you said.so there is no nag for The tslib functionality test failed!
    let me test a qt program i will send you if work or not.

    ReplyDelete
  55. Hi,
    I still have a problem:
    "[root@FriendlyARM fluidlauncher]# ./fluidlauncher -qws
    ./fluidlauncher: error while loading shared libraries: libts-1.0.so.0: cannot open shared object file: No such file or directory"

    I did pp.3-4 a couple of times (suspecting I forgot something), but the result is still the same.
    Do you have a clue about this problem?

    Just one thing: the symbolic links could not be copied to the USB-disk and then to the mini2440, so I build them myself (using "ln -s" command). But listing "ls -all" the same on mini and on PC, so I don't think that it's the problem...

    ReplyDelete
  56. hello i m prashant from last 3 weeks i m trying to compile qt-4.6.2 but everytime i m getting following errors as
    /mini2400WS/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /mini2400WS/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /mini2400WS/qt-everywhere-opensource-src-4.6.2/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
    /mini2400WS/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-arm-g++.

    i m using ubuntu-10.04 and kernel version-2.6.32-38-generic
    i m following same steps as mentioned above still problem exists

    ReplyDelete
  57. Dear all,

    please anyone help me.

    while compiling qt-everywhere-opensource-src-4.6.2
    i got following Error

    ine 69: /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: cannot
    execute binary file
    /usr/local/qt-everywhere-opensource-src-4.6.2/config.tests/unix/compile.test:
    line 69: /usr/local/qt-everywhere-opensource-src-4.6.2/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-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-arm-g++.
    [root@localhost qt-everywhere-opensource-src-4.6.2]#

    please help me
    thank you

    ReplyDelete
  58. Dear Sunil, for the problem of "The tslib functionality test failed!", I found that we should change link of "sh" file in /bin:
    $cd /bin
    $ls -l sh
    after this command, you will get result:
    sh->dash
    so, we will change sh->bash
    $ln -s bash sh
    $ls -l sh
    you will get sh->bash
    Okay, now restart computer and cross-compile again. Good luck.

    ReplyDelete
    Replies
    1. Dear phucxu,
      i followed your suggestions and i get following result..
      [root@localhost bin]# ls -l sh
      lrwxrwxrwx. 1 root root 4 Nov 20 19:20 sh -> bash

      please reply
      thank you

      Delete
    2. Hi Sunil,

      I also have a similar problem. How did you fix this? When i follow phucxu's advice, I get the following message.

      $ln -s bash sh
      ln: failed to create symbolic link 'sh' : File exists

      Thanks,
      Anvesh

      Delete
  59. make[1]: *** [.obj/release-shared-emb-arm/qabstractitemview.o] Error 1
    make[1]: Leaving directory `/usr/local/qt-everywhere-opensource-src-4.6.4/src/gui'
    make: *** [sub-gui-install_subtargets-ordered] Error 2
    I have this error in compiling both 4.6.2 and 4.6.4

    ReplyDelete
  60. Could you copy more line of error, i have no glue with those. By the way, did you install some tool like:
    sudo apt-get install qt3-dev-tools
    sudo apt-get install libqt3-mt-dev

    ReplyDelete
  61. Dear phucxu,

    Thanks for your Help.
    I will follow your suggestions and reply you soon.
    Please help me in future.

    and while compiling tslib
    when i enter make Command,
    i am getting following Error
    fbutils.o testutils.o font_8x8.o font_8x16.o ../src/.libs/libts.so -ldl -Wl,-rpath -Wl,/home/tslib/lib
    make[2]: Leaving directory `/usr/local/tslib/tests'
    make[2]: Entering directory `/usr/local/tslib'
    make[2]: Leaving directory `/usr/local/tslib'
    make[1]: Leaving directory `/usr/local/tslib'


    Thank you.

    ReplyDelete
    Replies
    1. Hi phucxu,
      Thanks for this great site. I am have same error as Sunil.

      .libs/ts_fd.o: could not read symbols File in wrong format

      Please i need your kind support.

      Regards,
      Jone

      Delete
  62. Dear phucxu,

    I am new to the Linux and Qt programming.
    This site is really Very useful to me,
    i am following your sites from last 20 days,
    http://mini2440vietnam.blogspot.in/2011/04/upgrade-qt462-in-mini2440.html?showComment=1354081536485#c1718322612473817653
    and
    http://mini2440vietnam.blogspot.in/2011/05/programming-application-for-mini2440-by.html

    i am getting Errors but i don't want to quit from this..
    i need your support,
    please help me.

    i am using Fedora 17 System.
    and i installed qt-sdk-linux-x86-opensource-2010.02.bin
    on my system.
    i want to create Qt Application in my PC and i want to Run on mini2440.
    i Don't know the Requirement for this,
    please reply.

    i hope you will help me,
    Thanks and Regards.
    Sunil


    ReplyDelete
  63. while you compile tslib
    you got those "Error"
    fbutils.o testutils.o font_8x8.o font_8x16.o ../src/.libs/libts.so -ldl -Wl,-rpath -Wl,/home/tslib/lib
    make[2]: Leaving directory `/usr/local/tslib/tests'
    make[2]: Entering directory `/usr/local/tslib'
    make[2]: Leaving directory `/usr/local/tslib'
    make[1]: Leaving directory `/usr/local/tslib'

    It seems good, so let's try with next step of Qt4.6.2 cross-compilation to see if there is any error. Good luck

    ReplyDelete
    Replies
    1. Dear phucxu,

      Thank you Very Much for your Information..
      This Blog Really Helped me a lot...
      Now i am able to cross-compile Qt and tslib.
      and create Qt Application using Qt creator and i am able to run Qt Application on mini2440(Loading automatically my own program before qtopia ).

      Delete
    2. Dear phucxu,
      now 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

      Delete
  64. it's nice to hear you can run a QtCreator program on mini2440. Sorry about your next issue, I forgot the way making icon on mini2440 screen but it is also easy. Let's try to see how mini2440's icon works. Let's manage yourself, good luck

    ReplyDelete
    Replies
    1. Dear phucxu,

      Thanks for your support...
      i Will try to Create icon on mini2440..
      If you get any information then please help me,

      Thanks and Regards.
      Sunil

      Delete
  65. i have bought new mini2440 lcd w35,before it is mini 2440 lcd n35. i have this install in virtual box Linux just include Qt,lib and tslib copied from original mini 2440 lcd n35 to mini 2440 lcd w35 and the Qt application works with this command ./(application name) -qws.
    But i have a problem when i am booting with serial port mini 2440 lcdw35,when i boot in NOR flash it is black screen. i have tried by solving changing male cable connector usb to serial to device but it is not working and also booting with sd card just black screen but when i read from sd card by telnet with mini2440 lcd w35 it can copy. I wonder where would it be wrong?

    Please help.

    Thanks and reagrds,
    Iqbal H.

    ReplyDelete
  66. Hi,

    I now get the following error. Please help.

    -L/usr/local/qt-everywhere-opensource-src-4.6.2/qt-everywhere-opensource-src-4.6.2/lib -L/home/tslib/lib/ -lpthread -lz -lm -ldl
    /home/tslib/lib//libts.so: file not recognized: File format not recognized
    collect2: ld returned 1 exit status
    make[1]: *** [../../lib/libQtCore.so.4.6.2] Error 1
    make[1]: Leaving directory `/usr/local/qt-everywhere-opensource-src-4.6.2/qt-everywhere-opensource-src-4.6.2/src/corelib'
    make: *** [sub-corelib-make_default-ordered] Error 2
    root@ubuntu:/usr/local/qt-everywhere-opensource-src-4.6.2/qt-everywhere-opensource-src-4.6.2#

    PS: I have excluded -qt-mouse-tslib argument becuase i was getting tslib functionality failed error.

    Thanks,
    Anvesh

    ReplyDelete
  67. Hi,

    I am trying to use the following files.
    Qt4.6.2 (pre-compiled)
    http://www.mediafire.com/?tytlz6cvuvbt661
    tslib (pre-compiled)
    http://www.mediafire.com/?0kb9kai5n7nt0i7

    But after i gunzip the files, I get a file of unrecognized type. Please help.

    Thanks,
    Anvesh

    ReplyDelete
  68. 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

    ReplyDelete
  69. Hi phucxu,

    Thanks for your guidelines. They were very helpful. After 5 straight days of labouring behind it, I finally got everything working flawlessy. To everyone else here, I've experienced most, if not all the problems you guys have specified. Keep working at it and it'll work out :)

    Thanks,
    Daniel

    ReplyDelete
  70. How to install to root_qtopia-128M.img and i don`t know the address of the to store in the in DNW I have work on the friendly arm M2440 board

    ReplyDelete
  71. Hi All,

    I get this error after I followed everything as per the document

    "./calculator: error while loading shared libraries: libts-0.0.so.0: cannot open shared object file: No such file or directory"

    The same application when I launch from the terminal enabling qtopia gets launched. Pls help...

    ReplyDelete
  72. Mình đang cài QT everywhere 4.6.3 trong qua trình cài đặt ok hết. Khi viết chương trinh và building với qmake mới cài đặt thì nó báo lỗi này . Mọi ngườ ai biết chỉ mình với mình sửa mấy ngay nay vẫn chưa được.
    /opt/qte/include/QtCore/qatomic_arm.h:-1: error: Assembler messages:
    /opt/qte/include/QtCore/qatomic_arm.h:131: error: no such instruction: `swpb %bl,%al,[%edx]'

    ReplyDelete
  73. i have this error:

    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    /usr/local/qt-everywhere-opensource-src-4.6.2/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.2/mkspecs/qws/linux-arm-g++.

    plz solve this issue

    ReplyDelete
  74. Dear phucxu,

    I tried the procedure givenby you and finally managed to compile qt using
    qt-everywhere-opensource-src-4.6.2.tar.gz

    I also copied tslib and Qt libraries with demos to the mini2440

    Now, if I try
    ./fluidlauncher -qws or any other demo,

    I get the error

    error while loading shared libraries : libz.so.1 Cannot open shared obj
    file: No such file or directory

    My linux platform is Fedora 10 and toolchain is arm-linux-gcc-4.5.1

    The file libz.so.1.2.3 and its link libz.so.1 is present on the host under
    /lib

    I could not locate libz.so.1.2.3 anywhere under
    /toolschain/4.5.1/arm-none-linux-gnueabi/lib so that I could copy it to the
    mini2440

    So I am stuck up.

    Also,how to download the following to the mini2440 to test the fluidlauncher demo ?
    Qt4.6.2 (pre-compiled)
    tslib (pre-compiled)

    Do I use supervivi, if yes what is the procedure ?

    Please help me, I have been struggling for almost four weeks now.
    .
    Thanks in advance

    ReplyDelete
  75. make[2]: *** [install-libLTLIBRARIES] Error 127
    When I install tslib the following errors are came
    Please help me

    make[2]: Leaving directory `/usr/local/tslib/src'
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/usr/local/tslib/src'
    make: *** [install-recursive] Error 1

    ReplyDelete
  76. jenny here.

    I had complete all the step except the last step. After edit profile file in the board. I reboot thee board, it stop at "Loading sound card config" then forever there. Please help me.
    I'm using FriendlyARM Mini210s board, Ubuntu 14.04LTS, Tools Chain is 4.5.1 version. Board mini210s cannot support your tutorial here?

    Thanks

    ReplyDelete
  77. hello experts,
    when i command in /usr/local/QT$ make
    make: *** No targets specified and no makefile found. Stop....
    is occured...
    now also i make install gives the same results

    ReplyDelete
  78. Hi,i'm new to mini2440..problem is mini2440 stops by showing Starting Qtopia, please waiting...and doesn't load desktop icons on the screen..what to do..? please help..

    ReplyDelete
  79. hi
    I need some help :)

    I typed:

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

    And I got:
    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... gawk
    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


    please help me


    Thank u

    ReplyDelete
  80. hi

    while i am configure a qt source(./configure) ,i am getting the following error


    Creating qmake. Please wait...
    arm-none-linux-gnueabi-g++ -c -o project.o -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/usr/local/qt-everywhere-opensource-src-4.6.2/include -I/usr/local/qt-everywhere-opensource-src-4.6.2/include/QtCore -I/usr/local/qt-everywhere-opensource-src-4.6.2/src/corelib/global -I/usr/local/qt-everywhere-opensource-src-4.6.2/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/usr/local/qt-everywhere-opensource-src-4.6.2/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp
    gmake: arm-none-linux-gnueabi-g++: Command not found
    gmake: *** [project.o] Error 127


    please help ....


    Thanks

    ReplyDelete
  81. ./test -qws
    blit setup(): Screen depth 32 not supported!
    aborted
    i using tinny 4412
    what must i do?
    please help thanks

    ReplyDelete
  82. cross compile Qt 4.8.5

    ReplyDelete
  83. i cant compile this

    ReplyDelete
  84. generators/makefiledeps.cpp:48: fatal error: qplatformdefs.h: No such file or directory
    compilation terminated.
    Can any one please help me from above error.
    I configured with below command

    ./configure -platform mkspecs/qws/linux-arm-g++/ -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

    ReplyDelete
  85. Hi,

    During compiling tslib as per above steps, I am getting the below error.

    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../src -DTS_POINTERCAL=\"/home/jignesh/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:112:14: error: 'SYN_MAX' undeclared (first use in this function)
    input-raw.c:112:14: note: each undeclared identifier is reported only once for each function it appears in
    input-raw.c:112:7: warning: unused variable 'synbit' [-Wunused-variable]
    input-raw.c: In function 'ts_input_read_mt':
    input-raw.c:496:11: error: 'ABS_MT_TOOL_X' undeclared (first use in this function)
    input-raw.c:501:11: error: 'ABS_MT_TOOL_Y' undeclared (first use in this function)
    make[2]: *** [input-raw.lo] Error 1
    make[2]: Leaving directory `/usr/local/tslib/plugins'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/tslib'
    make: *** [all] Error 2

    I am using Ubuntu 12.04(32bit).

    ReplyDelete
    Replies
    1. Hello, was there any fix for this? I mean the error: input-raw.c:496:11: error: 'ABS_MT_TOOL_X' undeclared (first use in this function)

      Delete