Important: Please read the Qt Code of Conduct -

Cannot configure Qt5.2.1

  • Hi,
    sudo ./configure -prefix /usr/local/Trolltech/QtEmbedded-5.2.1 -release -shared -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -no-openssl -optimized-qmake -no-nis -no-opengl -no-cups -no-xcursor -no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-xshape -no-separate-debug-info -xplatform linux-myplatform-g++

    The configuration result:
    Could not determine the target architecture!
    Turn on verbose messaging (-v) to see the final report.
    No QPA platform plugin enabled!
    If you really want to build without a QPA platform plugin you must pass
    -no-qpa-platform-guard to configure. Doing this will
    produce a Qt that can not run GUI applications.
    The dependencies needed for xcb to build are listed in
    cannot generate Makefile,and build。

    the linux-myplatform-g++ directory is created by me, Inside, the qmake.conf content as below:

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

    CONFIG += incremental gdb_dwarf_index



    modifications to g++.conf

    QMAKE_CC = $${GCC_PREFIX}-gcc
    QMAKE_CXX = $${GCC_PREFIX}-g++

    modifications to linux.conf

    QMAKE_AR = arm-linux-ar cqs
    QMAKE_OBJCOPY = arm-linux-objcopy
    QMAKE_NM = arm-linux-nm -P
    QMAKE_STRIP = arm-linux-strip


  • Moderators

    What is your question? Do you really not need any GUI stuff, or maybe you only want a different platform plugin than XCB (options are: minimal, xcb, eglfs, directfb, wayland. If I recall correctly, that is)?

  • I just want to bulid an Embedded Development enviroment, then porting to arm. Firstly, I need build Qt library(qt-everywhere-opensource-5.2.1), however, I cannot configure successfully. The operation steps, plz see above.

  • Moderators

    So why are you disabling all XCB functionality? No wonder it is failing.

  • I didn't have the operation to disable the xcb, then how to solve it?

  • Moderators

    [quote author="sungrady" date="1401259039"]I didn't have the operation to disable the xcb[/quote]

    Please rephrase, I don't understand what you mean.

  • Oh sorry, now I just want to build qt5.2.1 library for embedded arm on my ubuntu PC. Do you have concrete steps or guidelines to help me build successfully?

  • Moderators

    See "this":, "that": and "that": I can see some of those instructions are quite outdated (Qt 5.3 does not need any patches to be compiled on ARM), but are at least worth a try.

  • I have built the Qt4.8.6 Libraries successfully. Nowadays, we want use Qt5. Those methods above, I have tried, unfortunately, failed. Thank you very much.

Log in to reply