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. How to install a missing library in Qt Creator for a project?
Forum Updated to NodeBB v4.3 + New Features

How to install a missing library in Qt Creator for a project?

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 6.4k 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.
  • a.burksA a.burks

    I try to build and install a project, that is required for another project from Github. If I open the first one in Qt Creator, I get the error:

    Project ERROR: Unknown module(s) in QT: testlib
    

    How can I install this module? It seems to be not included in Qt Creator for macOS?

    joeQJ Offline
    joeQJ Offline
    joeQ
    wrote on last edited by
    #2

    @a.burks Hi,friend. Welcome.

    is your project file *.pro had QT += testlib ?

    if not, add the line to your project file:

    QT += testlib
    

    That's Ok.

    Just do it!

    1 Reply Last reply
    0
    • a.burksA Offline
      a.burksA Offline
      a.burks
      wrote on last edited by
      #3

      @joeQ said in How to install a missing library in Qt Creator for a project?:

      QT += testlib

      Thanks so much for your answer. The project has one major *.pro file and another *.pro file in each of the five subdirectory. First I tried to add thie line into the major file and afterwards in the other fiules as well. The error message is the same.

      1 Reply Last reply
      0
      • a.burksA a.burks

        I try to build and install a project, that is required for another project from Github. If I open the first one in Qt Creator, I get the error:

        Project ERROR: Unknown module(s) in QT: testlib
        

        How can I install this module? It seems to be not included in Qt Creator for macOS?

        joeQJ Offline
        joeQJ Offline
        joeQ
        wrote on last edited by
        #4

        @a.burks what's github? could you share me the github link? that i can watch the project struct.

        Just do it!

        1 Reply Last reply
        0
        • a.burksA Offline
          a.burksA Offline
          a.burks
          wrote on last edited by
          #5

          Wow. Thanks for your answer.

          This is the base project from Mer Project Git repository:
          https://git.merproject.org/mer-core/lipstick

          And this is the related Github pojekt, that is based on the previous project.
          https://github.com/nemomobile-graveyard/lipstick-example-home

          jsulmJ 1 Reply Last reply
          0
          • a.burksA a.burks

            Wow. Thanks for your answer.

            This is the base project from Mer Project Git repository:
            https://git.merproject.org/mer-core/lipstick

            And this is the related Github pojekt, that is based on the previous project.
            https://github.com/nemomobile-graveyard/lipstick-example-home

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

            @a.burks If you create a small test project and add

            QT += testlib
            

            does it then work?

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

            1 Reply Last reply
            1
            • a.burksA Offline
              a.burksA Offline
              a.burks
              wrote on last edited by
              #7

              @jsulm said in How to install a missing library in Qt Creator for a project?:

              QT += testlib

              Thanks for your suggetion. I have created a very simple hello world project and added the quoted line in the *.pro file. Then I started the build with the following output:

              Project ERROR: Unknown module(s) in QT: testlib
              
              aha_1980A 1 Reply Last reply
              0
              • a.burksA a.burks

                @jsulm said in How to install a missing library in Qt Creator for a project?:

                QT += testlib

                Thanks for your suggetion. I have created a very simple hello world project and added the quoted line in the *.pro file. Then I started the build with the following output:

                Project ERROR: Unknown module(s) in QT: testlib
                
                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @a.burks That looks like there is no testlib support in your SDK. You should report this as bug /request help from the SDK vendor.

                Qt has to stay free or it will die.

                a.burksA 1 Reply Last reply
                0
                • aha_1980A aha_1980

                  @a.burks That looks like there is no testlib support in your SDK. You should report this as bug /request help from the SDK vendor.

                  a.burksA Offline
                  a.burksA Offline
                  a.burks
                  wrote on last edited by
                  #9

                  @aha_1980 I have posted this issue at the Jolla forum. Unforutnately it's not possible to register to their Buzilla. Jolla has closed the registration option because of spam.

                  1 Reply Last reply
                  0
                  • a.burksA Offline
                    a.burksA Offline
                    a.burks
                    wrote on last edited by
                    #10

                    Maybe building the lipstick library with the Sailfish Platform SDK would be a solution. After building the library I could reference the library in the lipstick example project, where I need this library. How could I include or reference a library?

                    aha_1980A 1 Reply Last reply
                    0
                    • a.burksA a.burks

                      Maybe building the lipstick library with the Sailfish Platform SDK would be a solution. After building the library I could reference the library in the lipstick example project, where I need this library. How could I include or reference a library?

                      aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by SGaist
                      #11

                      @a.burks

                      The usual way to add a library to your project is:

                      Add INCLUDEPATH+="/path/to/lib/include" and LIBS+=-L"/path/to/lib/lib" -l"libname" to your pro file.

                      libname is the final library name without the starting "lib" and ".so". E.g. libmath.so is linked as -lmath

                      [edit: fixed library name SGaist]

                      Qt has to stay free or it will die.

                      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