Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to build a debug build and disable optimizations and enable -g3 debug flag
Forum Updated to NodeBB v4.3 + New Features

How to build a debug build and disable optimizations and enable -g3 debug flag

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 651 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.
  • Michael UmanM Offline
    Michael UmanM Offline
    Michael Uman
    wrote on last edited by
    #1

    Hello,

    This is my first post on the Forum so pardon me if this is the wrong arena to ask this question.

    It has remained a mystery to me how to disable optimizations and compile with full debug symbols (-g3) when building the debug target. I have managed to tweak the resulting Makefile generated by the qmake tool but this makes it difficult to reproduce once other changes require re-running qmake.

    I have googled this for a number of days and have come up empty. I think the Qt forum is the place to ask this question.

    Thank you,
    Michael Uman
    Sr. Software Engineer
    Wunder-Bar

    aha_1980A 1 Reply Last reply
    0
    • Michael UmanM Michael Uman

      Hello,

      This is my first post on the Forum so pardon me if this is the wrong arena to ask this question.

      It has remained a mystery to me how to disable optimizations and compile with full debug symbols (-g3) when building the debug target. I have managed to tweak the resulting Makefile generated by the qmake tool but this makes it difficult to reproduce once other changes require re-running qmake.

      I have googled this for a number of days and have come up empty. I think the Qt forum is the place to ask this question.

      Thank you,
      Michael Uman
      Sr. Software Engineer
      Wunder-Bar

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Michael-Uman,

      Do you calll qmake CONFIG+=debug in first place?

      That generates -g compiler option, which has always been enough for me. Why do you need -g3?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1

      • Login

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