Results 1 to 2 of 2

Thread: in-source-build?

  1. #1
    Join Date
    Apr 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Arrow in-source-build?

    I kind of gave up trying to work out why some header files are found and others not found running cmake from the command line... so back to Qt Creator:

    It says "Qt Creator has detected an in-source-build in ... which prevents shadow builds... clean your source directory."

    - Why can't it just rebuild the software?
    - How do you "clean" a source directory?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: in-source-build?

    Why can't it just rebuild the software?
    Probably because the unrelated intermediate files scattered through the source would get found at the same time as the equivalent files in a shadow build area potentially leading to failed compilation/linking.
    How do you "clean" a source directory?
    You remove all the intermediate and result files from the compilation, i.e. *.o, *.obj, *.dll, *.exe, moc_*, ui_*.h etc. Typically two level of cleanliness: "clean" which prepares for another identical build, and "distclean" that removes everything including the Makefiles in preparation for distribution of source.
    Qt Code:
    1. // For the Qt SDK using MingW
    2. mingw32-make distclean
    3. // or, for the Microsoft compilers
    4. nmake distclean
    5. // or, for Linux
    6. make distclean
    To copy to clipboard, switch view to plain text mode 
    from the top directory of the source should do it.

Similar Threads

  1. Qt Creator 2.2 source build problem
    By abdol in forum Newbie
    Replies: 0
    Last Post: 8th June 2011, 22:13
  2. Replies: 0
    Last Post: 10th March 2011, 13:55
  3. Mac OSX - No documentation after source build
    By rickbsgu in forum Installation and Deployment
    Replies: 0
    Last Post: 31st August 2010, 16:53
  4. Separate Source, Build, and Install Directories
    By elemings in forum Installation and Deployment
    Replies: 4
    Last Post: 9th September 2008, 00:05
  5. How can i build a source viewer for debugger
    By blobgrinder in forum Qt Programming
    Replies: 3
    Last Post: 24th October 2006, 11:50

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.