Problem when building Qt 5.5 for ARM926



  • I tried to buid Qt 5.5 for ARM. This is a log of my configuration:

    tankist@ubuntu-12-04:~/qt/build-dir$ /home/tankist/qt/src_dir/configure -release -xplatform linuxfb:fb=/dev/fb0 -device linux-arm-gnueabi-g++ -device-option CROSS_COMPILE=/home/tankist/arago/arago-2011.09/armv5te/bin/arm-arago-linux-gnueabi- -sysroot $ROOTFS -skip qtconnectivity -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtquick1 -skip qtquickcontrols -skip qtwebchannel -skip qtwebengine -skip qtwebkit -skip qtwebkit-examples -skip qtwebsockets -skip qtwinextras -skip qtx11extras -nomake examples -nomake tests -prefix /home/tankist/qt/install_dir

    • cd qtbase
    • /home/tankist/qt/src_dir/qtbase/configure -top-level -release -xplatform linuxfb:fb=/dev/fb0 -device linux-arm-gnueabi-g++ -device-option CROSS_COMPILE=/home/tankist/arago/arago-2011.09/armv5te/bin/arm-arago-linux-gnueabi- -sysroot -skip qtconnectivity -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtquick1 -skip qtquickcontrols -skip qtwebchannel -skip qtwebengine -skip qtwebkit -skip qtwebkit-examples -skip qtwebsockets -skip qtwinextras -skip qtx11extras -nomake examples -nomake tests -prefix /home/tankist/qt/install_dir
      /home/tankist/qt/src_dir/configure: 49: exec: /home/tankist/qt/src_dir/qtbase/configure: not found
      tankist@ubuntu-12-04:~/qt/build-dir$

    Why it can't see my file 'configure' in the /home/tankist/qt/src_dir/qtbase directory?

    This is a structure of directories:
    ~/qt/build_dir
    ~/qt/install_dir
    ~/qt/src_dir

    My sources situated in src_dir, I run compilation from build_dir. This is a content
    of the /home/tankist/qt/src_dir/qtbase directory:

    tankist@ubuntu-12-04:~/qt/build-dir$ ls -l /home/tankist/qt/src_dir/qtbase
    drwxrwxr-x 2 tankist tankist 4096 bin
    drwxrwxr-x 8 tankist tankist 4096 config.tests
    -rwxrwxr-x 1 tankist tankist 255453 configure
    -rw-rw-r-- 1 tankist tankist 3505 configure.bat
    -rw-rw-r-- 1 tankist tankist 2111488 configure.exe
    drwxrwxr-x 2 tankist tankist 4096 dist
    drwxrwxr-x 4 tankist tankist 4096 doc
    drwxrwxr-x 18 tankist tankist 4096 examples
    -rw-rw-r-- 1 tankist tankist 1998 header.BSD
    -rw-rw-r-- 1 tankist tankist 1275 header.FDL
    -rw-rw-r-- 1 tankist tankist 1611 header.LGPL21
    -rw-rw-r-- 1 tankist tankist 1757 header.LGPL3
    -rw-rw-r-- 1 tankist tankist 1305 header.LGPL3-COMM
    -rw-rw-r-- 1 tankist tankist 958 header.LGPL-ONLY
    drwxrwxr-x 18 tankist tankist 4096 include
    -rw-rw-r-- 1 tankist tankist 472 INSTALL
    -rw-rw-r-- 1 tankist tankist 1218 LGPL_EXCEPTION.txt
    drwxrwxr-x 3 tankist tankist 4096 lib
    -rw-rw-r-- 1 tankist tankist 23411 LICENSE.FDL
    -rw-rw-r-- 1 tankist tankist 36331 LICENSE.GPLv3
    -rw-rw-r-- 1 tankist tankist 27346 LICENSE.LGPLv21
    -rw-rw-r-- 1 tankist tankist 8353 LICENSE.LGPLv3
    -rw-rw-r-- 1 tankist tankist 32783 LICENSE.PREVIEW.COMMERCIAL
    drwxrwxr-x 95 tankist tankist 4096 mkspecs
    drwxrwxr-x 5 tankist tankist 4096 qmake
    -rw-rw-r-- 1 tankist tankist 6516 qtbase.pro
    drwxrwxr-x 22 tankist tankist 4096 src
    -rw-rw-r-- 1 tankist tankist 3248 sync.profile
    drwxrwxr-x 8 tankist tankist 4096 tests
    drwxrwxr-x 4 tankist tankist 4096 tools
    drwxrwxr-x 13 tankist tankist 4096 util
    tankist@ubuntu-12-04:~/qt/build-dir$

    That folder contains file 'configure'. What is wrong?


  • Lifetime Qt Champion

    Hi,

    Run configure again with -v to see exactly what is going on.

    From a quick overview the -xplatform parameter is wrong and you don't seem to have anything set for -sysroot



  • There are no differences when I use -v flag:

    /home/tankist/qt/src_dir/configure -release -xplatform linuxfb -device linux-arm-gnueabi-g++ -device-option CROSS_COMPILE=/home/tankist/arago/arago-2011.09/armv5te/bin/arm-arago-linux-gnueabi- -sysroot /home/tankist/ti/mcsdk_1_01_00_02/targetNFS -skip qtconnectivity -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtquick1 -skip qtquickcontrols -skip qtwebchannel -skip qtwebengine -skip qtwebkit -skip qtwebkit-examples -skip qtwebsockets -skip qtwinextras -skip qtx11extras -nomake examples -nomake tests -prefix /home/tankist/qt/install_dir -v

    • cd qtbase
    • /home/tankist/qt/src_dir/qtbase/configure -top-level -release -xplatform linuxfb -device linux-arm-gnueabi-g++ -device-option CROSS_COMPILE=/home/tankist/arago/arago-2011.09/armv5te/bin/arm-arago-linux-gnueabi- -sysroot /home/tankist/ti/mcsdk_1_01_00_02/targetNFS -skip qtconnectivity -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtquick1 -skip qtquickcontrols -skip qtwebchannel -skip qtwebengine -skip qtwebkit -skip qtwebkit-examples -skip qtwebsockets -skip qtwinextras -skip qtx11extras -nomake examples -nomake tests -prefix /home/tankist/qt/install_dir -v
      /home/tankist/qt/src_dir/configure: 49: exec: /home/tankist/qt/src_dir/qtbase/configure: not found

    There is a quotation from the "Qt compiler options" guide:

    -xplatform - the target platform. Valid xplatform options are the same as the -platform options which are found in qtbase/mkspecs.

    I've found a lot of folders in my qtbase/mkspecs, for example:

    irix-g++
    irix-g++-64
    linux-arm-gnueabi-g++
    linux-clang
    linux-clang-libc++
    linux-cxx
    linux-g++

    so I hope I chose a right one. My 'sysroot' option contains a valid NFS for my board which I could really mount.


  • Lifetime Qt Champion

    Where did you get the sources from ?



  • Hm... I downloaded them from the official site:
    http://www.qt.io/download-open-source/#section-2


  • Lifetime Qt Champion

    The .zip or .tar.gz file ?



  • The right name of the file is qt-everywhere-opensource-src-5.5.1.zip


  • Lifetime Qt Champion

    Download the .tar.gz file. The zip is for Windows. In part because of the line ending used.



  • Thank you, that was the problem.


Log in to reply
 

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