Re: [Interest] speeding up "make clean" in qt src on OS X?

2017-04-20 Thread Patrick Stinson
Thank you for that explanation. I pulled Qt from git and don't remember the 
option to download specific modules but will look at the docs to find out how. 
Very good suggestion.

> On Apr 20, 2017, at 11:28 AM, Thiago Macieira  
> wrote:
> 
> Em quinta-feira, 20 de abril de 2017, às 01:34:10 PDT, Patrick Stinson 
> escreveu:
>> Running “make clean” in the root qt src dir calls xcodebuild a whole bunch
>> of times and takes a really, really long time. Is there any faster way to
>> do this? I am already excluding a lot of unnecessary builds in my configure
>> line:
>> 
>> ./configure -static -debug-and-release -nomake examples -xplatform macx-ios-
>> clang -sdk iphoneos -nomake tests
> 
> Konstantin's answer is the best way, but here's what's happening for you. You 
> used -nomake examples -nomake tests, so the Makefiles for the examples were 
> not 
> created. But when you ran make clean, it tried to clean the examples and 
> tests 
> too:
> 
>> cd qopenglwindow/ && ( test -e Makefile ||
>> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/bin/qmake -o
>> Makefile
>> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui
>> /kernel/qopenglwindow/qopenglwindow.pro )
> 
> In order to clean there, it needs to create the Makefile there first. Yes, 
> it's 
> wasteful because obviously there's nothing to be cleaned if there's no 
> Makefile 
> in the first place.
> 
> It's a qmake shortcoming. So there's nothing you can do to speed up make 
> clean 
> in the top dir.
> 
> Do what Konstantin said.
> 
> One more thing: your configure line had a LOT of -skip. If you didn't want 
> those modules, why did you download them? If all you wanted was qtbase, 
> download qtbase only.
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] speeding up "make clean" in qt src on OS X?

2017-04-20 Thread Thiago Macieira
Em quinta-feira, 20 de abril de 2017, às 01:34:10 PDT, Patrick Stinson 
escreveu:
> Running “make clean” in the root qt src dir calls xcodebuild a whole bunch
> of times and takes a really, really long time. Is there any faster way to
> do this? I am already excluding a lot of unnecessary builds in my configure
> line:
> 
> ./configure -static -debug-and-release -nomake examples -xplatform macx-ios-
> clang -sdk iphoneos -nomake tests

Konstantin's answer is the best way, but here's what's happening for you. You 
used -nomake examples -nomake tests, so the Makefiles for the examples were not 
created. But when you ran make clean, it tried to clean the examples and tests 
too:

> cd qopenglwindow/ && ( test -e Makefile ||
> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/bin/qmake -o
> Makefile
> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui
> /kernel/qopenglwindow/qopenglwindow.pro )

In order to clean there, it needs to create the Makefile there first. Yes, it's 
wasteful because obviously there's nothing to be cleaned if there's no Makefile 
in the first place.

It's a qmake shortcoming. So there's nothing you can do to speed up make clean 
in the top dir.

Do what Konstantin said.

One more thing: your configure line had a LOT of -skip. If you didn't want 
those modules, why did you download them? If all you wanted was qtbase, 
download qtbase only.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] speeding up "make clean" in qt src on OS X?

2017-04-20 Thread Konstantin Tokarev


20.04.2017, 12:07, "Patrick Stinson" :
> I googled it. Just start with a clean or distclean'ed qt src dir

Yep, leftovers of generated files inside source dir would misguide qmake

> and call configure from another dir.
>
> cd my-qt5-build && ../path/to/qt/src/configure && make
>
>> On Apr 20, 2017, at 5:02 AM, Nuno Santos  wrote:
>>
>> How do you make out of the tree builds? How should one call the configure 
>> command for that?
>>
>>> On 20 Apr 2017, at 09:58, Patrick Stinson  wrote:
>>>
>>> Ah! I was not aware that you could do that. Thank you!
>>>
>>> -P
>>>
 On Apr 20, 2017, at 4:48 AM, Konstantin Tokarev  wrote:

 out-of-tree
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/interest


-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] speeding up "make clean" in qt src on OS X?

2017-04-20 Thread Konstantin Tokarev


20.04.2017, 12:02, "Nuno Santos" :
> How do you make out of the tree builds? How should one call the configure 
> command for that?

Just like with autotools, call configure with pwd being build directory instead 
of source:

mkdir qt5-build
cd qt5-build
../qt5/configure

>
>> On 20 Apr 2017, at 09:58, Patrick Stinson  wrote:
>>
>> Ah! I was not aware that you could do that. Thank you!
>>
>> -P
>>
>>> On Apr 20, 2017, at 4:48 AM, Konstantin Tokarev  wrote:
>>>
>>> out-of-tree
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest


-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] speeding up "make clean" in qt src on OS X?

2017-04-20 Thread Patrick Stinson
I googled it. Just start with a clean or distclean'ed qt src dir and call 
configure from another dir.

cd my-qt5-build && ../path/to/qt/src/configure && make


> On Apr 20, 2017, at 5:02 AM, Nuno Santos  wrote:
> 
> How do you make out of the tree builds? How should one call the configure 
> command for that? 
> 
>> On 20 Apr 2017, at 09:58, Patrick Stinson > > wrote:
>> 
>> Ah! I was not aware that you could do that. Thank you!
>> 
>> -P
>> 
>>> On Apr 20, 2017, at 4:48 AM, Konstantin Tokarev >> > wrote:
>>> 
>>> out-of-tree
>> 
>> ___
>> Interest mailing list
>> Interest@qt-project.org 
>> http://lists.qt-project.org/mailman/listinfo/interest
> 



smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] speeding up "make clean" in qt src on OS X?

2017-04-20 Thread Nuno Santos
How do you make out of the tree builds? How should one call the configure 
command for that? 

> On 20 Apr 2017, at 09:58, Patrick Stinson  wrote:
> 
> Ah! I was not aware that you could do that. Thank you!
> 
> -P
> 
>> On Apr 20, 2017, at 4:48 AM, Konstantin Tokarev > > wrote:
>> 
>> out-of-tree
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] speeding up "make clean" in qt src on OS X?

2017-04-20 Thread Patrick Stinson
Ah! I was not aware that you could do that. Thank you!

-P

> On Apr 20, 2017, at 4:48 AM, Konstantin Tokarev  wrote:
> 
> out-of-tree



smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] speeding up "make clean" in qt src on OS X?

2017-04-20 Thread Konstantin Tokarev


20.04.2017, 11:34, "Patrick Stinson" :
> Hello!
>
> Running “make clean” in the root qt src dir calls xcodebuild a whole bunch of 
> times and takes a really, really long time. Is there any faster way to do 
> this?

Yes, use out-of-tree build and remove contents of build directory.

>I am already excluding a lot of unnecessary builds in my configure line:
>
> ./configure -static -debug-and-release -nomake examples -xplatform 
> macx-ios-clang -sdk iphoneos -nomake tests -skip qt3d -skip qtactiveqt -skip 
> qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip 
> qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtdocgallery -skip 
> qtenginio -skip qtfeedback -skip qtgamepad -skip qtgraphicaleffects -skip 
> qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip 
> qtnetworkauth -skip qtpim -skip qtqa -skip qtquick1 -skip qtquickcontrols 
> -skip qtquickcontrols2 -skip qtrepotools -skip qtscript -skip qtscxml -skip 
> qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qtsystems 
> -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland 
> -skip qtwebchannel -skip qtwebengine -skip qtwebkit -skip qtwebkit-examples 
> -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras 
> -developer-build -opensource -confirm-license
>
> and it still runs a bunch of xcodebuild calls like this:
>
> rm -f .obj/tst_qpixelformat_plugin_import.o
> rm -f *~ core *.core
> cd qopenglwindow/ && ( test -e Makefile || 
> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/bin/qmake -o 
> Makefile 
> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/qopenglwindow.pro
>  ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile 
> clean
> xcodebuild clean  -project tst_qopenglwindow.xcodeproj -scheme 
> tst_qopenglwindow   -configuration Debug  -destination generic/platform=iOS 
> -destination-timeout 1
> === CLEAN AGGREGATE TARGET Qt Preprocess OF PROJECT tst_qopenglwindow WITH 
> CONFIGURATION Debug ===
>
> Check dependencies
>
> Clean.Remove clean .obj/tst_qopenglwindow.build/Debug-iphoneos/Qt\ 
> Preprocess.build
>     builtin-rm -rf 
> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/.obj/tst_qopenglwindow.build/Debug-iphoneos/Qt\
>  Preprocess.build
>
> === CLEAN TARGET tst_qopenglwindow OF PROJECT tst_qopenglwindow WITH 
> CONFIGURATION Debug ===
>
> Check dependencies
>
> Create product structure
> /bin/mkdir -p 
> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/Debug-iphoneos/tst_qopenglwindow.app
>
> Clean.Remove clean Debug-iphoneos/tst_qopenglwindow.app
>     builtin-rm -rf 
> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/Debug-iphoneos/tst_qopenglwindow.app
>
> Clean.Remove clean 
> .obj/tst_qopenglwindow.build/Debug-iphoneos/tst_qopenglwindow.build
>     builtin-rm -rf 
> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/.obj/tst_qopenglwindow.build/Debug-iphoneos/tst_qopenglwindow.build
>
> ** CLEAN SUCCEEDED **
>
> Thanks!
> -P
> ,
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest


-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] speeding up "make clean" in qt src on OS X?

