No QPA while building Qt5



  • Hi guys,

    I am trying to build latest qt5 from git and, running configure, I get this error:

    @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
    src/plugins/platforms/xcb/README
    *** qtbase/configure exited with non-zero status.
    @

    My configure command is like the one on the "doc":http://qt-project.org/wiki/Building_Qt_5_from_Git, plus the -no-c++11 flag
    @./configure -developer-build -opensource -nomake examples -nomake tests -no-c++11@

    also it seems that I have all the requested libs



  • Have you followed the "building doc":http://qt-project.org/wiki/Building_Qt_5_from_Git for Qt 5?

    Nevertheless, I think full build log would help more with this problem. In my case there was errors in some other place than this.



  • I have followed the tutorial you linked.

    Here is the full build log running configure:
    @mario@mario-pc:~/qt5$ ./configure -developer-build -opensource -nomake examples -nomake tests -no-c++11

    • /home/mario/qt5/qtbase/configure -developer-build -opensource -nomake examples -nomake tests -no-c++11

    This is the Qt Open Source Edition.

    You are licensed to use this software under the terms of
    the Lesser GNU General Public License (LGPL) versions 2.1.

    Type 'L' to view the Lesser GNU General Public License version 2.1.
    Type 'yes' to accept this license offer.
    Type 'no' to decline this license offer.

    Do you accept the terms of the license? yes

    <srcbase> = /home/mario/qt5/qtbase
    <outbase> = /home/mario/qt5/qtbase
    Creating qmake. Please wait...
    make: Nessuna operazione da eseguire per "first".
    qmake is broken

    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
    src/plugins/platforms/xcb/README
    *** qtbase/configure exited with non-zero status.
    @



  • "qmake is broken"
    "Turn on verbose messaging (-v) to see the final report."

    Do full cleanup and try configure again with verbose mode



  • Building with verbose option after a cleanup give me this error:

    @'cd qtsensors && make install failed: 512
    Fatal failure installing qtsensors at ./build line 455
    Qt::Build::build_project('Qt::Build=HASH(0x8286db0)', 'qtsensors') called at ./build line 484
    Qt::Build::build_qt('Qt::Build=HASH(0x8286db0)') called at ./build line 544
    Qt::Build::run('Qt::Build=HASH(0x8286db0)') called at ./build line 553
    @



  • I solved the problem using the qt5 beta1 wizard installer.


Log in to reply
 

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