Change compilation flags in Qt under Mac OS X?

You should run qmake command in your project directory after you edited the pro file.

You should run qmake command in your project directory after you edited the . Pro file.

Thanks Pavel! Actually QT Creator runs QMake automatically when I change the pro file. Do I need to run it manually (I don't see the difference)?

Do such changes work for you? I could change the Makefile manually but it would require a manual step every time... thanks again, Lior – Lior Sep 17 '09 at 18:35 @Lior: I was actually just trying to guess what could help you, I don't even own a mac nor use a qt creator. Try to run qmake manually and if it yields the makefile with the correct flags, maybe, you should not edit the .

Pro file either. Instead, you should try to edit CFLAGS inside som king of "Project options" windows in Qt Creator. – Pavel Shved Sep 17 '09 at 18:47.

The chmod command is failing because that directory is owned by root (i.e. , not your user). You could handle that with: sudo chmod .... I guess my big question is whether you know that -O3 really optimizes for speed or not.As Pavel indicated, you can edit the Makefile and build manually and test.

My guess is that -O3 won't make much of a difference and might be slightly worse. As far as setting CXXFLAGS in Qt Creator, your best bet is to override the call to Make.In the "Projects" section, go to "Build Steps" and "Make" and add CXXFLAGS='-O3 -fomit-frame-pointer' to the "Make arguments" section. Hope that helps!

I was able to solve this by editing my project's . Pro file: QMAKE_CXXFLAGS_RELEASE -= -O2 QMAKE_CXXFLAGS_RELEASE += -O3 I verified that it took effect by monitoring the compile output.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions