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. Error building QT 5.9.1 from souces

Error building QT 5.9.1 from souces

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 4 Posters 3.6k 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.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by
    #1

    I tired to build QT 5.9.1 from souces on Ubuntu 14.04 with GCC 5.4.1 (CMake 2.8.12 but I am not sure it is needed) and got the following compiler errors:

    graphicsitems/qdeclarativetextinput.cpp: In member function ‘void QDeclarativeTextInput::setCursorVisible(bool)’:
    graphicsitems/qdeclarativetextinput.cpp:517:17: error: ‘class QWidgetLineControl’ has no member named ‘setCursorBlinkPeriod’

    my build commands are:

    git clone --recursive https://code.qt.io/qt/qt5.git v5.9.1
    cd v5.9.1
    ./configure -prefix $(pwd)\qtbase -debug -confirm-license -opensource -nomake examples -nomake tests
    
    raven-worxR 1 Reply Last reply
    0
    • D Dmitriano

      I tired to build QT 5.9.1 from souces on Ubuntu 14.04 with GCC 5.4.1 (CMake 2.8.12 but I am not sure it is needed) and got the following compiler errors:

      graphicsitems/qdeclarativetextinput.cpp: In member function ‘void QDeclarativeTextInput::setCursorVisible(bool)’:
      graphicsitems/qdeclarativetextinput.cpp:517:17: error: ‘class QWidgetLineControl’ has no member named ‘setCursorBlinkPeriod’

      my build commands are:

      git clone --recursive https://code.qt.io/qt/qt5.git v5.9.1
      cd v5.9.1
      ./configure -prefix $(pwd)\qtbase -debug -confirm-license -opensource -nomake examples -nomake tests
      
      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Dmitriano
      see QTBUG-61564

      Either

      1. run ./init-repository --branch -f before configure
        or
      2. add -skip qtquick1 to configure (since it's most probably not used anyways by you?)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      D 1 Reply Last reply
      2
      • raven-worxR raven-worx

        @Dmitriano
        see QTBUG-61564

        Either

        1. run ./init-repository --branch -f before configure
          or
        2. add -skip qtquick1 to configure (since it's most probably not used anyways by you?)
        D Offline
        D Offline
        Dmitriano
        wrote on last edited by Dmitriano
        #3

        @raven-worx
        it does not help, I am still getting the same compiler error (tried GCC 7.2.0):

        graphicsitems/qdeclarativetextinput.cpp: In member function ‘void QDeclarativeTextInput::setCursorVisible(bool)’:
        graphicsitems/qdeclarativetextinput.cpp:517:17: error: ‘class QWidgetLineControl’ has no member named ‘setCursorBlinkPeriod’; did you mean ‘resetCursorBlinkTimer’?
        d->control->setCursorBlinkPeriod(on?QApplication::cursorFlashTime():0);
        ^~~~~~~~~~~~~~~~~~~~
        resetCursorBlinkTimer

        raven-worxR 1 Reply Last reply
        0
        • D Dmitriano

          @raven-worx
          it does not help, I am still getting the same compiler error (tried GCC 7.2.0):

          graphicsitems/qdeclarativetextinput.cpp: In member function ‘void QDeclarativeTextInput::setCursorVisible(bool)’:
          graphicsitems/qdeclarativetextinput.cpp:517:17: error: ‘class QWidgetLineControl’ has no member named ‘setCursorBlinkPeriod’; did you mean ‘resetCursorBlinkTimer’?
          d->control->setCursorBlinkPeriod(on?QApplication::cursorFlashTime():0);
          ^~~~~~~~~~~~~~~~~~~~
          resetCursorBlinkTimer

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Dmitriano
          did you clean before hand?!
          At least (2) definitely works. By coincidence i just had the same error today and solved it.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          D 1 Reply Last reply
          1
          • raven-worxR raven-worx

            @Dmitriano
            did you clean before hand?!
            At least (2) definitely works. By coincidence i just had the same error today and solved it.

            D Offline
            D Offline
            Dmitriano
            wrote on last edited by Dmitriano
            #5

            @raven-worx yes I deleted all the sources and did 'git clone' again.

            (2) helps! But (1) does not.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pip010
              wrote on last edited by
              #6

              What was the solution? (btw very old cmake that you are suing)

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Michael Franzl
                wrote on last edited by
                #7

                I am compiling from git sources on branch 5.11. Ran into exactly the same issue. Solution by @raven-workx number (1) did not fix it. (2) fixed it.

                1 Reply Last reply
                1

                • Login

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