QT target compilation on i.MX51 with Ubuntu 10.04



  • hi, i'm using i.mx51 with ubuntu 10.04

    I have qt-everywhere-opensource-src-4.6.0.tar.gz and trying to install QT for my target i.MX51 evk.

    I hav done my configuration successfully and i'm getting errors while executing make command.

    the configuration command i had given is :

    $ ./configure -embedded arm -xplatform qws/linux-mxc-g++ -release -prefix /usr/local/Trolltech/Qt-target-version -qt-gfx-linuxfb -qt-kbd-tty -qt-mouse-pc -webkit -exceptions -verbose -little-endian -host-little-endian

    i had left openGL and tslib because i'm also getting errors with them related to " qmake.conf " file and my application doesn't need those packages.

    the error i'm getting while executing make command is:

    /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find -lglib-2.0
    collect2: ld returned 1 exit status
    make[1]: *** [../../lib/libQtCore.so.4.6.0] Error 1
    make[1]: Leaving directory `/home/ubuntu10/qt-src-4.6.0/qt-target/src/corelib'
    make: *** [sub-corelib-make_default-ordered] Error 2


    Please help me in solving this .....
    i hav been trying this from the last 10 days but i'm unable to crack these errors.

    if you know the compilation along with openGl ,es2, tslib,openssl then please help me in resolving those errors also....

    if possible usend me your qmake.conf file



  • Hello.

    When you try to compile for the target platform you have to point Qt toward the libraries compiled for that system. It is apparent that you miss the file libglib-2.0.so , either because the folder provided in qmake.conf is wrong or because the file simply isnt there. Obviously you cannot provide a path to your laptop/workstations version of these libraries to solve the issue.

    If you use LTIB when setting up the image to be used on the card, look at the second link. It specifies that you use glib2.0 when you compile qt.

    Regarding opengl, es2, tslib;
    Tslib can be compiled from source (i did myself) to solve this issue.
    You can also probably get away by copying the gl,es2 etc files from a precompiled image.
    I have a Freescale i.MX51 EVK card, and downloaded a precompiled image from their website.
    It contained all the files i needed to get these systems up and running.

    Most of the questions related to LTIB (ubuntu) can be seen here;
    "Builing LTIB on Ubuntu 10.04
    ":http://imxcommunity.org/group/ubuntutipsandtricks/forum/topics/building-ltib-in-ubuntu-1004?xg_source=activity

    As for compiling Qt for the Imx.51 EVK, look at this;
    "All Boards Qt iMXwiki":http://www.imxdev.org/wiki/index.php?title=All_Boards_Qt

    Best regards
    almagest


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.