May 20, 2011

umen242 umen242
Lab Rat
350 posts

Qt when builing Qt from source how do i clean old configure configurations?

 

im compiling Qt from source , but i dont want to extract the source each time i want to build it how can i clean previous configuration whit the configure tool?

11 replies

May 20, 2011

ZapB ZapB
Ant Farmer
1427 posts

  1. make confclean

should do it.

 Signature 

Nokia Certified Qt Specialist
Interested in hearing about Qt related work

January 29, 2013

astodolski astodolski
Ant Farmer
235 posts

Im building Qt 5.0from source and when trying to re-run configure, I get an error: Don’t know how to make confclean. I am using Qt 5.0.0 (MSVC) source from download page. The only option is to call nmake distclean which is a bigger process.

January 30, 2013

JKSH JKSH
Area 51 Engineer
2907 posts

Qt 5 doesn’t support `make confclean’ anymore because the modules are split into separate repositories (http://qt-project.org/wiki/Qt_5_Structure ). In contrast, Qt 4 had everything in 1 repository.

From your Qt 5 root, call:

  1. git submodule foreach --recursive "git clean -dfx"

That command calls `git clean -dfx’ on every Git submodule, which cleans out everything. Then, you can run `configure’ again.

 Signature 

Qt Documentation Search (Google Chrome): http://qt-project.org/forums/viewthread/36199

January 30, 2013

ZapB ZapB
Ant Farmer
1427 posts

That of course requires a git clone rather than a copy of the source from the downloads page.

See http://qt-project.org/wiki/Building_Qt_5_from_Git for details.

 Signature 

Nokia Certified Qt Specialist
Interested in hearing about Qt related work

January 30, 2013

JKSH JKSH
Area 51 Engineer
2907 posts

ZapB wrote:
That of course requires a git clone rather than a copy of the source from the downloads page.
Ah… I forgot that bit.

 Signature 

Qt Documentation Search (Google Chrome): http://qt-project.org/forums/viewthread/36199

January 30, 2013

astodolski astodolski
Ant Farmer
235 posts

ZapB wrote:
That of course requires a git clone rather than a copy of the source from the downloads page.

See http://qt-project.org/wiki/Building_Qt_5_from_Git for details.

If the only way to get a clean and error free build is to use a git clone then the source zip and tarballs should be removed. I’ve used that for several minor versions of 4 and it has served me well.

January 30, 2013

Lukas Geyer Lukas Geyer
Lab Rat
2074 posts

Why don’t you just use a shadow build? This way your source tree will be always clean.

January 30, 2013

astodolski astodolski
Ant Farmer
235 posts
Lukas Geyer wrote:
Why don’t you just use a shadow build? This way your source tree will be always clean.

Shadow or direct doesn’t speak to the issue of not being able to perform a build.

January 30, 2013

Lukas Geyer Lukas Geyer
Lab Rat
2074 posts

The question was about how to get a clean source tree, wasn’t it?

And one answer is: use a shadow bulid, because then your source tree will never be altered. And if something goes wrong with the build just create another clean and error free shadow build from the still clean source tree.

You can shadow build the source tarball and a git clone.

January 30, 2013

astodolski astodolski
Ant Farmer
235 posts

Lukas Geyer wrote:
The question was about how to get a clean source tree, wasn’t it?

And one answer is: use a shadow bulid, because then your source tree will never be altered. And if something goes wrong with the build just create another clean and error free shadow build from the still clean source tree.

You can shadow build the source tarball and a git clone.

Fair enough, thanks.

January 31, 2013

HarrySatt HarrySatt
Lab Rat
21 posts

I used nmake clean. It worked. nmake confclean was also not working in Qt4.8.

 
  ‹‹ [solved] exe has no version number -> even after setting VERSION in the project file      Qt Creator - autocompletion not working ››

You must log in to post a reply. Not a member yet? Register here!