Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [solved] Correct way to clean sources in windows?
Forum Updated to NodeBB v4.3 + New Features

[solved] Correct way to clean sources in windows?

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 894 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • David.GD Offline
    David.GD Offline
    David.G
    wrote on last edited by David.G
    #1

    Hello,

    Recently I compiled qt 5.6.0 (alpha) on windows (msvc2015), some small problems appeared and I took care of them. Thing is I have to rebuild it again and after running nmake distclean I proceeded to just configure the project again and things started to fail while compiling, something that never happened on my first compilation.

    So I run nmake distclean again and notice that it's running into fatal errors, so the source is really never cleaned properly thus I have to be unzipping the source again and again which is.... not something I want to do.

    So.. I don't know if this is completely related to 5.6.0 or if it happens in 5.5.0. At the moment I need 5.6.0 because they finally added rootIndex in QML TreeView (among other things of course). or if I'm not using the correct commands.

    Any suggestions? I want to avoid pulling the whole qt5 project in git...

    1 Reply Last reply
    0
    • Paul H.P Offline
      Paul H.P Offline
      Paul H.
      wrote on last edited by Paul H.
      #2

      Do an "out of source" build. Then you only need to delete the build directory to start over. The way to do this is create a build directory, change to that directory, then call the configure script with it's full path. Here is a script that I use to automate this, for reference. Note: <configuration_options> is just a place holder. Replace with your options.

      :: Set these for your system
      SET _SOURCE=G:\Sources\qt5
      SET _BUILD=G:\Sources\build_qt5-vs2013-64
      
      :: Remove old build and start fresh
      rmdir /Q /S %_BUILD%
      mkdir %_BUILD%
      
      cd %_BUILD%
      call %_SOURCE%\configure.bat <configuration_options>
      
      1 Reply Last reply
      0
      • David.GD Offline
        David.GD Offline
        David.G
        wrote on last edited by
        #3

        Ah! alright, I shall go that route. Thanks, @Paul-H.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved