January 13, 2012

mehoggan mehoggan
Lab Rat
13 posts

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

 

What else do I need to do in order to get my project to allow me to build in debug mode?

  1. Qt Creator 2.4.0
  2. Based on Qt 4.7.4 (64 bit)
  3. Built on Dec 20 2011 at 11:14:33
  4. From revision b0b0842b03
  5. Copyright 2008-2011 Nokia Corporation. All rights reserved.

And my project file is as follows:

  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2011-08-31T13:11:51
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT       += core gui opengl
  8. TEMPLATE = app
  9. CONFIG += debug_and_release
  10. CONFIG(debug, debug|release){
  11.     TARGET = ArcGISQtTestApp
  12. }
  13. else{
  14.     TARGET = ArcGISQtTestApp
  15. }
  16.  
  17. QMAKE_CXXFLAGS += -Wunknown-pragmas
  18. QMAKE_TARGET.arch = x86_64
  19.  
  20. RUNTIME_DIR = ../../../..
  21. INCLUDEPATH += $${RUNTIME_DIR}/Qt/SDK/QtRuntimeCore/include \
  22.                $${RUNTIME_DIR}/Qt/SDK/ArcGISQt/include \
  23.                $${RUNTIME_DIR}/Qt/SDK/ArcGISQt \
  24.                $${RUNTIME_DIR}/include \
  25.                $${RUNTIME_DIR}/Runtime/Core/Map \
  26.                $${RUNTIME_DIR}/Runtime/Core/Map/GraphicsPipeline \
  27.                $${RUNTIME_DIR}/Runtime/Core/Map/GraphicsPipeline/LowLevelRenderer \
  28.                $${RUNTIME_DIR}/Runtime/Core/Common/Include \
  29.                $${RUNTIME_DIR}/Runtime/Core/Skia/include/core \
  30.                $${RUNTIME_DIR}/Runtime/Core/Skia/include/config \
  31.                $${RUNTIME_DIR}/Runtime/Core/libxml2/include \
  32.                $${RUNTIME_DIR}/SharedArcGIS/Include/System/Geometry/GeometryXLib \
  33.                $${RUNTIME_DIR}/SharedArcGIS/Include/GraphicsPipeline/Display/SymbolX/SymbolXLib \
  34.  
  35. unix:DEFINES  += ARCGISQT_LIBRARY \
  36.                  LINUXx86 \
  37.                  NATIVECOMPILE \
  38.                  PE_USE_CLASS_CONSTANTS \
  39.                  _USE_MATH_DEFINES \
  40.                  SK_SCALAR_IS_FLOAT \
  41.                  SK_BUILD_FOR_UNIX \
  42.                  SK_ENABLE_LIBPNG \
  43.                  fdatasync=fsync \
  44.                  SQLITE_THREADSAFE=1 \
  45.                  SQLITE_ENABLE_RTREE=1 \
  46.                  SQLITE_DEFAULT_FILE_FORMAT=4 \
  47.  
  48. LIBS += \
  49.         -L$${RUNTIME_DIR}/Qt/SDK/ArcGISQt \
  50.         -L$${RUNTIME_DIR}/bin \
  51.         -L$${RUNTIME_DIR}/Qt/SKD/QtRuntimeCore \
  52.  
  53. LIBS += -lQtRuntimeCore \
  54.         -lArcGISQt \
  55.         -lpe \
  56.         -lpe++ \
  57.         -lsg
  58.  
  59. SOURCES += main.cpp\
  60.         MainWindow.cpp
  61.  
  62. HEADERS  += MainWindow.h

 Signature 

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

4 replies

January 13, 2012

Scylla Scylla
Lab Rat
238 posts

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”.

January 13, 2012

mehoggan mehoggan
Lab Rat
13 posts

I have modified the project file to now read

  1. CONFIG += debug
  2. CONFIG += release

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

 Signature 

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

January 13, 2012

Scylla Scylla
Lab Rat
238 posts

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

January 13, 2012

mehoggan mehoggan
Lab Rat
13 posts

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

 Signature 

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

 
  ‹‹ Regular expression help needed      Drag and drop in treeview with scrollbar problem ››

You must log in to post a reply. Not a member yet? Register here!