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. QtCreator subdirs project structure: DLL use and packaging questions
Forum Updated to NodeBB v4.3 + New Features

QtCreator subdirs project structure: DLL use and packaging questions

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 333 Views 2 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.
  • J Offline
    J Offline
    JohnGa
    wrote on last edited by JohnGa
    #1

    Hoping to discover good practices for our Qt projects. We currently have separate exe and shared library QtCreator projects. In the exe project, we copy the shared libraries into the exe project. This means, we are paying a "copy-shared libraries" penalty every time we build the exe. Want to find a solution that works on all windows/unix platforms.

    Looks like QtCreator subdirs projects (with appropriate dependencies and include/lib paths) might be a good solution to prevent the copying of the shared libraries's during development running/debugging.

    I understand how to link/include the shared library files. How can I have the exe project just refer/use to the share- libraries in shared-library subdir projects at runtime without copying? Would like to have either the debug profile or release profile take effect in all the projects. This would allow the exe project to use the various shared libraries without copying them.

    Thanks

    K 1 Reply Last reply
    0
    • J JohnGa

      Hoping to discover good practices for our Qt projects. We currently have separate exe and shared library QtCreator projects. In the exe project, we copy the shared libraries into the exe project. This means, we are paying a "copy-shared libraries" penalty every time we build the exe. Want to find a solution that works on all windows/unix platforms.

      Looks like QtCreator subdirs projects (with appropriate dependencies and include/lib paths) might be a good solution to prevent the copying of the shared libraries's during development running/debugging.

      I understand how to link/include the shared library files. How can I have the exe project just refer/use to the share- libraries in shared-library subdir projects at runtime without copying? Would like to have either the debug profile or release profile take effect in all the projects. This would allow the exe project to use the various shared libraries without copying them.

      Thanks

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @JohnGa

      One option is the DESTDIR variable of qmake to be used with the dlls in their creation process.

      Vote the answer(s) that helped you to solve your issue(s)

      J 1 Reply Last reply
      2
      • K koahnig

        @JohnGa

        One option is the DESTDIR variable of qmake to be used with the dlls in their creation process.

        J Offline
        J Offline
        JohnGa
        wrote on last edited by
        #3

        @koahnig Thanks. This is a very good solution to my problem.

        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