Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Get rid of a qmake warning
Forum Updated to NodeBB v4.3 + New Features

Get rid of a qmake warning

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qmakemakefile
3 Posts 2 Posters 2.0k Views
  • 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.
  • I Offline
    I Offline
    Illogica
    wrote on last edited by
    #1

    Hello gentlemen,
    here's an extract of my qmake file, where I launch an externale makefile to build a library needed by my project:

    unix{
        libenet.commands = cd $$PWD/src/enet && make -f Makefile
        QMAKE_EXTRA_TARGETS += libenet
        PRE_TARGETDEPS += libenet
    }
    

    Everything works, but I get this annoying warning:

    :-1: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.

    How can I get rid of it? I already tried the trivial things, like adding -j1 to the libenet.commands line, but with no luck.

    raven-worxR 1 Reply Last reply
    0
    • I Illogica

      Hello gentlemen,
      here's an extract of my qmake file, where I launch an externale makefile to build a library needed by my project:

      unix{
          libenet.commands = cd $$PWD/src/enet && make -f Makefile
          QMAKE_EXTRA_TARGETS += libenet
          PRE_TARGETDEPS += libenet
      }
      

      Everything works, but I get this annoying warning:

      :-1: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.

      How can I get rid of it? I already tried the trivial things, like adding -j1 to the libenet.commands line, but with no luck.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Illogica
      This issue shows the same problem as you.
      The solution seems to be to substitute "make" with "$(MAKE)" in your qmake pro file

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Illogica
        wrote on last edited by
        #3

        @raven-worx said:

        $(MAKE)

        Awesome, that worked. Thank you!

        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