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. [SOLVED] How to provide both debug and release version of a library in two packages?
Qt 6.11 is out! See what's new in the release blog

[SOLVED] How to provide both debug and release version of a library in two packages?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.8k 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.
  • S Offline
    S Offline
    soroush
    wrote on last edited by
    #1

    I would like to make three debian packages for my library. One for development, say libfoo-dev another one for runtime library libfoo and finally a library for debug build libfoo-dbg.

    Currently I'm doing like this in my .pro :

    @
    CONFIG(release, debug|release){
    DESTDIR = ./release
    OBJECTS_DIR = release/.obj
    MOC_DIR = release/.moc
    RCC_DIR = release/.rcc
    UI_DIR = release/.ui
    BUILD = "release"
    TARGET = foo
    }

    CONFIG(debug, debug|release){
    DESTDIR = ./debug
    OBJECTS_DIR = debug/.obj
    MOC_DIR = debug/.moc
    RCC_DIR = debug/.rcc
    UI_DIR = debug/.ui
    BUILD = "debug"
    TARGET = foo_d
    }
    @

    And then, debug and release binaries have different names, (like official Qt libs)

    My Question is that, is there another way to provide debugging symbols without releasing a huge library? May be something like exporting a def dump?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      IIRC you only need to build a debug version. Debian will strip debug symbols from its packages automatically and it can store those symbols into a dbg package if desired.

      The -dbg package should contain the debugging symbols only, there is no separate debug build of the library needed. The symbols are picked up by the debugger automatically (if done correctly;)

      See http://wiki.debian.org/DebugPackage for the details.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        soroush
        wrote on last edited by
        #3

        It works :)

        Thakns

        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