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] trying to add/modify arguments for make...

[solved] trying to add/modify arguments for make...

Scheduled Pinned Locked Moved Qt Creator and other tools
11 Posts 2 Posters 3.4k 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.
  • M Offline
    M Offline
    mzimmers
    wrote on 20 Mar 2012, 23:19 last edited by
    #1

    ...but they don't seem to be taking (according to the information in the Compile Output window).

    In my .pro file, I have:

    @win32: {
    INCLUDEPATH += /boost_1_49_0
    QMAKE_CXXFLAGS_RELEASE += -O3 -pipe
    }
    @

    I don't know if "win32" is right; I'm just guessing here. I've also tried "win" and "win64" with the same results.

    Do I need to "declare" this "win32" (or whatever) to Qt to get it to pick this up from the .pro file? Or, is there some other step I'm missing?

    Thanks.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on 21 Mar 2012, 15:30 last edited by
      #2

      Try it without the :

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mzimmers
        wrote on 21 Mar 2012, 16:35 last edited by
        #3

        It said "configuration unchanged, skipping qmake step."

        Since that's a qmake flag, I'm not sure what to do about this.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on 21 Mar 2012, 17:08 last edited by
          #4

          Have you run qmake manually from the build menu?

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mzimmers
            wrote on 21 Mar 2012, 17:17 last edited by
            #5

            No, I hadn't. Just did it, but it still wouldn't rebuild. So I did a clean, and then built. It looks like the parameters took. Thanks.

            I'll ask you the same question that I've asked others, and no one seems to want to answer: where can I find a list of legal values like "win32" and "macx"? I couldn't find them in the qmake documentation page.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mzimmers
              wrote on 23 Mar 2012, 03:43 last edited by
              #6

              Can someone please answer this for me? I need to put something into a .pro file for linux-only builds, and I can't find anything about that in:

              "qmake reference manual":http://qt-project.org/doc/qt-4.7/qmake-variable-reference.html

              Again, I'm looking for the list of tags or whatever they're called, like the "win32" in my first post.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mlong
                wrote on 23 Mar 2012, 17:29 last edited by
                #7

                For Linux stuff, you can use the "unix" tag. Again, I don't know of a complete list. Not saying there isn't one, but I just don't know offhand.

                Software Engineer
                My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mzimmers
                  wrote on 23 Mar 2012, 17:31 last edited by
                  #8

                  OK, thank you, mlong. Am I missing something here, or is it a little strange that there isn't some list of those tags? I mean, how is a beginner (like me) supposed to know about this stuff other than pestering the forum?

                  It really seems to me like it should be documented somewhere...

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mlong
                    wrote on 23 Mar 2012, 18:05 last edited by
                    #9

                    I don't know of an exhaustive list. The issue also stems from the fact that scoping operators aren't limited to just OS types. There are a number of different conditions which can be tested against (whether you're debugging or in release mode, other variables, etc.)

                    The best I can offer off the top of my head is the "scopes":http://qt-project.org/doc/qt-4.8/qmake-advanced-usage.html section in the qmake manual.

                    [Edit: changed link]

                    Also, to quote from that same doc page:

                    bq. In addition to the win32, macx, and unix values used in many scope conditions, various other built-in platform and compiler-specific values can be tested with scopes. These are based on platform specifications provided in Qt's mkspecs directory.

                    Software Engineer
                    My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mzimmers
                      wrote on 23 Mar 2012, 18:24 last edited by
                      #10

                      Oh, I hadn't seen that page. That's got some very helpful stuff. Thanks, mlong.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mlong
                        wrote on 23 Mar 2012, 18:39 last edited by
                        #11

                        You're very welcome!

                        Software Engineer
                        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                        1 Reply Last reply
                        0

                        4/11

                        21 Mar 2012, 17:08

                        topic:navigator.unread, 7
                        • Login

                        • Login or register to search.
                        4 out of 11
                        • First post
                          4/11
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved