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 compile when I used an external library ?
Qt 6.11 is out! See what's new in the release blog

How to compile when I used an external library ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 1.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.
  • LordfulL Offline
    LordfulL Offline
    Lordful
    wrote on last edited by
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You should provide more information: how did you add poppler lib to your project? Can you show your PRO file?

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

      LordfulL 1 Reply Last reply
      0
      • jsulmJ jsulm

        You should provide more information: how did you add poppler lib to your project? Can you show your PRO file?

        LordfulL Offline
        LordfulL Offline
        Lordful
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • C Offline
          C Offline
          Carmoneer
          wrote on last edited by Carmoneer
          #4

          One thing that I notice is I believe you have to add 'mobility' to CONFIG

          CONFIG += c++11 mobility
          

          EDIT: Well, reading the documentation further, that may not be the case in your situation.

          LordfulL 1 Reply Last reply
          0
          • C Carmoneer

            One thing that I notice is I believe you have to add 'mobility' to CONFIG

            CONFIG += c++11 mobility
            

            EDIT: Well, reading the documentation further, that may not be the case in your situation.

            LordfulL Offline
            LordfulL Offline
            Lordful
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Do you try to build for Android?

              android: {
                  INCLUDEPATH += /usr/local/include/poppler/qt5
                  LIBS += -L/usr/local/lib -lpoppler-qt5
              }
              

              If so then you need poppler lib built for Android.

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

              LordfulL 1 Reply Last reply
              0
              • jsulmJ jsulm

                Do you try to build for Android?

                android: {
                    INCLUDEPATH += /usr/local/include/poppler/qt5
                    LIBS += -L/usr/local/lib -lpoppler-qt5
                }
                

                If so then you need poppler lib built for Android.

                LordfulL Offline
                LordfulL Offline
                Lordful
                wrote on last edited by
                #7
                This post is deleted!
                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