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. How to built qt as ReleaseWithDebugInfo
Forum Updated to NodeBB v4.3 + New Features

How to built qt as ReleaseWithDebugInfo

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 2 Posters 1.7k 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.
  • A Offline
    A Offline
    abarmotov
    wrote on last edited by
    #1

    In opensuse or ubuntu i can install from their repos qt555 and additionally debug information in separate files.
    But how can i build this by myself ?
    I can build release libs (and deploy it with my app), but then i add some flags (-separate-debug-info), then libraries become different (in size) then only with -release flag
    What is correct way to buld ?

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

      Hi and welcome to devnet,

      There's the -force-debug-info option you can use when calling 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
      • A Offline
        A Offline
        abarmotov
        wrote on last edited by
        #3

        No, this does not help
        For example libQt5Gui.so.5.5.1 builded size 98Mb - so it contains debug info, but i expect debug info in separate file.

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

          Add -separate-debug-info

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

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            Add -separate-debug-info

            A Offline
            A Offline
            abarmotov
            wrote on last edited by abarmotov
            #5

            Yes adding this flag made separate debug info, but release lib slightly different in size then build only with -release flag
            Why so ?

            Release And Debug Info > ls -al ./libQt5Gui.so.5.5.1*
            -rwxr-xr-x 1 user1 users  6938700 янв 15 09:05 ./libQt5Gui.so.5.5.1
            -rw-r--r-- 1 user1 users 94461301 янв 15 09:05 ./libQt5Gui.so.5.5.1.debug
            
            Release > ls -al ./libQt5Gui.so.5.5.1*
            -rwxr-xr-x 1 user1 users 6927093 дек 24 10:15 ./libQt5Gui.so.5.5.1
            
            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Because there are some additional information to link the library to its corresponding debugging symbol.

              You have here A pretty interesting article on the subject.

              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

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved