Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Bogdan Vatra via Development
În ziua de marți, 9 iunie 2020, la 21:31:17 EEST, Thiago Macieira a scris: > On Tuesday, 9 June 2020 01:26:12 PDT Alexandru Croitor wrote: > > > On 9. Jun 2020, at 10:17, Jean-Michaël Celerier > > > wrote: > > > > > > To simplify this step, is there / could there be maybe a > > > -DQT_BUILD_TOOLS

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Lorn Potter
On 9/6/20 11:23 PM, Alexandru Croitor wrote: - WebAssembly completely lost That is true. As I mentioned in my reply to Andre, we tested it at some point, but we don't have current plans to add it to the CI. I would be surprised if it actually built, as emscripten compiler for Qt WebAssemb

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Thiago Macieira
On Tuesday, 9 June 2020 01:26:12 PDT Alexandru Croitor wrote: > > On 9. Jun 2020, at 10:17, Jean-Michaël Celerier > > wrote: > > > > To simplify this step, is there / could there be maybe a > > -DQT_BUILD_TOOLS_ONLY that would just generate... well, moc, uic, rcc and > > a couple other friends re

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Thiago Macieira
On Tuesday, 9 June 2020 05:52:30 PDT Alexandru Croitor wrote: > > I'm using qmake for Qt6 when I'm doing Android work, also for this reason. > > I don't want to build Qt twice just to use a "cool and superior" build > > system. > Unfortunately that workflow will not work anymore. Strictly speaking

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Thiago Macieira
On Tuesday, 9 June 2020 00:27:35 PDT Shawn Rutledge wrote: > FWIW the configuration mechanism seems a bit less friendly so far with all > those -DSHOUTED options like -DFEATURE_developer_build=ON instead of > configure -developer-build. The syntax of CMake was why KDE decided in 2004 not to use CM

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Elvis Stansvik
Den tis 9 juni 2020 kl 16:30 skrev Matthew Woehlke : > > On 09/06/2020 03.55, Joerg Bornemann wrote: > > The description of QT_NO_MAKE_TESTS is: "Should tests be built as part > > of the default 'all' target." Meaning this variable controls whether > > tests are build by default. > > Might I sugges

[Development] Please review 302251

2020-06-09 Thread Matthew Woehlke
Can I get someone to review https://codereview.qt-project.org/c/qt/qtbase/+/302251, please? This fixes https://bugreports.qt.io/browse/QTBUG-80577, which has been an intermittent problem for my users since last year. -- Matthew ___ Development mailin

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Matthew Woehlke
On 09/06/2020 05.05, Alexandru Croitor wrote: On 09/06/2020 04.38, Shawn Rutledge wrote: >> At least json is easier to parse, if we try to write other tooling.> > That's true. But using tooling to forever generate cmake files from json also comes with its downsides (maintenance, inability to ex

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
On 9. Jun 2020, at 16:30, Matthew Woehlke wrote: > > On 09/06/2020 03.55, Joerg Bornemann wrote: >> The description of QT_NO_MAKE_TESTS is: "Should tests be built as part of >> the default 'all' target." Meaning this variable controls whether tests are >> build by default. > > Might I suggest

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Matthew Woehlke
On 09/06/2020 03.27, Shawn Rutledge wrote: FWIW the configuration mechanism seems a bit less friendly so far with all those -DSHOUTED options like -DFEATURE_developer_build=ON instead of configure -developer-build. But there is cmake-gui, which generates checkboxes for all the options after you

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 16:09, Alex Blasche wrote: > > > Again this question was referring to the "build Qt module" with CMake Qt (aka > your Webengine experiment). Not updating the dependencies is not desired at > all. Sorry, I missed that the question was about qmake mixing. You compile qt

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Matthew Woehlke
On 09/06/2020 03.55, Joerg Bornemann wrote: The description of QT_NO_MAKE_TESTS is: "Should tests be built as part of the default 'all' target." Meaning this variable controls whether tests are build by default. Might I suggest a less obtuse name? Something along the lines of QT_TESTS_EXCLUDE

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alex Blasche
> -Original Message- > From: Alexandru Croitor > > Could you share details how this is done? > > Which part? > First we'd have to remove all qmake configs in qt5.git/coin/platform_configs, > leaving just the cmake ones. > Once that's integrated, we can push & stage changes that remove

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 13:56, Alex Blasche wrote: > > > Could you share details how this is done? Which part? First we'd have to remove all qmake configs in qt5.git/coin/platform_configs, leaving just the cmake ones. Once that's integrated, we can push & stage changes that remove .pro files.

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 13:25, Bogdan Vatra via Development > wrote: > > But how can I send a fix to a .pr* file in dev if that file doesn't exists > anymore in dev? In this case should we send the patches directly to 5.15. and > add the "Cherry-pick: dev" thing to the patch message? I think t

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 13:20, Shawn Rutledge wrote: > > >> On 2020 Jun 9, at 11:05, Alexandru Croitor wrote: >> >>> On 9. Jun 2020, at 10:38, Shawn Rutledge wrote: >>> >>> Well that’s a little extra maintenance work then; I agree that configure is >>> nicer, but maybe we can expect the cmak

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 12:07, Bogdan Vatra wrote: > > Hi, > În ziua de marți, 9 iunie 2020, la 11:13:21 EEST, Alexandru Croitor a scris: >>> On 9. Jun 2020, at 07:22, Bogdan Vatra wrote: >>> >>> - is it possible to cross compile Qt in one go (just like we do with >>> qmake)? >> Could you clarif

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 11:36, Edward Welbourne wrote: > > Alexandru Croitor (9 June 2020 10:41) >> I'll acknowledge that the current Qt Creator <-> Build Qt with CMake >> situation is sub-par. > > Is there a P1 ticket open about that ? > Might even warrant P0, given ... I created a bug report

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Marius Kittler
Hi, Am Dienstag, 9. Juni 2020, 12:07:02 CEST schrieb Bogdan Vatra via Development: > I'm using qmake for Qt6 when I'm doing Android work, also for this reason. > I don't want to build Qt twice just to use a "cool and superior" build system. > > Just out of curiosity, can some pretty please remind

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alex Blasche
> -Original Message- > From: Development On Behalf Of > Alexandru Croitor > -> TL;DR here > < > > The CMake Port team wants to switch the main Qt build system to the CMake > one. > > What this means: > > - All Coin

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Bogdan Vatra via Development
În ziua de marți, 9 iunie 2020, la 13:46:48 EEST, Edward Welbourne a scris: > On 6/9/20 7:22 AM, Bogdan Vatra via Development wrote: > >>> - if you'll not support/trash all .pro/.pri files how we'll push > >>> fixes for 5.15 branch ? Because right now we can't push fixes > >>> directly to 5.15. br

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Shawn Rutledge
> On 2020 Jun 9, at 11:05, Alexandru Croitor wrote: > >> On 9. Jun 2020, at 10:38, Shawn Rutledge wrote: >> >> Well that’s a little extra maintenance work then; I agree that configure is >> nicer, but maybe we can expect the cmake way of configuring to generally be >> more up-to-date if that

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Edward Welbourne
On 6/9/20 7:22 AM, Bogdan Vatra via Development wrote: >>> - if you'll not support/trash all .pro/.pri files how we'll push >>> fixes for 5.15 branch ? Because right now we can't push fixes >>> directly to 5.15. branch and all the fixes must go trough dev >>> branch first. În ziua de marți, 9 iun

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Eike Ziller
> On Jun 9, 2020, at 12:07, Eike Ziller wrote: > > > >> On Jun 9, 2020, at 09:59, Andy Nichols wrote: >> >> Hi Alexandru, >> >> I think Brett touches on the biggest blocker for me and that is actually >> related to Qt Creators ability to open and use modules built using cmake. I >> am a

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Bogdan Vatra via Development
În ziua de marți, 9 iunie 2020, la 10:35:33 EEST, Joerg Bornemann a scris: > On 6/9/20 7:22 AM, Bogdan Vatra via Development wrote: > > - is it possible to cross compile Qt in one go (just like we do with > > qmake)? > Assuming you're talking about the multi-ABI Android build you've added > to Qt5.

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Eike Ziller
> On Jun 9, 2020, at 09:59, Andy Nichols wrote: > > Hi Alexandru, > > I think Brett touches on the biggest blocker for me and that is actually > related to Qt Creators ability to open and use modules built using cmake. I > am actually really impressed with state of the CMake support for bui

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Bogdan Vatra via Development
Hi, În ziua de marți, 9 iunie 2020, la 11:13:21 EEST, Alexandru Croitor a scris: > > On 9. Jun 2020, at 07:22, Bogdan Vatra wrote: > > > > - is it possible to cross compile Qt in one go (just like we do with > > qmake)? > Could you clarify what you mean by "in one go"? > > If it's about building

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Tuukka Turunen
Hi, "Putting that aside, how long should we wait then? " is exactly the question we would like to find the answer to __ My own preference is to make the switch to CMake as soon as possible and use effort to improving the CMake port instead of keeping the qmake as a parallel build system for Q

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Edward Welbourne
Alexandru Croitor (9 June 2020 10:41) > I'll acknowledge that the current Qt Creator <-> Build Qt with CMake > situation is sub-par. Is there a P1 ticket open about that ? Might even warrant P0, given ... > We have to bite the bullet at some point. In particular, the "Structure and platform fre

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 10:38, Shawn Rutledge wrote: > > Well that’s a little extra maintenance work then; I agree that configure is > nicer, but maybe we can expect the cmake way of configuring to generally be > more up-to-date if that’s where each change starts. Up-to-date how? Are you sugge

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
Hi Andy, I'll acknowledge that the current Qt Creator <-> Build Qt with CMake situation is sub-par. Though, I believe there is a sketchy config to allow you to use a released Qt Creator to develop Qt. Putting that aside, how long should we wait then? I'm not sure if we can afford to delay t

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Shawn Rutledge
> On 2020 Jun 9, at 10:21, Alexandru Croitor wrote: > >> On 9. Jun 2020, at 09:27, Shawn Rutledge wrote: >> >> FWIW the configuration mechanism seems a bit less friendly so far with all >> those -DSHOUTED options like -DFEATURE_developer_build=ON instead of >> configure -developer-build. Bu

