Sunday, July 6th 2008, 4:12pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Posts: 3

Location: London, UK

Occupation: IT Director

1

Monday, April 14th 2008, 8:16am

qmake debug release win32

Hi

Uisng QT 3.3.4 and visual studio 2003 SP1

I am trying to get qmake to work in the way I would normally do so with visual studio. I am building a solution with a number of projects in both debug and release mode. I want to keep my source tree clean so I build objects and libraries outside the tree. As I want to switch without rebuilding the whole thing I don't want debug and release in the same place.

In visual studio I would set IntermediateDirectory to be soem place outside my tree and different for each.

My .pro file is shown below, when config is set to debug I get

Name="Release|Win32"
IntermediateDirectory="Release\"
Name="Debug|Win32"
IntermediateDirectory="dir1\"

and when it is set to relese I get

Name="Release|Win32"
IntermediateDirectory="dir2\"
Name="Debug|Win32"
IntermediateDirectory="Debug\"

i.e. for the config I have specified it is working but defaulting to the regualr place for the one I haven't defined.

CONFIG = debug
#CONFIG = release
TEMPLATE = vcapp

MYNAME = renderer

debug {
DESTDIR = ./dir1
OBJECTS_DIR = ./dir1
}
else:release {
DESTDIR = ./dir2
OBJECTS_DIR = ./dir2
}



HEADERS += hello.h
SOURCES += hello.cpp
SOURCES += main.cpp
  • Go to the top of the page

2

Monday, April 14th 2008, 8:26am

RE: qmake debug release win32

while building your project, you get some errors?
  • Go to the top of the page

Posts: 3

Location: London, UK

Occupation: IT Director

3

Monday, April 14th 2008, 8:48am

RE: qmake debug release win32

> while building your project, you get some errors?

No, no errors at all. It runs to completion fine and if I have a debug it is exactly as I want, and if I have a release it is exactly as I want, but I want to have both options so I can switch in visual studio
  • Go to the top of the page

Rate this thread