Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How to built qt as ReleaseWithDebugInfo

    Installation and Deployment
    2
    6
    1307
    Loading More Posts
    • 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
      abarmotov last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • A
          abarmotov last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • A
              abarmotov @SGaist last edited by abarmotov

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • First post
                  Last post