[Development] Using clazy to build Qt and Qt-based projects

2020-06-09 Thread Shawn Rutledge
Since https://codereview.qt-project.org/c/qt/qtbase/+/303079 landed, there are a lot of deprecation warnings. I’ve been using clazy to fix them, as in https://codereview.qt-project.org/c/qt/qtbase/+/303079

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Jean-Michaël Celerier
Opening the root qt5/CMakeLists.txt has worked fine for me to work on e.g. qt3d through QtCreator - did not really notice any performance penalty from opening the whole project (except the initial "configure" step). Kind regards, Jean-Michaël On Tue, Jun 9, 2020 at 10

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 10:17, Jean-Michaël Celerier > wrote: > > To simplify this step, is there / could there be maybe a > -DQT_BUILD_TOOLS_ONLY that would just generate... well, moc, uic, rcc and a > couple other friends required for a cross-build ? I think that should technically be possib

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 09:27, Shawn Rutledge wrote: > > FWIW the configuration mechanism seems a bit less friendly so far with all > those -DSHOUTED options like -DFEATURE_developer_build=ON instead of > configure -developer-build. But there is cmake-gui, which generates > checkboxes for all

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Jean-Michaël Celerier
To simplify this step, is there / could there be maybe a -DQT_BUILD_TOOLS_ONLY that would just generate... well, moc, uic, rcc and a couple other friends required for a cross-build ? Best, Jean-Michaël On Tue, Jun 9, 2020 at 10:14 AM Alexandru Croitor wrote: > > > > On 9. Jun 2020, at 07:22, B

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 07:22, Bogdan Vatra wrote: > > - is it possible to cross compile Qt in one go (just like we do with qmake)? Could you clarify what you mean by "in one go"? If it's about building host tools as part of the cross-compilation, then no. You first have to build a desktop Qt,

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 9. Jun 2020, at 04:32, André Pönitz wrote: > > On Mon, Jun 08, 2020 at 01:43:20PM +, Alexandru Croitor wrote: >> [...] >> The CMake ports are built in Coin with the most important configurations >> (Linux, Windows, macOS, Android, iOS, qemu Linux). > > Is there a list of configuration

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Andy Nichols
Hi Alexandru, I think Brett touches on the biggest blocker for me and that is actually related to Qt Creators ability to open and use modules built using cmake. I am actually really impressed with state of the CMake support for build Qt as it is right now, and wish I could more actively use it

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Kai Köhne
> -Ursprüngliche Nachricht- > Von: Development Im Auftrag von > [...] > To build autotests, -DFEATURE_developer_build=ON will do that right? And > there are also BUILD_TESTING and QT_NO_MAKE_TESTS so what’s the > relationship? It's currently the same as with qt 5: * FEATURE_developer_

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Joerg Bornemann
On 6/9/20 9:27 AM, Shawn Rutledge wrote: FWIW the configuration mechanism seems a bit less friendly so far with all those -DSHOUTED options like -DFEATURE_developer_build=ON instead of configure -developer-build. But there is cmake-gui, which generates checkboxes for all the options after yo

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Alexandru Croitor
> On 8. Jun 2020, at 18:47, Stottlemyer, Brett (B.S.) wrote: > > Hi Alexandru, > > Thanks for the quick reply. > > On 6/8/20, 12:09 PM, "Alexandru Croitor" wrote: > >The current CMake configurations can be found in > qt5.git/coin/platform_configs/qtsvg.yaml (and many other .yaml files

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Ville Voutilainen
On Tue, 9 Jun 2020 at 10:35, Ville Voutilainen wrote: > > On Tue, 9 Jun 2020 at 10:29, Shawn Rutledge wrote: > > > > FWIW the configuration mechanism seems a bit less friendly so far with all > > those -DSHOUTED options like -DFEATURE_developer_build=ON instead of > > configure -developer-build

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Ville Voutilainen
On Tue, 9 Jun 2020 at 10:29, Shawn Rutledge wrote: > > FWIW the configuration mechanism seems a bit less friendly so far with all > those -DSHOUTED options like -DFEATURE_developer_build=ON instead of > configure -developer-build. But there is cmake-gui, which generates > checkboxes for all th

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Joerg Bornemann
On 6/9/20 7:22 AM, Bogdan Vatra via Development wrote: - is it possible to cross compile Qt in one go (just like we do with qmake)? Assuming you're talking about the multi-ABI Android build you've added to Qt5. This is not yet implemented, but certainly possible with the Ninja Multi-Config g

Re: [Development] Switch the main "Qt Build System"

2020-06-09 Thread Shawn Rutledge
FWIW the configuration mechanism seems a bit less friendly so far with all those -DSHOUTED options like -DFEATURE_developer_build=ON instead of configure -developer-build. But there is cmake-gui, which generates checkboxes for all the options after you have run cmake the first time. They are e