Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2882

qmake CONFIG arguments not used when targeting symbian

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.1.0
    • Qt Creator 2.0.0
    • None
    • Windows XP SP3, Nokia Qt SDK with all latest updates available from Updater (excluding maemo stuff, Experimental and MSVC)

    Description

      When i try use CONFIG(release, debug|release) in my .pro files and try to add 'release' to CONFIG using qmake command line arguments it says that i'm using debug config for both debug and release builds, 'release' is not added to CONFIG.
      Actually i tried with some random strings like 'sdfjhsakfdh' and they were not added either

      On the other hand when i write CONFIG+=release in body of pro file it works fine
      Also on S60 Simulator works fine

      .pro file (default console app project):
      #-------------------------------------------------
      #

      1. Project created by QtCreator 2010-10-26T10:45:54
        #
        #-------------------------------------------------

      QT += core

      QT -= gui

      TARGET = DebugReleaseBug
      CONFIG += console
      CONFIG -= app_bundle

      TEMPLATE = app

      message($$CONFIG)

      CONFIG(release, debug|release):message(Release build!)
      CONFIG(debug, debug|release):message(Debug build!)

      SOURCES += main.cpp
      #-------------------------------------------------

      Steps to reproduce:
      Run qmake from Qt Creator or run below qmake commands from command line (i used NokiaQtSdk with Qt Creator 2.0.0 - all updates drom Updater applied)

      Using automatically added Debug configuration:

      • automatically set qmake command: qmake.exe C:/Projects/Qt/Tests/DebugReleaseBug/DebugReleaseBug.pro -r -spec symbian-abld -after OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc
      • console output:
        Uruchamianie: "c:/qt/nokiaqtsdk/symbian/sdk/bin/qmake.exe" C:/Projects/Qt/Tests/DebugReleaseBug/DebugReleaseBug.pro -r -spec symbian-abld -after OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc
        Project MESSAGE: lex yacc warn_on debug uic resources stl_off qt warn_on release incremental debug shared stl exceptions rtti incredibuild_xge def_files console
        Project MESSAGE: Debug build!

      Using automatically added Release configuration:

      • automatically set qmake command: qmake.exe C:/Projects/Qt/Tests/DebugReleaseBug/DebugReleaseBug.pro -r -spec symbian-abld -after OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc CONFIG+=release
      • console output:
        Uruchamianie: "c:/qt/nokiaqtsdk/symbian/sdk/bin/qmake.exe" C:/Projects/Qt/Tests/DebugReleaseBug/DebugReleaseBug.pro -r -spec symbian-abld -after OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc CONFIG+=release
        Project MESSAGE: lex yacc warn_on debug uic resources stl_off qt warn_on release incremental debug shared stl exceptions rtti incredibuild_xge def_files console
        Project MESSAGE: Debug build!

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hunger Tobias Hunger
            jacquesbaniaque Tomasz Baniak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes