×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    86

    Selective compiling

    Dear all,

    I believe we all agree that it takes very long to compile the application.

    Is there a way to do selective compiling?? many classes are not changed and they eat a lot of compile time.

    Regards,
    Zhengtao

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Selective compiling

    Break it into libraries, either static or dll.

  3. #3
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Selective compiling

    make is not actually rebuilding object files for source files, which have not changed.
    Last edited by divanov; 2010-03-25 at 21:33.

  4. #4
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Selective compiling

    Yes, but it spends a lot of time deciding that things HAVEN'T changed.

  5. #5
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Selective compiling

    Quote Originally Posted by danhicksbyron View Post
    Yes, but it spends a lot of time deciding that things HAVEN'T changed.
    It has to make sure that nothing haven't changed in included headers. Using pimpl is good way to reduce re-compilation time.

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

    Re: Selective compiling

    Quote Originally Posted by danhicksbyron View Post
    Yes, but it spends a lot of time deciding that things HAVEN'T changed.
    This is due to veeeery slow dependency generation.

    Do you have SYMBIANBUILD_DEPENDENCYOFF=1 in your environment variable? This is a requirement for succesful building of QtWebkit with abld (without loosing nerves).
    If it is enabled everything will be always rebuilt. Once you have built Qt you can disable the flag in your own programs to speed up / slow down the compilation.

    In my own testing I actually found that it sometimes takes longer to generate the dependencies than to rebuild everything. This is machine dependent.

    When building for the first time you should always have that flag defined as there possibly cannot be any built dependencies.

    Recommendation:
    use SBSv2 aka Raptor.

    SBSv2 has much faster dependecy generation using less memory and supports multithreaded compilation by default (-j5 or user set).
    Unfortunately support for SBSv2 in S60 SDKs doesn't exist out of the box.
    Check how to use it in FN S60 SDKs from http://developer.symbian.org/wiki/in...oundation_SDKs

    note that SYMBIANBUILD_DEPENDENCYOFF has no effect when using SBSv2

    -Janne
    Last edited by jakoskin; 2010-03-30 at 15:02. Reason: restructured answer

  7. #7
    Registered User
    Join Date
    Mar 2004
    Posts
    4

    Re: Selective compiling

    @jakoskin You wouldn't happen to have that 'Using Raptor in pre-Foundation SDKs' anywhere, would you?

Similar Threads

  1. a problem when compiling
    By leaing in forum Symbian
    Replies: 2
    Last Post: 2007-01-25, 12:05
  2. HELP!: Error compiling ....
    By SpaceCowboy in forum Mobile Java General
    Replies: 0
    Last Post: 2003-08-19, 16:21
  3. Difference between compiling in DOS and VC6
    By advocatee in forum Symbian
    Replies: 1
    Last Post: 2003-06-26, 04:22
  4. Problem compiling BIOexample & BIOcontrol
    By tianlye in forum Symbian
    Replies: 1
    Last Post: 2003-02-18, 18:31
  5. Compiling Chinese unicode for 7650/7210
    By damien12345 in forum Mobile Java General
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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