Re: [Development] Remember to rebuild qmake in dev

2016-07-22 Thread Thiago Macieira
On sexta-feira, 22 de julho de 2016 09:25:11 PDT Oswald Buddenhagen wrote:
> > To redo the configuration, I have to use:
> > 
> > cmd \ /c $QTSRCDIR/configure -redo
> 
> not sure what the cmd stuff is supposed to be good for, but it's correct
> that you *always* need to run the configure from the source dir (i.e.,
> the .bat file if you're building from git).

sh.exe can't run .bat files. You need to ask cmd to do it for you.

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

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Remember to rebuild qmake in dev

2016-07-22 Thread Oswald Buddenhagen
On Thu, Jul 21, 2016 at 02:54:17PM -0700, Thiago Macieira wrote:
> On quinta-feira, 21 de julho de 2016 20:23:19 PDT Oswald Buddenhagen wrote:
> > On Thu, Jul 21, 2016 at 09:27:58AM -0700, Thiago Macieira wrote:
> > > moc.prf with MSVC now depends on a side feature in qmake to help support
> > > generating the moc_predefs.h file. If you're using MSVC, please remember
> > > to
> > > recompile qmake soon.
> > 
> > a much better recommendation is "run config.status (or configure -redo
> > on windows) *every time* after pulling". this ensures that qmake is
> 
> configure -redo on Windows doesn't work at all on a shadow build:
> 
> On one run:
> Unable to detect the platform from environment. Use -platform command line
> argument or set the QMAKESPEC environment variable and run configure again.
> See the README file for a list of supported operating systems and compilers.
> 
> On another:
> Invalid option "win32-icc" for -platform.
> See the README file for a list of supported operating systems and compilers
> 
> To redo the configuration, I have to use:
> 
> cmd \ /c $QTSRCDIR/configure -redo
> 
not sure what the cmd stuff is supposed to be good for, but it's correct
that you *always* need to run the configure from the source dir (i.e.,
the .bat file if you're building from git).

(which is why i'm actually considering generating a config.status.bat
file on windows.)
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Remember to rebuild qmake in dev

2016-07-22 Thread Kai Koehne


> -Original Message-
> From: Development [mailto:development-bounces+kai.koehne=qt.io@qt-
> project.org] On Behalf Of Thiago Macieira
> Sent: Thursday, July 21, 2016 10:51 PM
> To: development@qt-project.org
> Subject: Re: [Development] Remember to rebuild qmake in dev
> 
> On quinta-feira, 21 de julho de 2016 18:02:51 PDT Mitch Curtis wrote:
> > It's probably worth pointing out what kind of errors we can expect
> > should we forget (so that we can recognise the problem).
> 
> The moc_predefs.h file contains qmake's help output, as opposed to a valid C
> source file. Since that file is consumed by moc itself, you're going to get 
> moc
> parsing errors.

Actually the qmake call already returns with an error code, so what you see is 
just something like

jom: D:\dev\qt\dev\msvc-2015-32\qtbase\src\testlib\Makefile.Debug 
[.moc\debug\moc_predefs.h] Error 2

with no previous error message.

Been there, done that :)

Kai
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Remember to rebuild qmake in dev

2016-07-21 Thread Thiago Macieira
On quinta-feira, 21 de julho de 2016 20:23:19 PDT Oswald Buddenhagen wrote:
> On Thu, Jul 21, 2016 at 09:27:58AM -0700, Thiago Macieira wrote:
> > moc.prf with MSVC now depends on a side feature in qmake to help support
> > generating the moc_predefs.h file. If you're using MSVC, please remember
> > to
> > recompile qmake soon.
> 
> a much better recommendation is "run config.status (or configure -redo
> on windows) *every time* after pulling". this ensures that qmake is

configure -redo on Windows doesn't work at all on a shadow build:

On one run:
Unable to detect the platform from environment. Use -platform command line
argument or set the QMAKESPEC environment variable and run configure again.
See the README file for a list of supported operating systems and compilers.

On another:
Invalid option "win32-icc" for -platform.
See the README file for a list of supported operating systems and compilers

To redo the configuration, I have to use:

cmd \ /c $QTSRCDIR/configure -redo

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

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Remember to rebuild qmake in dev

2016-07-21 Thread Thiago Macieira
On quinta-feira, 21 de julho de 2016 18:02:51 PDT Mitch Curtis wrote:
> It's probably worth pointing out what kind of errors we can expect should we
> forget (so that we can recognise the problem).

The moc_predefs.h file contains qmake's help output, as opposed to a valid C 
source file. Since that file is consumed by moc itself, you're going to get moc 
parsing errors.

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

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Remember to rebuild qmake in dev

2016-07-21 Thread Oswald Buddenhagen
On Thu, Jul 21, 2016 at 09:27:58AM -0700, Thiago Macieira wrote:
> moc.prf with MSVC now depends on a side feature in qmake to help support 
> generating the moc_predefs.h file. If you're using MSVC, please remember to 
> recompile qmake soon.
> 
a much better recommendation is "run config.status (or configure -redo
on windows) *every time* after pulling". this ensures that qmake is
rebuilt, and possible adjustments to the configuration are done.
it takes about half a minute (soon much quicker, as we're about to
finally add chaching), and if nothing actually changes, it won't have
any impact on the subsequent rebuild.

this requirement certainly seems a bit arbitrary, but it's an inevitable
consequence of the qmake bootstrapping.
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Remember to rebuild qmake in dev

2016-07-21 Thread Mitch Curtis
It's probably worth pointing out what kind of errors we can expect should we 
forget (so that we can recognise the problem).


From: Development  on 
behalf of Thiago Macieira 
Sent: Thursday, 21 July 2016 6:27:58 PM
To: development@qt-project.org
Subject: [Development] Remember to rebuild qmake in dev

Hello

moc.prf with MSVC now depends on a side feature in qmake to help support
generating the moc_predefs.h file. If you're using MSVC, please remember to
recompile qmake soon.

This does not affect GCC (any OS) or the Intel compiler (any OS), as both
support the "dump macros" hidden feature. I have tested Clang but I did not
test clang-cl.

If clang-cl does not support compatibility with cl's -Bx argument, please edit
moc.prf line 34 and submit a patch.
--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development