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. Build qtdeclarative private auto tests
Forum Updated to NodeBB v4.3 + New Features

Build qtdeclarative private auto tests

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 1.2k 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.
  • R Offline
    R Offline
    Renat
    wrote on last edited by
    #1

    Hi i need to build auto tests for qtdeclarative module
    but i get linker errors when try to compile test in quick directory e.g.

    qtdeclarative/lib -lQt5Quick -lQt5Qml -lQt5Gui -lQt5Network -lQt5Test -lQt5Core -lGLESv2 -lpthread
    ../../../auto/quick/qquickflickable/tst_qquickflickable.cpp:762: error: undefined reference to 'QQuickTimeLine::isActive() const'
    ../../../auto/quick/qquickflickable/tst_qquickflickable.cpp:763: error: undefined reference to 'QQuickTimeLine::isActive() const'

    in pro file this test marked as private

    //your code here
    QUICKTESTS =  \
        
        qquickdrag \
        qquickdroparea \
        qquickflickable \
        qquickflipable \
        
        scenegraph
    
    SUBDIRS += $$PUBLICTESTS
    
    !qtConfig(accessibility):QUICKTESTS -= qquickaccessible
    
    qtConfig(private_tests) {
        SUBDIRS += $$PRIVATETESTS
        SUBDIRS += $$QUICKTESTS
    }
    

    other test not in private part, building fine, every .so file is in place
    I know it because of using private headers but don`t know how to solve this linker errors, maybe some keys for rebuild declarative nodule itself

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

      Hi and welcome to devnet,

      Which version of Qt are you building ? On which platform ?

      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
      • R Offline
        R Offline
        Renat
        wrote on last edited by
        #3

        qt 5.8.1
        platform mer-project

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

          Then a silly question, are you sure you are using the right qmake before building the test ?

          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
          • R Offline
            R Offline
            Renat
            wrote on last edited by
            #5

            Thank you for trying to help, i solve my problem, i found that private class, had a macro Q_AUTOTEST_EXPORT and that macro is just Q_DECLARE_EXPORT, when i just add in .pro file DEFINES +=Q_AUTOTEST_EXPORT nothing was export in .so, but when i add it like DEFINES +="Q_AUTOTEST_EXPORT=Q_DECL_EXPORT" it work fine.

            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