PDA

View Full Version : [SOLVED] Re: QT Creator Only Building Release



dsargrad
17th November 2010, 19:36
I've downloaded an opensource package that leverages QT. I've never used QT before, but am now.

I installed the latest/greatest QT (including QT Creator). I built a couple of sample applications including the "calculatorform" sample. I also ran this in the debugger and in release mode.

I then installed the open source package.

I've gone ahead and built this open source package successfully from the command line using qmake, mingw32-make. I was able to run the executable that I built just fine.

The package contains a ".pro" file. I am now trying to build the package in QT creator. When I build in QT creator it only builds the "release" configuration (with -O2 for optimization). I want to build the "debug" configuration with -g.

When I build something like the "calculatorform" sample inside QT creator it builds both release and debug automatically.

Why is QT Creator only building the "release" version of my open source project. I'm looking at the ".pro" file and nothing seems to indicate "release only". Also I do see both a "debug" and a "release' configuration under the "projects" page.

I even tried to delete the "release" configuration and build (so the only configuration is my "debug" configuration). It still built with the -O2 flag.

Please help.

-------------------- ".pro" follows ------------------
# GLC_Player 2.1 qmake configuration
TEMPLATE = app
CONFIG += warn_on release
TARGET = glc_player
VERSION = 2.2.0

unix:OBJECTS_DIR = ./Build
unix:MOC_DIR = ./Build
unix:UI_DIR = ./Build
unix:RCC_DIR = ./Build

QT += core \
gui \
opengl \
xml

win32 {
LIBS += -L"$$(GLC_LIB_DIR)/lib" \
-lGLC_lib2
DEPENDPATH+= "$$(GLC_LIB_DIR)/lib"
INCLUDEPATH += "$$(GLC_LIB_DIR)/include"
RC_FILE = ./ressources/glc_player.rc
}

unix {
LIBS += -lGLC_lib
INCLUDEPATH += "/usr/include/GLC_lib"
}

TRANSLATIONS = ressources/glc_player_fr.ts

HEADERS_GLCPLAYER += FileEntry.h \
OpenFileThread.h \
SaveFileThread.h \
glc_player.h \
AlbumFile.h \
FileOpenFilter.h \
UserInterfaceSate.h \
ExportToWeb.h

HEADERS_UICLASS += ui_class/AboutPlayer.h \
ui_class/SettingsDialog.h \
ui_class/EditCamera.h \
ui_class/EditLightDialog.h \
ui_class/SelectionProperty.h \
ui_class/AlbumManagerView.h \
ui_class/InstanceProperty.h \
ui_class/MaterialProperty.h \
ui_class/ChooseShaderDialog.h \
ui_class/ListOfMaterial.h \
ui_class/ModelProperties.h \
ui_class/OpenAlbumOption.h \
ui_class/SendFilesDialog.h \
ui_class/ScreenshotDialog.h \
ui_class/MultiScreenshotsDialog.h \
ui_class/ExportWebDialog.h \
ui_class/LeftSideDock.h \
ui_class/ModelManagerView.h \
ui_class/ModelStructure.h \
ui_class/ExportProgressDialog.h \
ui_class/EditPositionDialog.h

HEADERS_OPENGLVIEW += opengl_view/OpenglView.h \
opengl_view/MaterialOpenglView.h \
opengl_view/MultiShotsOpenglView.h

HEADERS += $${HEADERS_GLCPLAYER} $${HEADERS_UICLASS} $${HEADERS_OPENGLVIEW}

SOURCES_GLCPLAYER += main.cpp \
FileEntry.cpp \
OpenFileThread.cpp \
SaveFileThread.cpp \
glc_player.cpp \
AlbumFile.cpp \
FileOpenFilter.cpp \
UserInterfaceSate.cpp \
ExportToWeb.cpp

SOURCES_UICLASS += ui_class/AboutPlayer.cpp \
ui_class/SettingsDialog.cpp \
ui_class/EditCamera.cpp \
ui_class/EditLightDialog.cpp \
ui_class/SelectionProperty.cpp \
ui_class/AlbumManagerView.cpp \
ui_class/InstanceProperty.cpp \
ui_class/MaterialProperty.cpp \
ui_class/ChooseShaderDialog.cpp \
ui_class/ListOfMaterial.cpp \
ui_class/ModelProperties.cpp \
ui_class/OpenAlbumOption.cpp \
ui_class/SendFilesDialog.cpp \
ui_class/ScreenshotDialog.cpp \
ui_class/MultiScreenshotsDialog.cpp \
ui_class/ExportWebDialog.cpp \
ui_class/LeftSideDock.cpp \
ui_class/ModelManagerView.cpp \
ui_class/ModelStructure.cpp \
ui_class/ExportProgressDialog.cpp \
ui_class/EditPositionDialog.cpp

SOURCES_OPENGLVIEW += opengl_view/OpenglView.cpp \
opengl_view/MaterialOpenglView.cpp \
opengl_view/MultiShotsOpenglView.cpp

SOURCES += $${SOURCES_GLCPLAYER} $${SOURCES_UICLASS} $${SOURCES_OPENGLVIEW}

FORMS += designer/HelpBrowser.ui \
designer/AboutPlayer.ui \
designer/SettingsDialog.ui \
designer/glc_player.ui \
designer/EditCamera.ui \
designer/SelectionProperty.ui \
designer/EditLightDialog.ui \
designer/AlbumManagerView.ui \
designer/InstanceProperty.ui \
designer/MaterialProperty.ui \
designer/ChooseShaderDialog.ui \
designer/ListOfMaterial.ui \
designer/ModelProperties.ui \
designer/OpenAlbumOption.ui \
designer/SendFilesDialog.ui \
designer/ScreenshotDialog.ui \
designer/MultiScreenshotsDialog.ui \
designer/ExportWebDialog.ui \
designer/LeftSideDock.ui \
designer/ModelManagerView.ui \
designer/ModelStructure.ui \
designer/ExportProgressDialog.ui \
designer/EditPosition.ui

RESOURCES += ressources/lang.qrc \
designer/glc_player.qrc \
ressources/shaders.qrc

mac {
ICON = ressources/images/Logo.icns
QMAKE_INFO_PLIST = ressources/Info_mac.plist
TARGET = glc_player
}

Added after 29 minutes:

Now I see that this is the culprit option


CONFIG += warn_on release

}