[TUTO] Build Qt to cross compile for arm



  • Hi,

    I am not understood that fourth step,

    Go to /home/<yourUserName>/
    Execute this command to install Qt in the /usr/local/Qt-4.8.5-arm/ directory : ./configure -opensource -confirm-license -prefix /usr/local/Qt-4.8.5-arm -embedded arm -little-endian -no-pch -xplatform qws/linux-arm-gnueabi-g++
    qt-everywhere-opensource-src-4.8.5/

    why beacuse,when i go /home/<username> there is no such file called (this present in installQt directory) and in /usr/local also not present the Qt-4.8.5

    anyone help how to processed next..
    thankyou


  • Qt Champions 2018

    @asha You should not copy the steps exactly, you have to adapt them to your environment:
    Go to /home/<yourUserName>/ - this means go to your home directory
    Qt-4.8.5 - change that to the Qt version you want to compile.



  • Sir,

    I have uninstalled everything(which means cross compiler and my first qt version)

    now i followed the steps,as said in above..

    so now I am not getting where to execute.

    can I execute where i am getting the configure file.


  • Qt Champions 2018

    @asha said in [TUTO] Build Qt to cross compile for arm:

    so now I am not getting where to execute

    execute what? configure?
    "can I execute where i am getting the configure file" - configure file is part of Qt source code. So, download Qt source code, extract it to a directory, go to that directory and execute configure there...



  • Hi,
    I execute the configure file,as you can see here

    0_1568294113805_successbuild.png

    After this Executed the make,the result is:

    0_1568294186956_error2.png

    so what that error says?how to solve this..



  • Hi,

    Any suggestions,


  • Qt Champions 2018

    @asha Please show how you call configure.
    Also, it is better to post text instead of screen-shots...



  • I called configure
    0_1568359047816_calling configure.png .



  • @jsulm sorry,ffor some of the reason using screenshots.



  • Hi,

    Can anyone say,

    what it does: fourth step

    ."/configure -opensource -confirm-license -prefix /usr/local/Qt-4.8.5-arm -embedded arm -little-endian -no-pch -xplatform qws/linux-arm-gnueabi-g++"

    specially this part "embedded arm -little-endian -no-pch -xplatform qws/linux-arm-gnueabi-g++"

    because,

    I downloaded qt src code 5.7.1 and arm-linux-gnueabihf-gcc 6.5.0, and I found my qmake.conf file in "/home/<username>/Downloads/qt-everywhere-opensource-src-5.7.1/qtbase/mkspecs/linux-arm-gnueabi-g++"

    So,now I need to configure,not getting the above path,I don't have qws directory,

    can I give just ./configure for configuration?