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 ? -
Hi and welcome to devnet,
There's the
-force-debug-info
option you can use when calling configure. -
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 ./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