Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. undefined reference error to QsystemstorageInfo
QtWS25 Last Chance

undefined reference error to QsystemstorageInfo

Scheduled Pinned Locked Moved General and Desktop
d them through
10 Posts 3 Posters 1.7k Views
  • 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
    Ravimettu
    wrote on last edited by
    #1

    error: undefined reference to QtMobility::QSystemStorageInfo::QSystemStorageInfo(QObject*) error: undefined reference to QtMobility::QSystemStorageInfo::logicalDrives()' error: undefined reference to QtMobility::QSystemStorageInfo::totalDiskSpace(QString const&)' error: undefined reference to QtMobility::QSystemStorageInfo::~QSystemStorageInfo()'
    error: undefined reference to `QtMobility::QSystemStorageInfo::~QSystemStorageInfo()'
    :-1: error: collect2: error: ld returned 1 exit status

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      which version of Qt are you using? Which platform?

      No one has a crystal ball so you have to provide more information if you want help

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Ravimettu
        wrote on last edited by
        #3

        Hi iam using Qt 5.5 on Ubuntu 14.04 OS.

        I have installed both QtMobility and QStorageInfo and accessed them by including them in the .pro file as well as i have included them in include paths in the project properties, but still iam not able to access them properly.

        And when i saw in the folder QStorageInfo it has only header files, there is no code in them.

        Do i need to install anthing?

        jsulmJ 1 Reply Last reply
        0
        • R Ravimettu

          Hi iam using Qt 5.5 on Ubuntu 14.04 OS.

          I have installed both QtMobility and QStorageInfo and accessed them by including them in the .pro file as well as i have included them in include paths in the project properties, but still iam not able to access them properly.

          And when i saw in the folder QStorageInfo it has only header files, there is no code in them.

          Do i need to install anthing?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Ravimettu Can you show your PRO file? It looks like you don't link against QtMobility libraries.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Ravimettu
            wrote on last edited by
            #5

            I have included them by using following lines.

            CONFIG += mobility
            MOBILITY += systeminfo

            INCLUDEPATH += /usr/include/QtMobility
            INCLUDEPATH += /usr/include/QtSystemInfo

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Ravimettu
              wrote on last edited by
              #6

              The same code worked in 12.04 with Qt 4.8 but after migrating to Qt 5.5 and ubuntu 14.04 it got this error

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Ravimettu
                wrote on last edited by
                #7

                I have installed Qt in opt. Is it ok? or i should install it in /usr/share

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mcosta
                  wrote on last edited by
                  #8

                  Hi,

                  as far as I know, QtMobility is not maintained in Qt 5.5; some classes was ported and included in Qt

                  Once your problem is solved don't forget to:

                  • Mark the thread as SOLVED using the Topic Tool menu
                  • Vote up the answer(s) that helped you to solve the issue

                  You can embed images using (http://imgur.com/) or (http://postimage.org/)

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    Ravimettu
                    wrote on last edited by
                    #9

                    yes i agree

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      Ravimettu
                      wrote on last edited by
                      #10

                      But i see only header files in the QSystemInfo package and in QtMobility
                      there are no .Cpp files or .so libraries

                      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