Congratulations to our 2022 Qt Champions!

How to built qt as ReleaseWithDebugInfo

  • 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 ?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    There's the -force-debug-info option you can use when calling configure.

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

  • Lifetime Qt Champion

    Add -separate-debug-info

  • 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 ./*
    -rwxr-xr-x 1 user1 users  6938700 янв 15 09:05 ./
    -rw-r--r-- 1 user1 users 94461301 янв 15 09:05 ./
    Release > ls -al ./*
    -rwxr-xr-x 1 user1 users 6927093 дек 24 10:15 ./

  • Lifetime Qt Champion

    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.

Log in to reply