Important: Please read the Qt Code of Conduct -

Qt5.3 release build in Linux

  • Hi,

    How do I create a release build in Linux? In qtcreator I have selected "Release Build" but I still see my qDebug()'s when I run my executable, which I wouldn't expect to see when built in Release mode.

    In a terminal I have also tried with
    make clean
    qmake -config release

    Also in this case I see the qDebug()'s.

  • The qDebug output will always be shown, whether you compiled in debug or release. In order to suppress the qDebug output you can define QT_NO_DEBUG_OUTPUT for the release build.

  • ahh ok. Didn't know that :) Is there any way to be sure that it has been built in Release mode? (- here I am mostly thinking about when using a terminal)

Log in to reply