Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Project file specifies CONFIG += debug_and_release but I can only build in release. What Gives?
Forum Updated to NodeBB v4.3 + New Features

Project file specifies CONFIG += debug_and_release but I can only build in release. What Gives?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.7k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mehoggan
    wrote on last edited by
    #1

    What else do I need to do in order to get my project to allow me to build in debug mode?
    @Qt Creator 2.4.0
    Based on Qt 4.7.4 (64 bit)
    Built on Dec 20 2011 at 11:14:33
    From revision b0b0842b03
    Copyright 2008-2011 Nokia Corporation. All rights reserved.
    @

    And my project file is as follows:

    @#-------------------------------------------------

    Project created by QtCreator 2011-08-31T13:11:51

    #-------------------------------------------------

    QT += core gui opengl
    TEMPLATE = app
    CONFIG += debug_and_release
    CONFIG(debug, debug|release){
    TARGET = ArcGISQtTestApp
    }
    else{
    TARGET = ArcGISQtTestApp
    }

    QMAKE_CXXFLAGS += -Wunknown-pragmas
    QMAKE_TARGET.arch = x86_64

    RUNTIME_DIR = ../../../..
    INCLUDEPATH += $${RUNTIME_DIR}/Qt/SDK/QtRuntimeCore/include
    $${RUNTIME_DIR}/Qt/SDK/ArcGISQt/include
    $${RUNTIME_DIR}/Qt/SDK/ArcGISQt
    $${RUNTIME_DIR}/include
    $${RUNTIME_DIR}/Runtime/Core/Map
    $${RUNTIME_DIR}/Runtime/Core/Map/GraphicsPipeline
    $${RUNTIME_DIR}/Runtime/Core/Map/GraphicsPipeline/LowLevelRenderer
    $${RUNTIME_DIR}/Runtime/Core/Common/Include
    $${RUNTIME_DIR}/Runtime/Core/Skia/include/core
    $${RUNTIME_DIR}/Runtime/Core/Skia/include/config
    $${RUNTIME_DIR}/Runtime/Core/libxml2/include
    $${RUNTIME_DIR}/SharedArcGIS/Include/System/Geometry/GeometryXLib
    $${RUNTIME_DIR}/SharedArcGIS/Include/GraphicsPipeline/Display/SymbolX/SymbolXLib \

    unix:DEFINES += ARCGISQT_LIBRARY
    LINUXx86
    NATIVECOMPILE
    PE_USE_CLASS_CONSTANTS
    _USE_MATH_DEFINES
    SK_SCALAR_IS_FLOAT
    SK_BUILD_FOR_UNIX
    SK_ENABLE_LIBPNG
    fdatasync=fsync
    SQLITE_THREADSAFE=1
    SQLITE_ENABLE_RTREE=1
    SQLITE_DEFAULT_FILE_FORMAT=4 \

    LIBS +=
    -L$${RUNTIME_DIR}/Qt/SDK/ArcGISQt
    -L$${RUNTIME_DIR}/bin
    -L$${RUNTIME_DIR}/Qt/SKD/QtRuntimeCore \

    LIBS += -lQtRuntimeCore
    -lArcGISQt
    -lpe
    -lpe++
    -lsg

    SOURCES += main.cpp
    MainWindow.cpp

    HEADERS += MainWindow.h
    @

    Matthew Hoggan
    http://matthewh.me
    “It’s not wise to violate rules until you know how to observe them.” (t.s. eliot)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Scylla
      wrote on last edited by
      #2

      May be I'm wrong but as long as I know, the debug_and_release works only on windows platform. On linux platform use debug or release seperate "CONFIG += debug".

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mehoggan
        wrote on last edited by
        #3

        I have modified the project file to now read

        @CONFIG += debug
        CONFIG += release@

        But the Build/Run Target Selector still will only alow me to select release as the only option.

        Matthew Hoggan
        http://matthewh.me
        “It’s not wise to violate rules until you know how to observe them.” (t.s. eliot)

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Scylla
          wrote on last edited by
          #4

          Can you change the qmake build configuration on the project page (open details of build steps) ?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mehoggan
            wrote on last edited by
            #5

            Fixed it by deleting pro.user and then specifiying debug.

            Matthew Hoggan
            http://matthewh.me
            “It’s not wise to violate rules until you know how to observe them.” (t.s. eliot)

            1 Reply Last reply
            0

            • Login

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