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. Make qmake not deploy .pdb files
Forum Updated to NodeBB v4.3 + New Features

Make qmake not deploy .pdb files

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.4k 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.
  • K Offline
    K Offline
    Karmo
    wrote on last edited by
    #1

    Hello,

    Question about qmake target and INSTALLS variables. I have a library project and the .pro file contains:

    QT       -= core gui
    
    TARGET = testlib
    TEMPLATE = lib
    CONFIG += shared
    
    SOURCES += \
            Testlib.cpp
    
    HEADERS += \
            Testlib.h
    
    target.path = /Test
    INSTALLS += target
    
    

    When I run "nmake install", it deploys .lib, .dll and .pdb files. I would like to build with debug info but deploy without debug info. How would I tell INSTALLS not to deploy .pdb files?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2
      QT       -= core gui
      
      TARGET = testlib
      TEMPLATE = lib
      CONFIG += shared debug_and_release
      
      SOURCES += \
              Testlib.cpp
      
      HEADERS += \
              Testlib.h
      CONFIG(release, debug|release) {
      target.path = /Test
      INSTALLS += target
      }
      

      P.S.
      testlib is already the name of a Qt module. To avoid name confusion, consider changing your target name

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3
      • K Offline
        K Offline
        Karmo
        wrote on last edited by
        #3

        Thanks but this is not exactly what I'm looking for. I'm building in Release mode and have checked the "Generate separate debug info" under Qt Creator Projects (which adds "CONFIG+=force_debug_info" "CONFIG+=separate_debug_info").

        I would like to build a Release mode dll with debug info (pdb will be used to analyze minidumps in case of crashes). I just don't want to deploy the pdb file with "nmake install", this would make my build script easier.

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          I'm pretty sure qmake is not flexible enough to do this but I'd be happy to be wrong

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved