compile-time Qt checks

2017-04-20 Thread Scott Kostyshak
Anyone interested in using the tool described here to find bugs in our Qt-related code? https://www.kdab.com/uncovering-32-qt-best-practices-compile-time-clazy/ Scott signature.asc Description: PGP signature

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-26 Thread Kornel Benko
Am Mittwoch, 26. November 2014 um 11:21:06, schrieb Jean-Marc Lasgouttes > Le 25/11/2014 19:39, Kornel Benko a écrit : > > The way it is now in cmake is to recompile every time the date changes. > > a.) Create temporary file lyx_date.tmp > > b.) check if different to lyx_date.h > > b1.) overw

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-26 Thread Jean-Marc Lasgouttes
Le 25/11/2014 19:39, Kornel Benko a écrit : The way it is now in cmake is to recompile every time the date changes. a.) Create temporary file lyx_date.tmp b.) check if different to lyx_date.h b1.) overwrite if yes. Currently we display both date and time in lyx -version. The time has h

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-25 Thread Kornel Benko
Am Dienstag, 25. November 2014 um 19:04:45, schrieb Jean-Marc Lasgouttes > Le 25/11/2014 11:55, Kornel Benko a écrit : > > Am Montag, 24. November 2014 um 22:04:10, schrieb Jean-Marc Lasgouttes > > > >> I have not dont anything like lyx_date.h yet. How do you use it? Is it > >> the build date?

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-25 Thread Jean-Marc Lasgouttes
Le 25/11/2014 11:55, Kornel Benko a écrit : Am Montag, 24. November 2014 um 22:04:10, schrieb Jean-Marc Lasgouttes I have not dont anything like lyx_date.h yet. How do you use it? Is it the build date? It is the build date. Similar to commit_hash. That's what I thought. It is actually the

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-25 Thread Kornel Benko
; Autotools: read git commit hash at compile time > > > > Also do as cmake to avoid full recompilation when the hash changes. > > Kornel, > > I have not dont anything like lyx_date.h yet. How do you use it? Is it > the build date? It is the build date. Similar to

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-24 Thread Jean-Marc Lasgouttes
Le 24/11/2014 22:00, Jean-Marc Lasgouttes a écrit : commit 0b09424017866d0f1d9dfff8cb54cedaf17b99aa Author: Jean-Marc Lasgouttes Date: Mon Nov 24 18:39:18 2014 +0100 Autotools: read git commit hash at compile time Also do as cmake to avoid full recompilation when the hash changes

Re: [LyX/master] CMake: allow compile-time C++ flags to be set

2013-12-02 Thread Scott Kostyshak
On Mon, Dec 2, 2013 at 8:07 AM, Kornel Benko wrote: > BTW, we do not come very far compiling with -Werror. True. But there are not too many of these. And I think the auto_ptr warnings (now errors) only occur with -DLYX_ENABLE_CXX11 There are many more warnings using Clang. It would be nice to

Re: [LyX/master] CMake: allow compile-time C++ flags to be set

2013-12-02 Thread Kornel Benko
ov 30, 2013 at 7:08 PM, Scott Kostyshak > > wrote: > > > > > > > > > > > commit 374cf6a39f321c7843b36aab242e0852b01887b8 > > > > > > Author: Scott Kostyshak > > > > > > Date: Fri Nov 29 21:08:48 2013 -0500 > > > > >

Re: [LyX/master] CMake: allow compile-time C++ flags to be set

2013-12-02 Thread Vincent van Ravesteijn
3b36aab242e0852b01887b8 > > > > Author: Scott Kostyshak > > > > Date: Fri Nov 29 21:08:48 2013 -0500 > > > > > > > > CMake: allow compile-time C++ flags to be set > > > > > > > > For example, one could run CMake as

Re: [LyX/master] CMake: allow compile-time C++ flags to be set

2013-12-02 Thread Kornel Benko
Am Montag, 2. Dezember 2013 um 09:00:30, schrieb Vincent van Ravesteijn > On Sat, Nov 30, 2013 at 7:08 PM, Scott Kostyshak wrote: > > > commit 374cf6a39f321c7843b36aab242e0852b01887b8 > > Author: Scott Kostyshak > > Date: Fri Nov 29 21:08:48 2013 -0500 > > >

Re: [LyX/master] CMake: allow compile-time C++ flags to be set

2013-12-02 Thread Vincent van Ravesteijn
On Sat, Nov 30, 2013 at 7:08 PM, Scott Kostyshak wrote: > commit 374cf6a39f321c7843b36aab242e0852b01887b8 > Author: Scott Kostyshak > Date: Fri Nov 29 21:08:48 2013 -0500 > > CMake: allow compile-time C++ flags to be set > > For example, one could run CMake as f

Re: Compile Time

2010-04-07 Thread José Matos
On Wednesday 07 April 2010 09:42:54 Jean-Marc Lasgouttes wrote: > Yes, it is very common in free software (at least those who get to these > big numbers). > > JMarc I would go far and say that this is the rule. :-) Something like major.minor.bugfix where each mark (major, minor and bugfix) is a

Re: Compile Time

2010-04-07 Thread Jean-Marc Lasgouttes
Jack Desert writes: > Ah, it seems I downloaded 1.9 thinking it was newer than 1.10. (As a > decimal number it looks bigger.) Is it conventional for 1.9 to be > lesser than 1.10? If so, I guess I'll have to get used to it. Yes, it is very common in free software (at least those who get to these b

Re: Compile Time

2010-04-06 Thread Jack Desert
El Tue, 06 Apr 2010 15:15:12 +0200 Jean-Marc Lasgouttes escribió: > Jack Desert writes: > > > Is there a faster way to compile LyX? I'm compiling on a 2.0 GHz / 387 > > MB RAM Compaq Presario, and it takes about 45 minutes. How long should > > it take? > > Final linking is probably the problem.

Re: Compile Time

2010-04-06 Thread Jack Desert
El Tue, 6 Apr 2010 18:46:54 +0200 "Vincent van Ravesteijn - TNW" escribió: > > >> Did you run autogen.sh first? > >> > >> BH > > > >Actually, autogen is throwing an error/warning: > > > >Using automake (GNU automake) 1.9 > >Using autoconf (GNU Autoconf) 2.64 > >Building macros... > >Building con

RE: Compile Time

2010-04-06 Thread Vincent van Ravesteijn - TNW
>> Did you run autogen.sh first? >> >> BH > >Actually, autogen is throwing an error/warning: > >Using automake (GNU automake) 1.9 >Using autoconf (GNU Autoconf) 2.64 >Building macros... >Building config header template... >Building Makefile templates... >configure.ac:29: option `dist-lzma' not re

Re: Compile Time

2010-04-06 Thread Jack Desert
El Tue, 6 Apr 2010 10:11:19 -0400 BH escribió: > On Tue, Apr 6, 2010 at 10:04 AM, Jack Desert wrote: > > El Tue, 06 Apr 2010 15:15:12 +0200 > > Jean-Marc Lasgouttes escribió: > >> Jack Desert writes: > >> > >> > Is there a faster way to compile LyX? I'm compiling on a 2.0 GHz / 387 > >> > MB RA

Re: Compile Time

2010-04-06 Thread Jack Desert
> > > > Sounds good. I'll try that next. > > > > Actually, I downloaded a fresh copy of trunk last night, and it's not > > finding the makefile, so can't even get to that part. > > > >  $ ./configure > >  [snipped a bunch of lines] > >  config.status: error: cannot find input file: `Makefile.in'

Re: Compile Time

2010-04-06 Thread BH
On Tue, Apr 6, 2010 at 10:04 AM, Jack Desert wrote: > El Tue, 06 Apr 2010 15:15:12 +0200 > Jean-Marc Lasgouttes escribió: >> Jack Desert writes: >> >> > Is there a faster way to compile LyX? I'm compiling on a 2.0 GHz / 387 >> > MB RAM Compaq Presario, and it takes about 45 minutes. How long sho

Re: Compile Time

2010-04-06 Thread Jack Desert
El Tue, 06 Apr 2010 15:15:12 +0200 Jean-Marc Lasgouttes escribió: > Jack Desert writes: > > > Is there a faster way to compile LyX? I'm compiling on a 2.0 GHz / 387 > > MB RAM Compaq Presario, and it takes about 45 minutes. How long should > > it take? > > Final linking is probably the problem.

Re: Compile Time

2010-04-06 Thread Jean-Marc Lasgouttes
Jack Desert writes: > Is there a faster way to compile LyX? I'm compiling on a 2.0 GHz / 387 > MB RAM Compaq Presario, and it takes about 45 minutes. How long should > it take? Final linking is probably the problem. Try to compile without debug information (unless you are debugging). That would

RE: Compile Time

2010-04-06 Thread Vincent van Ravesteijn - TNW
>Well, on my Duron 700 with 512 MB, it took several >hours (and finally crashed). I guess the memory is the big problem here. I upgraded my machine from 512 MB to 2 GB and compilation times were severely reduced. Vincent

Re: Compile Time

2010-04-06 Thread Guenter Milde
On 2010-04-06, Jack Desert wrote: > Is there a faster way to compile LyX? I'm compiling on a 2.0 GHz / 387 > MB RAM Compaq Presario, and it takes about 45 minutes. How long should > it take? Well, on my Duron 700 with 512 MB, it took several hours (and finally crashed). You can save memory/time i

Compile Time

2010-04-05 Thread Jack Desert
Is there a faster way to compile LyX? I'm compiling on a 2.0 GHz / 387 MB RAM Compaq Presario, and it takes about 45 minutes. How long should it take? -Jack -- ~~~ Jack Desert --Writer, Entrepeneur Author and Spokesman: www.LetsEATalready.

Re: Compile time results for lyx-1.3.5

2005-03-14 Thread Lars Gullik Bjønnes
"Jose' Matos" <[EMAIL PROTECTED]> writes: | qt gcc4 | real2m48.638s | user7m57.588s | sys 1m30.151s > | xforms gcc4 | real2m0.747s | user5m45.744s | sys 0m59.944s > | qt gcc | real3m5.422s | user9m44.996s | sys 1m33.581s > | xforms gcc | real1m55.644s | user

Re: Compile time results for lyx-1.3.5

2005-03-14 Thread Jose' Matos
On Sunday 13 March 2005 23:11, Lars Gullik Bjønnes wrote: > > Actually I am more intrerested in the differences than in the acutal > numbers. (just to put some ice in your bloodstream) > > Between frontends and compilers. $ uname -a Linux quadOPTERON 2.6.10-1.770_14.rhfc3.atsmp #1 SMP Fri Mar 4 14

Re: Compile time results for lyx-1.3.5

2005-03-13 Thread Lars Gullik Bjønnes
"Jose' Matos" <[EMAIL PROTECTED]> writes: | On Friday 11 March 2005 16:21, Jose' Matos wrote: >> Following tradition I send the compile times of the qt frontend: >> >> $ ./configure --with-frontend=qt ... >> ... >> $ time make -j4 >> ... >> real3m17.863s >> user9m41.812s >> sys 1m34.01

Re: Compile time results for lyx-1.3.5

2005-03-11 Thread Jose' Matos
On Friday 11 March 2005 16:21, Jose' Matos wrote: > Following tradition I send the compile times of the qt frontend: > > $ ./configure --with-frontend=qt ... > ... > $ time make -j4 > ... > real3m17.863s > user9m41.812s > sys 1m34.016s > > Oh, if you want to know this is Fedora Core 3

Compile time results for lyx-1.3.5

2005-03-11 Thread Jose' Matos
Following tradition I send the compile times of the qt frontend: $ ./configure --with-frontend=qt ... ... $ time make -j4 ... real3m17.863s user9m41.812s sys 1m34.016s Oh, if you want to know this is Fedora Core 3 and lyx-1.3.5. ;-) -- José Abílio

Re: compile time - an update

2005-01-08 Thread Andre Poenitz
On Thu, Jan 06, 2005 at 08:35:35PM +0100, Lars Gullik Bjønnes wrote: > With gcc 3.3 as with FC3: > > real15m52.640s > user13m6.642s > sys 2m11.597s > > With gcc 4.0 from gcc cvs: > > real10m21.856s > user8m13.158s > sys 1m47.379s > > debug, stdlib-debug and concept-check

Re: compile time - an update

