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. N00b help!! Making VS 9 solution file link to release and debug libraries properly.

N00b help!! Making VS 9 solution file link to release and debug libraries properly.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 481 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.
  • W Offline
    W Offline
    wifanlith
    wrote on last edited by
    #1

    Hello,

    I am trying to add taglib into my project on Windows, and have it build against the debug library in debug, and the release library in release.

    I have this code in my .pri to help.

    win32 {
    INCLUDEPATH += $$(TAGLIB_HOME)/include/taglib
    LIBS += -L$$(TAGLIB_HOME)/lib
    debug:LIBS += -ltagd
    !debug:LIBS += -ltag
    }

    I create my visual studio solution via this call:-

    set EXTRA_QT_CONFIG=debug (which leads to CONFIG *= $$(EXTRA_QT_CONFIG))
    qmake -tp vc -r app.pro

    Obviously, this gives me a solution that in debug points to the correct debug libraries, but if I switch it to release from within the solution, it still points to the debug libraries in the project properties.

    Is there a way to make it create a solution that is dynamic, as the solution is regenerated a lot in my build process, and I don't want to have to manually change the libraries in the project properties each time.

    I'm sure that this is an easy question for someone out there, but I am lost.

    thanks,

    Wifanlith

    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