[solved] trying to add/modify arguments for make...
-
wrote on 20 Mar 2012, 23:19 last edited by
...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.
-
wrote on 21 Mar 2012, 15:30 last edited by
Try it without the :
-
wrote on 21 Mar 2012, 16:35 last edited by
It said "configuration unchanged, skipping qmake step."
Since that's a qmake flag, I'm not sure what to do about this.
-
wrote on 21 Mar 2012, 17:08 last edited by
Have you run qmake manually from the build menu?
-
wrote on 21 Mar 2012, 17:17 last edited by
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.
-
wrote on 23 Mar 2012, 03:43 last edited by
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.
-
wrote on 23 Mar 2012, 17:29 last edited by
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.
-
wrote on 23 Mar 2012, 17:31 last edited by
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...
-
wrote on 23 Mar 2012, 18:05 last edited by
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.
-
wrote on 23 Mar 2012, 18:24 last edited by
Oh, I hadn't seen that page. That's got some very helpful stuff. Thanks, mlong.
-
wrote on 23 Mar 2012, 18:39 last edited by
You're very welcome!
4/11