Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.4.2 - building whith -no-feature-CURSOR -> QT_NO_CURSOR
Forum Updated to NodeBB v4.3 + New Features

Qt 5.4.2 - building whith -no-feature-CURSOR -> QT_NO_CURSOR

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 2 Posters 3.5k Views 2 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
    Benoit GB
    wrote on last edited by Benoit GB
    #1

    I got compile error for libQt5Gui:

    qsimpledrag.cpp:(.text+0x584): undefined reference to `QCursor::pos()'
    

    When I look link command , we got "qcursor" referencese

    arm-v5te-linux-gnueabi-g++ -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/lib/arm-linux-gnu/qt5.4/lib -shared -Wl,-soname,libQt5Gui.so.5 -o libQt5Gui.so.5.4.2 
    ... .obj/qplatformcursor.o ...  .obj/qcursor.o ...  
    

    but "qcursor.o" his quite empty , must be due to "fake cursor"

    Do my problem is link to this note in "qcursor.h" ?

    "The fake cursor has to go first with old qdoc." 
    

    Any explanation of this note ?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Benoit GB
      wrote on last edited by
      #2

      in Qt 5.4.2 qcursor::pos() is in "#ifndef QT_NO_CURSOR'' scope
      but not in Qt 5.5.0 .

      is it the point of the problem ? or Qt 5.4.2 has a different mechanism ?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        What arguments did you pass to configure ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Benoit GB
          wrote on last edited by
          #4

          this i my arguments :

          -opensource -confirm-license -release -continue -v -prefix /usr/lib/arm-linux-gnu/qt5.4 -xplatform linux-arm-v5te-gnueabi-g++ -tslib -linuxfb -no-opengl -no-c++11 -no-dbus -no-gtkstyle -no-feature-CURSOR -no-feature-CLIPBOARD -no-feature-WHEELEVENT -no-feature-CUPS -qt-zlib -qt-libjpeg -qt-libpng -make libs -nomake tools -nomake examples -nomake tests -I/home/benoit/Développement/Linux-Embedded/tslib-1.0/src -L/usr/lib/arm-linux-gnu

          I move precompil "ifndef" like in Qt 5.5 and libGui succed.
          I got other problem for Qml part ..i found some fixes for then.
          I keeping solving problem one by one ... (or may be use Qt 5.5.0?)

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by SGaist
            #5

            There's indeed a ifndef missing. Would you consider submitting a patch for that ?

            The current stable is 5.5.1. You also can test 5.6.0 Beta.

            What QML problem did you have ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Benoit GB
              wrote on last edited by Benoit GB
              #6

              for QLM , i had problem with :

              hidden symbol `void QQmlThread::postMethodToThread<QQmlDataBlob*, QQmlDataBlob*, QQmlDataLoaderThread>(void (QQmlDataLoaderThread::)(QQmlDataBlob), QQmlDataBlob* const&)' isn't defined
              

              I found a post about modify "qml.pro"

              QMAKE_CXXFLAGS_RELEASE += -fno-inline
              
              

              https://wiki.qt.io/Building_Qt_5_from_Git

              thanks Samuel for your answers . tomorrow I will try to deal with Qt5.5.0 and Qt5.5.1 (i hope having less errors)

              P.S. for "patch" . I don't know branch rules in Qt , but according what we do at work for our software. if the last (production/stable/recommended) is fixed for a "bug" no need to patch (beta/experimental) old one ? "use the last version" (here 5.5.1)

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                For fixes it should go to the current released minor branch e.g. 5.5 (or currently 5.6 since it's almost out and it's unlikely that a 5.5.2 will be released). For new features it's the dev branch. Note that depending on the fix, if it has far reaching implications then targeting dev is better. In any case, a patch against the wrong branch can be moved (it happens if e.g. a submission wasn't validated before a new minor release)

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  Benoit GB
                  wrote on last edited by
                  #8

                  Resume : Qt 5.4.2 for i.mx27

                  • For "QT_NO_CURSOR" pacth qcursor.cpp moving **"#ifndef QT_NO_CURSOR" **@line 270

                  Note : don't forget to clean any previous build
                  Note: this point is already fixe on Qt 5.5

                  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