Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] QT5 make fails on QUrl
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QT5 make fails on QUrl

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 6.3k 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.
  • B Offline
    B Offline
    bricke
    wrote on 20 Mar 2013, 16:53 last edited by
    #1

    HI, I'm building QT5 from GIT, but my make command fails on the QUrl class

    Here comes the error:
    @
    In file included from ../../../../include/QtCore/qurl.h:1:0,
    from ../../../../include/QtGui/../../src/gui/kernel/qevent.h:56,
    from ../../../../include/QtGui/qevent.h:1,
    from ../../../../include/QtGui/QTouchEvent:1,
    from ../../../../include/QtGui/5.0.2/QtGui/qpa/../../../../../src/gui/kernel/qwindowsysteminterface.h:61,
    from ../../../../include/QtGui/5.0.2/QtGui/qpa/qwindowsysteminterface.h:1,
    from ../../../../include/QtGui/5.0.2/QtGui/private/../../../../../src/gui/kernel/qguiapplication_p.h:63,
    from ../../../../include/QtGui/5.0.2/QtGui/private/qguiapplication_p.h:1,
    from qeglfsintegration.cpp:48:
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:130:9: error: expected identifier before numeric constant
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:130:9: error: expected '}' before numeric constant
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:130:9: error: expected unqualified-id before numeric constant
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:160:26: error: 'UrlFormattingOption' was not declared in this scope
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:160:72: error: template argument 1 is invalid
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:160:91: error: invalid type in declaration before ';' token
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:163:10: error: expected unqualified-id before ')' token
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:164:10: error: expected unqualified-id before 'const'
    @
    This error refers to folder qtbase/src/plugins/platforms/eglfs

    It seems that the "None" element of the struct defined in qurl.h is even a defined constant in an X11-header.

    Do you know how can I fix this? I think that there could be some particular value for the configure script to fix this.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 21 Mar 2013, 08:33 last edited by
      #2

      This has not happened to me, and I'm compiling Qt quite often. Strange.

      Ping "Thiago":https://plus.google.com/108138837678270193032/posts on IRC or development Mailing List, he has rewritten QUrl for Qt5 and might be interested in knowing this. You'll have to provide some additional info like OS, compiler used, etc.

      (Z(:^

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bricke
        wrote on 21 Mar 2013, 08:53 last edited by
        #3

        Thank you sierdzio.

        I'm using the compiler from Toradex BSP, alias an armhf compiler.
        This kind of error cames up even with my custom compiler from an openembedded build.
        I'm using tegra2 specs.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bricke
          wrote on 25 Mar 2013, 14:22 last edited by
          #4

          I've solved it, it's due to the X11_HEADER that come file was including.

          The solution is add the options -D MESA_EGL_NO_X11_HEADERS, and check if this variable is present in the file include/EGL/eglplatform.h in your sysroot, if not, add the correct patch (you can find it online).

          1 Reply Last reply
          0
          • H Offline
            H Offline
            helthans
            wrote on 14 Apr 2014, 11:06 last edited by
            #5

            Could you please elaborate a little more how you solved this issue?

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bricke
              wrote on 14 Apr 2014, 11:12 last edited by
              #6

              As written I've compiled with the options MESA_EGL_NO_X11_HEADERS.

              AND

              I've checked in the file include/EGL/eglplatform.h in my sysroot that the mesa variable was present, there is a patch online, search for QUrl and mesa headers.

              1 Reply Last reply
              0
              • H Offline
                H Offline
                helthans
                wrote on 14 Apr 2014, 11:14 last edited by
                #7

                Thanks.. Sorry I misread your post.

                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 Extensions
                • Unsolved