I have managed to build a Qt app on my Fedora 14 64 bit box, install Qt in wine, and successfully build my app under the wine environment so that I can build the linux as well as the windows version on my 64 bit linux machine. I feel that I have accomplished quite a bit.

I have one remaining issue which I would appreciate some help resolving.

I am statically linking to an outside library. When compiling on the windows side, I want to link to the release version when I am making a release version of my app, and I want to link to the debug version of the external library when I am making the debug version of my app.

In my .pro file I have the following:
Qt Code:
  1. unix {
  2. unix stuff
  3. }
  4. win32 {
  5. win stuff
  6. }
To copy to clipboard, switch view to plain text mode 
In order to select the debug or release version, I have tried the following:
Qt Code:
  1. win32 {
  2. CONFIG(release debug|release) {LIBS += path\to\release\library.a}
  3. CONFIG(debug debug|release) {LIBS += path\to\debug\libraryd.a}
  4. }
To copy to clipboard, switch view to plain text mode 
As well as:
Qt Code:
  1. win32 {
  2. release {LIBS += path\to\release\library.a}
  3. debug {LIBS += path\to\debug\libraryd.a}
  4. }
To copy to clipboard, switch view to plain text mode 
Neither one of these throws any errors when compiling, but neither one of them produces the desired result, as the linker uses the same library either way.

What is the correct syntax to accomplish what I am trying to do?