2017-04-20 Thread Patrick Stinson
Hello!

Running “make clean” in the root qt src dir calls xcodebuild a whole bunch of 
times and takes a really, really long time. Is there any faster way to do this? 
I am already excluding a lot of unnecessary builds in my configure line:

./configure -static -debug-and-release -nomake examples -xplatform 
macx-ios-clang -sdk iphoneos -nomake tests -skip qt3d -skip qtactiveqt -skip 
qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip 
qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtdocgallery -skip qtenginio 
-skip qtfeedback -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats 
-skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip 
qtpim -skip qtqa -skip qtquick1 -skip qtquickcontrols -skip qtquickcontrols2 
-skip qtrepotools -skip qtscript -skip qtscxml -skip qtserialbus -skip 
qtserialport -skip qtspeech -skip qtsvg -skip qtsystems -skip qttools -skip 
qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip 
qtwebengine -skip qtwebkit -skip qtwebkit-examples -skip qtwebsockets -skip 
qtwebview -skip qtwinextras -skip qtx11extras -developer-build -opensource 
-confirm-license

and it still runs a bunch of xcodebuild calls like this:

rm -f .obj/tst_qpixelformat_plugin_import.o
rm -f *~ core *.core
cd qopenglwindow/ && ( test -e Makefile || 
/Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/bin/qmake -o 
Makefile 
/Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/qopenglwindow.pro
 ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile clean
xcodebuild clean  -project tst_qopenglwindow.xcodeproj -scheme 
tst_qopenglwindow   -configuration Debug  -destination generic/platform=iOS 
-destination-timeout 1 
=== CLEAN AGGREGATE TARGET Qt Preprocess OF PROJECT tst_qopenglwindow WITH 
CONFIGURATION Debug ===

Check dependencies

Clean.Remove clean .obj/tst_qopenglwindow.build/Debug-iphoneos/Qt\ 
Preprocess.build
builtin-rm -rf 
/Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/.obj/tst_qopenglwindow.build/Debug-iphoneos/Qt\
 Preprocess.build

=== CLEAN TARGET tst_qopenglwindow OF PROJECT tst_qopenglwindow WITH 
CONFIGURATION Debug ===

Check dependencies

Create product structure
/bin/mkdir -p 
/Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/Debug-iphoneos/tst_qopenglwindow.app

Clean.Remove clean Debug-iphoneos/tst_qopenglwindow.app
builtin-rm -rf 
/Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/Debug-iphoneos/tst_qopenglwindow.app

Clean.Remove clean 
.obj/tst_qopenglwindow.build/Debug-iphoneos/tst_qopenglwindow.build
builtin-rm -rf 
/Users/patrick/dev/vendor/pyqt-sysroot-ios-64/src/qt5/qtbase/tests/auto/gui/kernel/qopenglwindow/.obj/tst_qopenglwindow.build/Debug-iphoneos/tst_qopenglwindow.build

** CLEAN SUCCEEDED **


Thanks!
-P

smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest