Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot configure Qt5.2.1
Qt 6.12 LTS is out! See what's new in the release blog

Cannot configure Qt5.2.1

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 2 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #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
    src/plugins/platforms/xcb/README
    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++

    MAKEFILE_GENERATOR = UNIX
    CONFIG += incremental gdb_dwarf_index
    QMAKE_INCREMENTAL_STYLE = sublib

    include(../common/linux.conf)
    include(../common/gcc-base-unix.conf)
    include(../common/g++-unix.conf)

    GCC_PREFIX=/opt/cross_compiler/arm-fsl-linux-gnueabi/bin/arm-linux

    modifications to g++.conf

    QMAKE_CC = $${GCC_PREFIX}-gcc
    QMAKE_CXX = $${GCC_PREFIX}-g++
    QMAKE_LINK = $${GCC_PREFIX}-g++
    QMAKE_LINK_SHLIB = $${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
    load(qt_config)

    Thanks!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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)?

      (Z(:^

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

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

          (Z(:^

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              [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.

              (Z(:^

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                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?

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  See "this":http://qt-project.org/forums/viewthread/27076, "that":http://qt-project.org/wiki/RaspberryPi_Beginners_guide and "that":http://qt-project.org/doc/qt-4.8/qt-embedded-crosscompiling.html. 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.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt
                    • Unsolved