2005-01-07 Thread Lars Gullik Bjønnes
"Jose' Matos" <[EMAIL PROTECTED]> writes: | On Thursday 06 January 2005 19:35, Lars Gullik Bjønnes wrote: >> With gcc 3.3 as with FC3: > | FC3 comes with gcc 3.4... FC2 then. -- Lgb

Re: compile time - an update

2005-01-07 Thread Jose' Matos
On Thursday 06 January 2005 19:35, Lars Gullik Bjønnes wrote: > With gcc 3.3 as with FC3: FC3 comes with gcc 3.4... -- José Abílio

compile time - an update

2005-01-06 Thread Lars Gullik Bjønnes
With gcc 3.3 as with FC3: real15m52.640s user13m6.642s sys 2m11.597s With gcc 4.0 from gcc cvs: real10m21.856s user8m13.158s sys 1m47.379s debug, stdlib-debug and concept-checking turned off. xforms only -- Lgb

Re: compile time with the iterator-5 patch

2004-01-06 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Alfredo Braunstein <[EMAIL PROTECTED]> writes: > | | Lars Gullik Bjønnes wrote: >> >>> The 10 seconds or the 30k. >>> (or perhaps that is close enough to zero for you to see.) >> | | Let me put my zoom glasses on: ah, that 0.2% and 0.8% ? ;-) >> |

Re: compile time with the iterator-5 patch

2004-01-06 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> The 10 seconds or the 30k. >> (or perhaps that is close enough to zero for you to see.) > | Let me put my zoom glasses on: ah, that 0.2% and 0.8% ? ;-) > | Jokes apart, is it less than trivial to test current cvs wit

Re: compile time with the iterator-5 patch

2004-01-06 Thread Alfredo Braunstein
Lars Gullik BjÃnnes wrote: > The 10 seconds or the 30k. > (or perhaps that is close enough to zero for you to see.) Let me put my zoom glasses on: ah, that 0.2% and 0.8% ? ;-) Jokes apart, is it less than trivial to test current cvs with new boost to see if that is what makes the difference? (I

Re: compile time with the iterator-5 patch

2004-01-06 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> | user10m9.080s >> | sys 0m55.200s >> 3460834 22008 56464 3539306 36016a src/lyx > >> user9m59.590s >> sys 0m53.140s >> 3433908 20252 55644 3509804 358e2c src/lyx > | >> This is with boost

Re: compile time with the iterator-5 patch

2004-01-06 Thread Alfredo Braunstein
Lars Gullik BjÃnnes wrote: > | user10m9.080s > | sys 0m55.200s > 3460834 22008 56464 3539306 36016a src/lyx > user9m59.590s > sys 0m53.140s > 3433908 20252 55644 3509804 358e2c src/lyx > This is with boost 1.30 and gcc 3.4 prerelease > > The Q now is if this is due t

Re: compile time with the iterator-5 patch

2004-01-06 Thread Andre Poenitz
On Tue, Jan 06, 2004 at 12:10:23PM +0100, Lars Gullik Bjønnes wrote: > But I wouldn't say that the difference is huge. Indeed. So I'll stop complaining. Andre'

Re: compile time with the iterator-5 patch

2004-01-06 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Just as a data-point: > | real11m17.221s | user10m9.080s | sys 0m55.200s size src/lyx textdata bss dec hex filename 3460834 22008 56464 3539306 36016a src/lyx | | This is with boost release candidate 1.31.0 a

compile time with the iterator-5 patch

2004-01-06 Thread Lars Gullik Bjønnes
Just as a data-point: real11m17.221s user10m9.080s sys 0m55.200s This is with boost release candidate 1.31.0 and gcc 3.4 prerelease. (just the xforms frontend) I'll do a compile of clean lyx cvs now. -- Lgb

binary size and compile time - gcc

2003-07-20 Thread Lars Gullik Bjønnes
Just to show the difference between compiler versions and to show that gcc is moving in the right direction. Note also that 3.3 and 3.4 are a lot more C++ correct in regard to the C++ standard than 3.2 (but 3.2 is pretty good as well.) version sizels -l compile time

Re: binary size and compile time - gcc

2003-07-20 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | version sizels -l compile time | gcc 3.2.2 3150291 7937950817m6.396s | Note that they are not really equal... 3.3.1 and 3.4 is current CVS | (half a day ago), but 3.2.2 is current CVS + my