Results 1 to 5 of 5

Thread: Compile of big generated file in release stuck

  1. #1
    Join Date
    Jun 2006
    Posts
    32
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Compile of big generated file in release stuck

    Hi All,

    I have a project with some UI files,
    One of them is complicated and contains a lot of components.
    the generated cpp file is very big (125kb).
    compiling in release is stuck on this file .

    All the cpp files are optimized for max speed (/O2)
    When i changed this specific file's optimization to "Disable" the compile process finshed.

    1. Why the compile process stuck on this file?
    2. Will this change of this file may cause me some problems?

    Thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile of big generated file in release stuck

    1. Why the compile process stuck on this file?
    How much did you wait for it to complete?

    2. Will this change of this file may cause me some problems?
    The UI code generated by uic is linear. It does not contain any complex algorithms or other processor stressing code.
    Disabling optimizations shouldn't be a problem.

  3. #3
    Join Date
    Jun 2006
    Posts
    32
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Compile of big generated file in release stuck

    1. waited more than 45 minutes.
    2. So if i have for example 4 cpp files which are compiled for max speed (/O2) and one file which is disabled for optimization in the same vcproj file under release - This is no proble?

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile of big generated file in release stuck

    1. waited more than 45 minutes.
    Must be a compiler bug.

    2. So if i have for example 4 cpp files which are compiled for max speed (/O2) and one file which is disabled for optimization in the same vcproj file under release - This is no proble?
    Won't be any problem if the code that is not optimized is the one generated by uic.

  5. #5
    Join Date
    Jun 2006
    Posts
    32
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Compile of big generated file in release stuck

    It happend on VS v7.1.630 + QT 3.3.5.
    Deleting large amount of controls helped reducing the compile time

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.