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. qmake and external library/header dependencies
Forum Updated to NodeBB v4.3 + New Features

qmake and external library/header dependencies

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 576 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
    poncho524
    wrote on last edited by
    #1

    I'm trying to come up with a way to add dependencies on external libraries in my qmake files.

    I want to trigger a external library build (eg configure make) if libs and headers aren't present.

    I want it to be able to work with a multithread build (eg make -j4)

    I tried defining QMAKE_EXTRA_TARGET and PRE_TARGETDEPS. This works great for the library (.so), but it doesn't work for the header files and causes compilation to halt.

    It seems one thread starts to build library, then other threads continue compiling without waiting for the dependent library to be done building.

    Thoughts?

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

      Hi,

      What do you mean by "trigger an external library build" ? If the dependency itself doesn't exist build it first ?

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

      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