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. [Solved] [Moved] Qt Creator , default parameter of make ?
Forum Updated to NodeBB v4.3 + New Features

[Solved] [Moved] Qt Creator , default parameter of make ?

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 5 Posters 4.5k 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.
  • C Offline
    C Offline
    c0debreak
    wrote on last edited by
    #1

    Hi,

    I wanted to make the default parameter to "make -j4 -w" in the building directory , because for a big project, things went really slow on compiling , especially in windows / mingw32.

    Enabling multi-thread of make , can cause problems to stop the process , i tried and it occured.

    But still i wanted this to be an option in QtCreator's settings page , is there something already exists ? Or modify mkspec files ? I don't know much about this.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      p-himik
      wrote on last edited by
      #2

      Open your project, go to Projects tab. You need to modify "Make:" part of the "Build steps" section.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        @p-himik:
        while this works for single configurations of single projects, there is no general configuration (default settings) for that.

        Feel free to vote for "QTCREATORBUG-6825":https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6825

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          Update:
          The suggestion of adding a general setting was rejected within minutes, so don't count on this being added to Creator eventually.

          http://www.catb.org/~esr/faqs/smart-questions.html

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

            How about just setting the MAKEFLAGS environment variable? All decent make implementations use that (at least on Unix;-).

            1 Reply Last reply
            0
            • C Offline
              C Offline
              c0debreak
              wrote on last edited by
              #6

              Don't seem to work with MAKEFLAGS ,

              I tried: env MAKEFLAGS="-j4" qtcreator *pro , and it still launches make -w

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

                Make evaluates MAKEFLAGS itself, so you do not see this reflected in the command line triggered by Qt Creator.

                Check your favorite process monitor: It should show several compilers running.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  miroslav
                  wrote on last edited by
                  #8

                  Here is a solution that works quite nicely. I export MAKEFLAGS, but you could as well add a -j<n> option directly to the script:

                  1. Create a script similar to the following shell script, it is named qtcreator-make.sh for me (defaults to bash, works for me (tm)):

                  #!/bin/bash
                  export PATH=/opt/icecream/bin:/usr/lib/icecc/bin:$PATH
                  time nice -2 make $*
                  rc=$?
                  if [[ $rc != 0 ]] ; then
                  exit $rc
                  fi

                  1. Either "Override make" in the Qt Creator project setting and select the script, or call Creator from an environment where a link to this script named "make" is found before the platform make tool (usually /usr/bin/make).

                  Hope this helps!

                  Mirko.

                  Mirko Boehm | mirko@kde.org | KDE e.V.
                  FSFE Fellow
                  Qt Certified Specialist

                  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