×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    15

    How to avoid a whole project rebuilding ?

    I'm working with Qt Symbian 4.6.0. I noticed that every time when I make a change just in one .cpp file it causes the WHOLE project rebuild. I've noticed that in Carbide.c++ and in console building (but I guess in this sense it is the same). I believe this is a build script issue cause calling say "make debug-winscw" when just any of project .cpp files is edited should just get object file of that exact file and link it with all other but not rebuild the whole project. I've noticed that behavior in all application I tried to build including a lot of Qt examples. And it's probably not only Qt applications build issue.

    Is it any way to avoid this whole rebuild or I'm doing something wrong and it shouldn't work so ?

    Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2009
    Posts
    430

    Re: How to avoid a whole project rebuilding ?

    AFAIK you cant do anything besided waiting for the new build system called "raptor" that is scheduled I think for Q1 2010

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to avoid a whole project rebuilding ?

    Quote Originally Posted by axeljaeger View Post
    AFAIK you cant do anything besided waiting for the new build system called "raptor" that is scheduled I think for Q1 2010
    and i donot think the raptor will support existing SDks

  4. #4
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    286

    Re: How to avoid a whole project rebuilding ?

    If you are comfortable working on command prompt you can compile only the changed object files.

    qmake
    make debug-winscw

    and after you make a change:
    abld target winscw udeb

    This will compile only the changed files and invoke linker.

    Other things to speedup the compilation is to enable multiple threads for make
    /epoc32/tools/bldmake.pl
    change
    \t$CallMake $RealMakefile \$(CFG)\n
    to
    \t$CallMake -j 5 $RealMakefile \$(CFG)\n
    5 is for my quad machine.. amount of CPUs/Cores + 1 is considered optimal.

    Yet another trick is to remove dependency generation all-together but then you need to either manually compile each unit you know you touched or do full rebuilds.
    env variable:
    set SYMBIANBUILD_DEPENDENCYOFF=1

    -Janne

  5. #5
    Registered User
    Join Date
    Oct 2009
    Posts
    15

    Re: How to avoid a whole project rebuilding ?

    Thanks for useful info !

  6. #6
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: How to avoid a whole project rebuilding ?

    Hi,
    all I can say is that Carbide supports partial rebuilding for C++ - this is what keeps me alive on my MSI Wind.

    As for QT - just getting into it, so no promises yet.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian C++
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. Problem adding new source file to Symbian project.
    By jvinjam in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2009-01-06, 19:47
  3. Final year project
    By pablopicasso in forum Geolocation and Navigation
    Replies: 1
    Last Post: 2008-10-30, 04:36
  4. Tips on using NDS 1.1
    By mitts in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2006-01-18, 16:07
  5. Cannot add .lib file to VC6 project (Series 60 SDK)
    By ngabordh in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-03-25, 15:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •