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. Dependency management with Qt Shared Library?
Qt 6.11 is out! See what's new in the release blog

Dependency management with Qt Shared Library?

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

    I am coming from the world of gradle/cocopods/npm/nuget/etc dependency management.

    I am writing a Qt app (https://github.com/NightVsKnight/NDI-Monitor) and now I want to refactor it from a Stand Alone App to a Shared Library plus a demo app showing how to use that Library.

    What is the modern recommended best practice higher level sequence of events for someone wanting to use a 3rd party widget library in their own app/library?
    Are they expected to just clone or copy the source code and/or supporting binaries and manually add them to their makefile, possibly just using git submodules?

    How to best structure my own project repo and code to best be used by other people?

    I've read https://doc.qt.io/qt-6/sharedlibrary.html and am familiar with dll import/export, but it seems simpler, especially to avoid instruction incompatibility issues, to just share out my source code and not the complied binaries.

    Or, is there the concept of Qt dependency management where they can specify the name or id or url of the dependency and it auto magically is usable to their own app/library?

    Basically, is there a "qpm"? A "Qt Package Manager" in the cloud to share either code or binaries or both?

    Thanks,
    Pv

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      In fact, there's is a qpm. However, the service will be retired in the near future and they recommend what I was about to suggest you as well: check conan. Qt is also available through it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        In fact, there's is a qpm. However, the service will be retired in the near future and they recommend what I was about to suggest you as well: check conan. Qt is also available through it.

        P Offline
        P Offline
        paulpv
        wrote on last edited by
        #3

        @SGaist w00t!
        https://doc.qt.io/qtcreator/creator-project-conan.html

        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