[Qt-creator] Optimizing for speed
Dear All, I am new to qt-creator, and I am using it mainly to write my C++ programs on a Linux machine (Fedora 12). Basically, my projects are "Empty Qt4" ones. My question is: how can one configure qt-creator for optimizing for speed the C++ programs edited with qt-creator? Thanks in advance, Paul ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Optimizing for speed
On Linux, it uses -O2 by default in release mode if I recall correctly, so it already is. /s/ Adam On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith wrote: > Dear All, > > I am new to qt-creator, and I am using it mainly to write my C++ > programs on a Linux machine (Fedora 12). Basically, my projects are > "Empty Qt4" ones. > > My question is: how can one configure qt-creator for optimizing for > speed the C++ programs edited with qt-creator? > > Thanks in advance, > > Paul > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Optimizing for speed
Thanks, Adam. I was thinking about the option -O3. How can one force qt-creator to use -O3? Paul On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland wrote: > On Linux, it uses -O2 by default in release mode if I recall > correctly, so it already is. > > /s/ Adam > > On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith wrote: >> Dear All, >> >> I am new to qt-creator, and I am using it mainly to write my C++ >> programs on a Linux machine (Fedora 12). Basically, my projects are >> "Empty Qt4" ones. >> >> My question is: how can one configure qt-creator for optimizing for >> speed the C++ programs edited with qt-creator? >> >> Thanks in advance, >> >> Paul >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Optimizing for speed
This is really a qmake question, since it's qmake that controls this. In your .pro file, use something like: QMAKE_LFLAGS -= -O2 QMAKE_LFLAGS += -O3 /s/ Adam On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith wrote: > Thanks, Adam. I was thinking about the option -O3. How can one force > qt-creator to use -O3? > > Paul > > > On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland wrote: >> On Linux, it uses -O2 by default in release mode if I recall >> correctly, so it already is. >> >> /s/ Adam >> >> On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith wrote: >>> Dear All, >>> >>> I am new to qt-creator, and I am using it mainly to write my C++ >>> programs on a Linux machine (Fedora 12). Basically, my projects are >>> "Empty Qt4" ones. >>> >>> My question is: how can one configure qt-creator for optimizing for >>> speed the C++ programs edited with qt-creator? >>> >>> Thanks in advance, >>> >>> Paul >>> ___ >>> Qt-creator mailing list >>> Qt-creator@trolltech.com >>> http://lists.trolltech.com/mailman/listinfo/qt-creator >>> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Qt Creator crashes on breakpoint
Hi Andre', I've run the following commands, and the compilation breaks on Qt creator: --- cd ../git git clone git://gitorious.org/qt-creator/qt-creator.git cd ../qt-everywhere-opensource-src-4.6.0 qmake -r CONFIG+=debug ../git/qtcreator.pro make cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/styles/default.xml styles/default.xml cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/styles/fakevim.xml styles/fakevim.xml cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/styles/grayscale.xml styles/grayscale.xml cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/gdbmacros/gdbmacros.cpp gdbmacros/gdbmacros.cpp cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/gdbmacros/gdbmacros.h gdbmacros/gdbmacros.h cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/gdbmacros/gdbmacros.pro gdbmacros/gdbmacros.pro cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/gdbmacros/gdbmacros_p.h gdbmacros/gdbmacros_p.h cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/gdbmacros/LGPL_EXCEPTION.TXT gdbmacros/LGPL_EXCEPTION.TXT cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/gdbmacros/LICENSE.LGPL gdbmacros/LICENSE.LGPL cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/gdbmacros/test/dumpertest.pro gdbmacros/test/dumpertest.pro cp -f /home/quest/Desktop/creator/qt-creator-1.3.0/share/qtcreator/gdbmacros/test/main.cpp gdbmacros/test/main.cpp (test -z "" || cd "" ; targ=`basename phony_target`; objcopy --only-keep-debug "$targ" "$targ.debug" && objcopy --strip-debug "$targ" && objcopy --add-gnu-debuglink="$targ.debug" "$targ" && chmod -x "$targ.debug" ) ; objcopy: 'phony_target': No such file gmake[2]: *** [phony_target] Error 1 gmake[2]: Leaving directory `/home/quest/Desktop/creator/qt-everywhere-opensource-src-4.6.0/share/qtcreator' gmake[1]: *** [sub-qtcreator-static-pro-make_default] Error 2 gmake[1]: Leaving directory `/home/quest/Desktop/creator/qt-everywhere-opensource-src-4.6.0/share' gmake: *** [sub-share-make_default-ordered] Error 2 localhost quest ~/Desktop/creator/qt-everywhere-opensource-src-4.6.0 $ --- On Fri, 12/18/09, André Pönitz wrote: From: André Pönitz Subject: Re: [Qt-creator] Qt Creator crashes on breakpoint To: "qt-creator@trolltech.com" Date: Friday, December 18, 2009, 3:56 PM On Friday 18 December 2009 15:18:53 ext Qt Quest wrote: > OK, compiling Qt 4.6.0 debug. > Is there a way to compile Qt creator for debug mode > from the command line? qmake -r CONFIG+=debug > It should also have some --with-qt-dir flag as well... That's not needed, just use the qmake from that directory. Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator