Re: build error with trunk on openSUSE

2011-08-24 Thread Stephan Witt
Am 23.08.2011 um 23:10 schrieb Jean-Marc Lasgouttes:

 Le 19/07/11 14:43, Stephan Witt a écrit :
 In case of interest
 
 QT_VERSION=4.10.3 sh -c 'v=0x0; for i in ${QT_VERSION//./ } ; do case $i 
 in 10) v=$v0a ;; 11) v=$v0b ;; 12) v=$v0c ;; 13) v=$v0d ;; 14) 
 v=$v0e ;; 15) v=$v0f ;; *) v=$v0$i ;; esac ; done; echo $v'
 
 prints 0x0040a03
 
 Why not put it in?

The current solution (using bc) is ok - after the dependency is added.
I felt no need to fix it since it's not broken.

 Another solution is to use the printf command.

Good idea.

 Is it portable?

It's present and produces identical output on Solaris 2.5, SuSE-Linux and Mac 
OS X.
I cannot say if it is present on the build service systems out of the box.

Stephan

Re: build error with trunk on openSUSE

2011-08-24 Thread Stephan Witt
Am 23.08.2011 um 23:10 schrieb Jean-Marc Lasgouttes:

> Le 19/07/11 14:43, Stephan Witt a écrit :
>> In case of interest
>> 
>> QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case $i 
>> in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) v=$v"0c" ;; 13) v=$v"0d" ;; 14) 
>> v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'
>> 
>> prints 0x0040a03
> 
> Why not put it in?

The current solution (using bc) is ok - after the dependency is added.
I felt no need to fix it since it's not broken.

> Another solution is to use the "printf" command.

Good idea.

> Is it portable?

It's present and produces identical output on Solaris 2.5, SuSE-Linux and Mac 
OS X.
I cannot say if it is present on the build service systems out of the box.

Stephan

Re: build error with trunk on openSUSE

2011-08-23 Thread Jean-Marc Lasgouttes

Le 19/07/11 14:43, Stephan Witt a écrit :

In case of interest

QT_VERSION=4.10.3 sh -c 'v=0x0; for i in ${QT_VERSION//./ } ; do case $i in 10) v=$v0a ;; 11) v=$v0b ;; 12) 
v=$v0c ;; 13) v=$v0d ;; 14) v=$v0e ;; 15) v=$v0f ;; *) v=$v0$i ;; esac ; done; echo $v'

prints 0x0040a03


Why not put it in? Another solution is to use the printf command. Is 
it portable?


JMarc


Re: build error with trunk on openSUSE

2011-08-23 Thread Jean-Marc Lasgouttes

Le 19/07/11 14:43, Stephan Witt a écrit :

In case of interest

QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case $i in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) 
v=$v"0c" ;; 13) v=$v"0d" ;; 14) v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'

prints 0x0040a03


Why not put it in? Another solution is to use the "printf" command. Is 
it portable?


JMarc


Re: build error with trunk on openSUSE

2011-07-26 Thread Kornel
Am Mittwoch, 20. Juli 2011 schrieb Pavel Sanda:
 Stephan Witt wrote:
  In case of interest
  
  QT_VERSION=4.10.3 sh -c 'v=0x0; for i in ${QT_VERSION//./ } ; do case
  $i in 10) v=$v0a ;; 11) v=$v0b ;; 12) v=$v0c ;; 13) v=$v0d ;;
  14) v=$v0e ;; 15) v=$v0f ;; *) v=$v0$i ;; esac ; done; echo $v'
  
  prints 0x0040a03
 
 how do cmake people solve this in windows? pavel

Cmake has its own arithmetic. In this case see top-level CMakeLists.txt:626
...
# Compute qt4-version from ${QTVERSION}
if(QTVERSION MATCHES ^([0-9]+)\\.([0-9]+)\\.([0-9]+).*)
MATH(EXPR QT4_VERSION 
(${CMAKE_MATCH_1}16)|(${CMAKE_MATCH_2}8)|${CMAKE_MATCH_3})
endif()
...

Kornel



signature.asc
Description: This is a digitally signed message part.


Re: build error with trunk on openSUSE

2011-07-26 Thread Kornel
Am Mittwoch, 20. Juli 2011 schrieb Pavel Sanda:
> Stephan Witt wrote:
> > In case of interest
> > 
> > QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case
> > $i in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) v=$v"0c" ;; 13) v=$v"0d" ;;
> > 14) v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'
> > 
> > prints 0x0040a03
> 
> how do cmake people solve this in windows? pavel

Cmake has its own arithmetic. In this case see top-level CMakeLists.txt:626
...
# Compute qt4-version from ${QTVERSION}
if(QTVERSION MATCHES "^([0-9]+)\\.([0-9]+)\\.([0-9]+).*")
MATH(EXPR QT4_VERSION 
"(${CMAKE_MATCH_1}<<16)|(${CMAKE_MATCH_2}<<8)|${CMAKE_MATCH_3}")
endif()
...

Kornel



signature.asc
Description: This is a digitally signed message part.


Re: build error with trunk on openSUSE

2011-07-20 Thread Stephan Witt
Am 20.07.2011 um 01:09 schrieb Pavel Sanda:

 Stephan Witt wrote:
 In case of interest
 
 QT_VERSION=4.10.3 sh -c 'v=0x0; for i in ${QT_VERSION//./ } ; do case $i 
 in 10) v=$v0a ;; 11) v=$v0b ;; 12) v=$v0c ;; 13) v=$v0d ;; 14) 
 v=$v0e ;; 15) v=$v0f ;; *) v=$v0$i ;; esac ; done; echo $v'
 
 prints 0x0040a03
 
 how do cmake people solve this in windows? pavel

This is not for cmake. It's a possible replacement for the construct with bc in
src/frontends/qt4/Makefile.am

I don't know if add bc as a build requirement is a solution too.

Stephan

Re: build error with trunk on openSUSE

2011-07-20 Thread Enrico Forestieri
On Wed, Jul 20, 2011 at 08:57:46AM +0200, Stephan Witt wrote:
 Am 20.07.2011 um 01:09 schrieb Pavel Sanda:
 
  Stephan Witt wrote:
  In case of interest
  
  QT_VERSION=4.10.3 sh -c 'v=0x0; for i in ${QT_VERSION//./ } ; do case 
  $i in 10) v=$v0a ;; 11) v=$v0b ;; 12) v=$v0c ;; 13) v=$v0d ;; 14) 
  v=$v0e ;; 15) v=$v0f ;; *) v=$v0$i ;; esac ; done; echo $v'
  
  prints 0x0040a03

This code uses bash specific features and fails with a posix shell (try it
with dash, for example). As a matter of fact, it fails on solaris.

  how do cmake people solve this in windows? pavel
 
 This is not for cmake. It's a possible replacement for the construct with bc 
 in
 src/frontends/qt4/Makefile.am
 
 I don't know if add bc as a build requirement is a solution too.

The basic calculator (bc) is part of the Single UNIX specification, so it
is expected to be there, such as one expects that ls is there. So, I don't
know what it means adding bc as a build requirement, as we don't add
tens of other commands as build requirement and simply expect that they
are there.

-- 
Enrico


Re: build error with trunk on openSUSE

2011-07-20 Thread Stephan Witt

Am 20.07.2011 um 10:52 schrieb Enrico Forestieri:

 On Wed, Jul 20, 2011 at 08:57:46AM +0200, Stephan Witt wrote:
 Am 20.07.2011 um 01:09 schrieb Pavel Sanda:
 
 Stephan Witt wrote:
 In case of interest
 
 QT_VERSION=4.10.3 sh -c 'v=0x0; for i in ${QT_VERSION//./ } ; do case 
 $i in 10) v=$v0a ;; 11) v=$v0b ;; 12) v=$v0c ;; 13) v=$v0d ;; 14) 
 v=$v0e ;; 15) v=$v0f ;; *) v=$v0$i ;; esac ; done; echo $v'
 
 prints 0x0040a03
 
 This code uses bash specific features and fails with a posix shell (try it
 with dash, for example). As a matter of fact, it fails on solaris.

Ok. I know the pattern matching substitution is not bourne shell.
The bc replacement is the case part of the solution.

 
 how do cmake people solve this in windows? pavel
 
 This is not for cmake. It's a possible replacement for the construct with bc 
 in
 src/frontends/qt4/Makefile.am
 
 I don't know if add bc as a build requirement is a solution too.
 
 The basic calculator (bc) is part of the Single UNIX specification, so it
 is expected to be there, such as one expects that ls is there. So, I don't
 know what it means adding bc as a build requirement, as we don't add
 tens of other commands as build requirement and simply expect that they
 are there.

Cor wrote it was needed to add on the build system.

I have no problem with the bc based solution.

Stephan

Re: build error with trunk on openSUSE

2011-07-20 Thread Enrico Forestieri
On Wed, Jul 20, 2011 at 07:23:51PM +0200, Stephan Witt wrote:
 
 Am 20.07.2011 um 10:52 schrieb Enrico Forestieri:
 
  On Wed, Jul 20, 2011 at 08:57:46AM +0200, Stephan Witt wrote:
  Am 20.07.2011 um 01:09 schrieb Pavel Sanda:
  
  Stephan Witt wrote:
  In case of interest
  
  QT_VERSION=4.10.3 sh -c 'v=0x0; for i in ${QT_VERSION//./ } ; do 
  case $i in 10) v=$v0a ;; 11) v=$v0b ;; 12) v=$v0c ;; 13) v=$v0d 
  ;; 14) v=$v0e ;; 15) v=$v0f ;; *) v=$v0$i ;; esac ; done; echo $v'
  
  prints 0x0040a03
  
  This code uses bash specific features and fails with a posix shell (try it
  with dash, for example). As a matter of fact, it fails on solaris.
 
 Ok. I know the pattern matching substitution is not bourne shell.
 The bc replacement is the case part of the solution.
 
  
  how do cmake people solve this in windows? pavel
  
  This is not for cmake. It's a possible replacement for the construct with 
  bc in
  src/frontends/qt4/Makefile.am
  
  I don't know if add bc as a build requirement is a solution too.
  
  The basic calculator (bc) is part of the Single UNIX specification, so it
  is expected to be there, such as one expects that ls is there. So, I don't
  know what it means adding bc as a build requirement, as we don't add
  tens of other commands as build requirement and simply expect that they
  are there.
 
 Cor wrote it was needed to add on the build system.
 
 I have no problem with the bc based solution.

I also have no problem with any other portable solution avoiding bc.
Here is a posix compliant version of the above:

QT_VERSION=4.10.3 sh -c 'IFS=.; v=0x; for i in $QT_VERSION; do case $i in 
10) v=$v0a;; 11) v=$v0b;; 12) v=$v0c;; 13) v=$v0d;; 14) v=$v0e;; 15) 
v=$v0f;; *) v=$v0$i;; esac; done; echo $v'

-- 
Enrico


Re: build error with trunk on openSUSE

2011-07-20 Thread Stephan Witt
Am 20.07.2011 um 01:09 schrieb Pavel Sanda:

> Stephan Witt wrote:
>> In case of interest
>> 
>> QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case $i 
>> in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) v=$v"0c" ;; 13) v=$v"0d" ;; 14) 
>> v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'
>> 
>> prints 0x0040a03
> 
> how do cmake people solve this in windows? pavel

This is not for cmake. It's a possible replacement for the construct with bc in
src/frontends/qt4/Makefile.am

I don't know if add bc as a build requirement is a solution too.

Stephan

Re: build error with trunk on openSUSE

2011-07-20 Thread Enrico Forestieri
On Wed, Jul 20, 2011 at 08:57:46AM +0200, Stephan Witt wrote:
> Am 20.07.2011 um 01:09 schrieb Pavel Sanda:
> 
> > Stephan Witt wrote:
> >> In case of interest
> >> 
> >> QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case 
> >> $i in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) v=$v"0c" ;; 13) v=$v"0d" ;; 14) 
> >> v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'
> >> 
> >> prints 0x0040a03

This code uses bash specific features and fails with a posix shell (try it
with dash, for example). As a matter of fact, it fails on solaris.

> > how do cmake people solve this in windows? pavel
> 
> This is not for cmake. It's a possible replacement for the construct with bc 
> in
> src/frontends/qt4/Makefile.am
> 
> I don't know if add bc as a build requirement is a solution too.

The basic calculator (bc) is part of the Single UNIX specification, so it
is expected to be there, such as one expects that ls is there. So, I don't
know what it means "adding bc as a build requirement", as we don't add
tens of other commands as build requirement and simply expect that they
are there.

-- 
Enrico


Re: build error with trunk on openSUSE

2011-07-20 Thread Stephan Witt

Am 20.07.2011 um 10:52 schrieb Enrico Forestieri:

> On Wed, Jul 20, 2011 at 08:57:46AM +0200, Stephan Witt wrote:
>> Am 20.07.2011 um 01:09 schrieb Pavel Sanda:
>> 
>>> Stephan Witt wrote:
 In case of interest
 
 QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case 
 $i in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) v=$v"0c" ;; 13) v=$v"0d" ;; 14) 
 v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'
 
 prints 0x0040a03
> 
> This code uses bash specific features and fails with a posix shell (try it
> with dash, for example). As a matter of fact, it fails on solaris.

Ok. I know the pattern matching substitution is not bourne shell.
The bc replacement is the "case" part of the solution.

> 
>>> how do cmake people solve this in windows? pavel
>> 
>> This is not for cmake. It's a possible replacement for the construct with bc 
>> in
>> src/frontends/qt4/Makefile.am
>> 
>> I don't know if add bc as a build requirement is a solution too.
> 
> The basic calculator (bc) is part of the Single UNIX specification, so it
> is expected to be there, such as one expects that ls is there. So, I don't
> know what it means "adding bc as a build requirement", as we don't add
> tens of other commands as build requirement and simply expect that they
> are there.

Cor wrote it was needed to add on the build system.

I have no problem with the bc based solution.

Stephan

Re: build error with trunk on openSUSE

2011-07-20 Thread Enrico Forestieri
On Wed, Jul 20, 2011 at 07:23:51PM +0200, Stephan Witt wrote:
> 
> Am 20.07.2011 um 10:52 schrieb Enrico Forestieri:
> 
> > On Wed, Jul 20, 2011 at 08:57:46AM +0200, Stephan Witt wrote:
> >> Am 20.07.2011 um 01:09 schrieb Pavel Sanda:
> >> 
> >>> Stephan Witt wrote:
>  In case of interest
>  
>  QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do 
>  case $i in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) v=$v"0c" ;; 13) v=$v"0d" 
>  ;; 14) v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'
>  
>  prints 0x0040a03
> > 
> > This code uses bash specific features and fails with a posix shell (try it
> > with dash, for example). As a matter of fact, it fails on solaris.
> 
> Ok. I know the pattern matching substitution is not bourne shell.
> The bc replacement is the "case" part of the solution.
> 
> > 
> >>> how do cmake people solve this in windows? pavel
> >> 
> >> This is not for cmake. It's a possible replacement for the construct with 
> >> bc in
> >> src/frontends/qt4/Makefile.am
> >> 
> >> I don't know if add bc as a build requirement is a solution too.
> > 
> > The basic calculator (bc) is part of the Single UNIX specification, so it
> > is expected to be there, such as one expects that ls is there. So, I don't
> > know what it means "adding bc as a build requirement", as we don't add
> > tens of other commands as build requirement and simply expect that they
> > are there.
> 
> Cor wrote it was needed to add on the build system.
> 
> I have no problem with the bc based solution.

I also have no problem with any other portable solution avoiding bc.
Here is a posix compliant version of the above:

QT_VERSION="4.10.3" sh -c 'IFS=.; v="0x"; for i in $QT_VERSION; do case $i in 
10) v=$v"0a";; 11) v=$v"0b";; 12) v=$v"0c";; 13) v=$v"0d";; 14) v=$v"0e";; 15) 
v=$v"0f";; *) v=$v"0"$i;; esac; done; echo $v'

-- 
Enrico


Re: build error with trunk on openSUSE

2011-07-19 Thread Cor Blom
Op dinsdag 19 juli 2011 00:06:55 schreef Jean-Marc Lasgouttes:
 Le 18/07/11 23:58, Cor Blom a écrit :
  Adding bc to BuildRequires solved the problem. Thanks for the help.
 
 Interesting, but what does bc stand for?
 

bc: GNU Command Line Calculator

After your last remark I looked again through the log and noticed that the 
shell complained that bc could not be found. This complaint was not there in 
the buildlog for branch, so I added it as a requirement.

On my system (i.e. my desktop system, not the buildservice) bc is installed by 
default and has a manpage.

Cor



Re: build error with trunk on openSUSE

2011-07-19 Thread Pavel Sanda
Cor Blom wrote:
 bc: GNU Command Line Calculator
 
 After your last remark I looked again through the log and noticed that the 
 shell complained that bc could not be found. This complaint was not there 
 in 
 the buildlog for branch, so I added it as a requirement.

please can you paste the relevant part of log? i have hard time to understand 
why we need bc.

pavel


Re: build error with trunk on openSUSE

2011-07-19 Thread Stephan Witt
Am 19.07.2011 um 10:47 schrieb Pavel Sanda:

 Cor Blom wrote:
 bc: GNU Command Line Calculator
 
 After your last remark I looked again through the log and noticed that the 
 shell complained that bc could not be found. This complaint was not there 
 in 
 the buildlog for branch, so I added it as a requirement.
 
 please can you paste the relevant part of log? i have hard time to understand 
 why we need bc.

I think because of the conversion of the Qt version number from e.g. hex 4.6.3 
to decimal value.
Unfortunately, this has to be passed to moc explicitly.
Perhaps this can be solved in some other way...

Stephan

Re: build error with trunk on openSUSE

2011-07-19 Thread Cor Blom
Op dinsdag 19 juli 2011 10:47:50 schreef Pavel Sanda:
 please can you paste the relevant part of log? i have hard time to
 understand why we need bc.

Here it is:

[...]
  GENui_TocUi.h
  GENui_ToggleWarningUi.h
  GENui_VSpaceUi.h
  GENui_ViewSourceUi.h
  GENui_WrapUi.h
/bin/sh: bc: command not found
  GENmoc_Action.cpp
/bin/sh: bc: command not found
  GENmoc_BulletsModule.cpp
/bin/sh: bc: command not found
  GENmoc_CustomizedWidgets.cpp
/bin/sh: bc: command not found
  GENmoc_EmptyTable.cpp
/bin/sh: bc: command not found
  GENmoc_FancyLineEdit.cpp
/bin/sh: bc: command not found
  GENmoc_FindAndReplace.cpp
/bin/sh: bc: command not found
  GENmoc_FloatPlacement.cpp
/bin/sh: bc: command not found
  GENmoc_GuiAbout.cpp
/bin/sh: bc: command not found
  GENmoc_GuiApplication.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBibitem.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBibtex.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBox.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBranches.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBranch.cpp
/bin/sh: bc: command not found
  GENmoc_GuiChanges.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCharacter.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCitation.cpp
/bin/sh: bc: command not found
  GENmoc_GuiClipboard.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCommandBuffer.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCommandEdit.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCompare.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCompareHistory.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCompleter.cpp
/bin/sh: bc: command not found
  GENmoc_GuiDelimiter.cpp
/bin/sh: bc: command not found
  GENmoc_GuiDialog.cpp
/bin/sh: bc: command not found
  GENmoc_GuiDocument.cpp
/bin/sh: bc: command not found
  GENmoc_GuiErrorList.cpp
/bin/sh: bc: command not found
  GENmoc_GuiERT.cpp
/bin/sh: bc: command not found
  GENmoc_GuiExternal.cpp
/bin/sh: bc: command not found
  GENmoc_GuiGraphics.cpp
/bin/sh: bc: command not found
  GENmoc_GuiHSpace.cpp
/bin/sh: bc: command not found
  GENmoc_GuiHyperlink.cpp
/bin/sh: bc: command not found
  GENmoc_GuiInclude.cpp
/bin/sh: bc: command not found
  GENmoc_GuiIndex.cpp
/bin/sh: bc: command not found
  GENmoc_GuiIndices.cpp
/bin/sh: bc: command not found
  GENmoc_GuiInfo.cpp
/bin/sh: bc: command not found
  GENmoc_GuiLabel.cpp
/bin/sh: bc: command not found
  GENmoc_GuiLine.cpp
/bin/sh: bc: command not found
  GENmoc_GuiListings.cpp
/bin/sh: bc: command not found
  GENmoc_GuiLog.cpp
/bin/sh: bc: command not found
  GENmoc_GuiMathMatrix.cpp
/bin/sh: bc: command not found
  GENmoc_GuiNomenclature.cpp
/bin/sh: bc: command not found
  GENmoc_GuiNote.cpp
/bin/sh: bc: command not found
  GENmoc_GuiParagraph.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPhantom.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPrefs.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPrint.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPrintindex.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPrintNomencl.cpp
/bin/sh: bc: command not found
  GENmoc_GuiProgress.cpp
/bin/sh: bc: command not found
  GENmoc_GuiProgressView.cpp
/bin/sh: bc: command not found
  GENmoc_GuiRef.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSearch.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSelection.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSelectionManager.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSendto.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSetBorder.cpp
/bin/sh: bc: command not found
  GENmoc_GuiShowFile.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSpellchecker.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSymbols.cpp
/bin/sh: bc: command not found
  GENmoc_GuiTabularCreate.cpp
/bin/sh: bc: command not found
  GENmoc_GuiTabular.cpp
/bin/sh: bc: command not found
  GENmoc_GuiTexinfo.cpp
/bin/sh: bc: command not found
  GENmoc_GuiThesaurus.cpp
/bin/sh: bc: command not found
  GENmoc_GuiToc.cpp
/bin/sh: bc: command not found
  GENmoc_GuiToolbar.cpp
/bin/sh: bc: command not found
  GENmoc_GuiView.cpp
/bin/sh: bc: command not found
  GENmoc_GuiViewSource.cpp
/bin/sh: bc: command not found
  GENmoc_GuiVSpace.cpp
/bin/sh: bc: command not found
  GENmoc_GuiWorkArea.cpp
/bin/sh: bc: command not found
  GENmoc_GuiWrap.cpp
/bin/sh: bc: command not found
  GENmoc_IconPalette.cpp
/bin/sh: bc: command not found
  GENmoc_InGuiThread.cpp
/bin/sh: bc: command not found
  GENmoc_InsertTableWidget.cpp
/bin/sh: bc: command not found
  GENmoc_InsetParamsDialog.cpp
/bin/sh: bc: command not found
  GENmoc_InsetParamsWidget.cpp
/bin/sh: bc: command not found
  GENmoc_LayoutBox.cpp
/bin/sh: bc: command not found
  GENmoc_LengthCombo.cpp
/bin/sh: bc: command 

Re: build error with trunk on openSUSE

2011-07-19 Thread Stephan Witt
Am 19.07.2011 um 11:05 schrieb Stephan Witt:

 Am 19.07.2011 um 10:47 schrieb Pavel Sanda:
 
 Cor Blom wrote:
 bc: GNU Command Line Calculator
 
 After your last remark I looked again through the log and noticed that the 
 shell complained that bc could not be found. This complaint was not there 
 in 
 the buildlog for branch, so I added it as a requirement.
 
 please can you paste the relevant part of log? i have hard time to 
 understand 
 why we need bc.
 
 I think because of the conversion of the Qt version number from e.g. hex 
 4.6.3 to decimal value.

Vice versa of course.

 Unfortunately, this has to be passed to moc explicitly.
 Perhaps this can be solved in some other way...
 

In case of interest

QT_VERSION=4.10.3 sh -c 'v=0x0; for i in ${QT_VERSION//./ } ; do case $i in 
10) v=$v0a ;; 11) v=$v0b ;; 12) v=$v0c ;; 13) v=$v0d ;; 14) v=$v0e ;; 
15) v=$v0f ;; *) v=$v0$i ;; esac ; done; echo $v'

prints 0x0040a03

Stephan

Re: build error with trunk on openSUSE

2011-07-19 Thread Pavel Sanda
Stephan Witt wrote:
 In case of interest
 
 QT_VERSION=4.10.3 sh -c 'v=0x0; for i in ${QT_VERSION//./ } ; do case $i 
 in 10) v=$v0a ;; 11) v=$v0b ;; 12) v=$v0c ;; 13) v=$v0d ;; 14) 
 v=$v0e ;; 15) v=$v0f ;; *) v=$v0$i ;; esac ; done; echo $v'
 
 prints 0x0040a03

how do cmake people solve this in windows? pavel


Re: build error with trunk on openSUSE

2011-07-19 Thread Cor Blom
Op dinsdag 19 juli 2011 00:06:55 schreef Jean-Marc Lasgouttes:
> Le 18/07/11 23:58, Cor Blom a écrit :
> > Adding bc to BuildRequires solved the problem. Thanks for the help.
> 
> Interesting, but what does bc stand for?
> 

bc: GNU Command Line Calculator

After your last remark I looked again through the log and noticed that the 
shell complained that "bc" could not be found. This complaint was not there in 
the buildlog for branch, so I added it as a requirement.

On my system (i.e. my desktop system, not the buildservice) bc is installed by 
default and has a manpage.

Cor



Re: build error with trunk on openSUSE

2011-07-19 Thread Pavel Sanda
Cor Blom wrote:
> bc: GNU Command Line Calculator
> 
> After your last remark I looked again through the log and noticed that the 
> shell complained that "bc" could not be found. This complaint was not there 
> in 
> the buildlog for branch, so I added it as a requirement.

please can you paste the relevant part of log? i have hard time to understand 
why we need bc.

pavel


Re: build error with trunk on openSUSE

2011-07-19 Thread Stephan Witt
Am 19.07.2011 um 10:47 schrieb Pavel Sanda:

> Cor Blom wrote:
>> bc: GNU Command Line Calculator
>> 
>> After your last remark I looked again through the log and noticed that the 
>> shell complained that "bc" could not be found. This complaint was not there 
>> in 
>> the buildlog for branch, so I added it as a requirement.
> 
> please can you paste the relevant part of log? i have hard time to understand 
> why we need bc.

I think because of the conversion of the Qt version number from e.g. hex 4.6.3 
to decimal value.
Unfortunately, this has to be passed to moc explicitly.
Perhaps this can be solved in some other way...

Stephan

Re: build error with trunk on openSUSE

2011-07-19 Thread Cor Blom
Op dinsdag 19 juli 2011 10:47:50 schreef Pavel Sanda:
> please can you paste the relevant part of log? i have hard time to
> understand why we need bc.

Here it is:

[...]
  GENui_TocUi.h
  GENui_ToggleWarningUi.h
  GENui_VSpaceUi.h
  GENui_ViewSourceUi.h
  GENui_WrapUi.h
/bin/sh: bc: command not found
  GENmoc_Action.cpp
/bin/sh: bc: command not found
  GENmoc_BulletsModule.cpp
/bin/sh: bc: command not found
  GENmoc_CustomizedWidgets.cpp
/bin/sh: bc: command not found
  GENmoc_EmptyTable.cpp
/bin/sh: bc: command not found
  GENmoc_FancyLineEdit.cpp
/bin/sh: bc: command not found
  GENmoc_FindAndReplace.cpp
/bin/sh: bc: command not found
  GENmoc_FloatPlacement.cpp
/bin/sh: bc: command not found
  GENmoc_GuiAbout.cpp
/bin/sh: bc: command not found
  GENmoc_GuiApplication.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBibitem.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBibtex.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBox.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBranches.cpp
/bin/sh: bc: command not found
  GENmoc_GuiBranch.cpp
/bin/sh: bc: command not found
  GENmoc_GuiChanges.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCharacter.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCitation.cpp
/bin/sh: bc: command not found
  GENmoc_GuiClipboard.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCommandBuffer.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCommandEdit.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCompare.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCompareHistory.cpp
/bin/sh: bc: command not found
  GENmoc_GuiCompleter.cpp
/bin/sh: bc: command not found
  GENmoc_GuiDelimiter.cpp
/bin/sh: bc: command not found
  GENmoc_GuiDialog.cpp
/bin/sh: bc: command not found
  GENmoc_GuiDocument.cpp
/bin/sh: bc: command not found
  GENmoc_GuiErrorList.cpp
/bin/sh: bc: command not found
  GENmoc_GuiERT.cpp
/bin/sh: bc: command not found
  GENmoc_GuiExternal.cpp
/bin/sh: bc: command not found
  GENmoc_GuiGraphics.cpp
/bin/sh: bc: command not found
  GENmoc_GuiHSpace.cpp
/bin/sh: bc: command not found
  GENmoc_GuiHyperlink.cpp
/bin/sh: bc: command not found
  GENmoc_GuiInclude.cpp
/bin/sh: bc: command not found
  GENmoc_GuiIndex.cpp
/bin/sh: bc: command not found
  GENmoc_GuiIndices.cpp
/bin/sh: bc: command not found
  GENmoc_GuiInfo.cpp
/bin/sh: bc: command not found
  GENmoc_GuiLabel.cpp
/bin/sh: bc: command not found
  GENmoc_GuiLine.cpp
/bin/sh: bc: command not found
  GENmoc_GuiListings.cpp
/bin/sh: bc: command not found
  GENmoc_GuiLog.cpp
/bin/sh: bc: command not found
  GENmoc_GuiMathMatrix.cpp
/bin/sh: bc: command not found
  GENmoc_GuiNomenclature.cpp
/bin/sh: bc: command not found
  GENmoc_GuiNote.cpp
/bin/sh: bc: command not found
  GENmoc_GuiParagraph.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPhantom.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPrefs.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPrint.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPrintindex.cpp
/bin/sh: bc: command not found
  GENmoc_GuiPrintNomencl.cpp
/bin/sh: bc: command not found
  GENmoc_GuiProgress.cpp
/bin/sh: bc: command not found
  GENmoc_GuiProgressView.cpp
/bin/sh: bc: command not found
  GENmoc_GuiRef.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSearch.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSelection.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSelectionManager.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSendto.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSetBorder.cpp
/bin/sh: bc: command not found
  GENmoc_GuiShowFile.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSpellchecker.cpp
/bin/sh: bc: command not found
  GENmoc_GuiSymbols.cpp
/bin/sh: bc: command not found
  GENmoc_GuiTabularCreate.cpp
/bin/sh: bc: command not found
  GENmoc_GuiTabular.cpp
/bin/sh: bc: command not found
  GENmoc_GuiTexinfo.cpp
/bin/sh: bc: command not found
  GENmoc_GuiThesaurus.cpp
/bin/sh: bc: command not found
  GENmoc_GuiToc.cpp
/bin/sh: bc: command not found
  GENmoc_GuiToolbar.cpp
/bin/sh: bc: command not found
  GENmoc_GuiView.cpp
/bin/sh: bc: command not found
  GENmoc_GuiViewSource.cpp
/bin/sh: bc: command not found
  GENmoc_GuiVSpace.cpp
/bin/sh: bc: command not found
  GENmoc_GuiWorkArea.cpp
/bin/sh: bc: command not found
  GENmoc_GuiWrap.cpp
/bin/sh: bc: command not found
  GENmoc_IconPalette.cpp
/bin/sh: bc: command not found
  GENmoc_InGuiThread.cpp
/bin/sh: bc: command not found
  GENmoc_InsertTableWidget.cpp
/bin/sh: bc: command not found
  GENmoc_InsetParamsDialog.cpp
/bin/sh: bc: command not found
  GENmoc_InsetParamsWidget.cpp
/bin/sh: bc: command not found
  GENmoc_LayoutBox.cpp
/bin/sh: bc: command not found
  GENmoc_LengthCombo.cpp
/bin/sh: bc: command 

Re: build error with trunk on openSUSE

2011-07-19 Thread Stephan Witt
Am 19.07.2011 um 11:05 schrieb Stephan Witt:

> Am 19.07.2011 um 10:47 schrieb Pavel Sanda:
> 
>> Cor Blom wrote:
>>> bc: GNU Command Line Calculator
>>> 
>>> After your last remark I looked again through the log and noticed that the 
>>> shell complained that "bc" could not be found. This complaint was not there 
>>> in 
>>> the buildlog for branch, so I added it as a requirement.
>> 
>> please can you paste the relevant part of log? i have hard time to 
>> understand 
>> why we need bc.
> 
> I think because of the conversion of the Qt version number from e.g. hex 
> 4.6.3 to decimal value.

Vice versa of course.

> Unfortunately, this has to be passed to moc explicitly.
> Perhaps this can be solved in some other way...
> 

In case of interest

QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case $i in 
10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) v=$v"0c" ;; 13) v=$v"0d" ;; 14) v=$v"0e" ;; 
15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'

prints 0x0040a03

Stephan

Re: build error with trunk on openSUSE

2011-07-19 Thread Pavel Sanda
Stephan Witt wrote:
> In case of interest
> 
> QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case $i 
> in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) v=$v"0c" ;; 13) v=$v"0d" ;; 14) 
> v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'
> 
> prints 0x0040a03

how do cmake people solve this in windows? pavel


Re: build error with trunk on openSUSE

2011-07-18 Thread Jean-Marc Lasgouttes

Le 13/07/11 17:22, Cor Blom a écrit :

It happens on all version I build for: 11.3 with qt 4.6.3, 11.4 with 4.7.1 and
factory with 4.7.3

Cor

P.S. you can view all details here:

https://build.opensuse.org/package/show?package=lyx-2.1-
svnproject=home%3Acornelisbb%3Alyx-unstable


There is special casing in frontend/qt4/FancylineEdit.cpp that 
differentiate between old qt versions and recent ones.


This particular error message is known to be among those that happen 
when gcc does not know where to emit the vtable for an object.

http://gcc.gnu.org/faq.html#vtables

I see you have some boost related errors that I do not see. Do you use 
specially pedantic g++ warning options? What version of gcc?


JMarc


Re: build error with trunk on openSUSE

2011-07-18 Thread Cor Blom
Op maandag 18 juli 2011 21:34:05 schreef Jean-Marc Lasgouttes:
 Le 13/07/11 17:22, Cor Blom a écrit :
  It happens on all version I build for: 11.3 with qt 4.6.3, 11.4 with
  4.7.1 and factory with 4.7.3
  
  Cor
  
  P.S. you can view all details here:
  
  https://build.opensuse.org/package/show?package=lyx-2.1-
  svnproject=home%3Acornelisbb%3Alyx-unstable
 
 There is special casing in frontend/qt4/FancylineEdit.cpp that
 differentiate between old qt versions and recent ones.
 
 This particular error message is known to be among those that happen
 when gcc does not know where to emit the vtable for an object.
 http://gcc.gnu.org/faq.html#vtables
 
 I see you have some boost related errors that I do not see. Do you use
 specially pedantic g++ warning options? What version of gcc?
 
 JMarc

Adding bc to BuildRequires solved the problem. Thanks for the help.

Cor




Re: build error with trunk on openSUSE

2011-07-18 Thread Jean-Marc Lasgouttes

Le 18/07/11 23:58, Cor Blom a écrit :

Adding bc to BuildRequires solved the problem. Thanks for the help.


Interesting, but what does bc stand for?

JMarc



Re: build error with trunk on openSUSE

2011-07-18 Thread Jean-Marc Lasgouttes

Le 13/07/11 17:22, Cor Blom a écrit :

It happens on all version I build for: 11.3 with qt 4.6.3, 11.4 with 4.7.1 and
factory with 4.7.3

Cor

P.S. you can view all details here:

https://build.opensuse.org/package/show?package=lyx-2.1-
svn=home%3Acornelisbb%3Alyx-unstable


There is special casing in frontend/qt4/FancylineEdit.cpp that 
differentiate between old qt versions and recent ones.


This particular error message is known to be among those that happen 
when gcc does not know where to emit the vtable for an object.

http://gcc.gnu.org/faq.html#vtables

I see you have some boost related errors that I do not see. Do you use 
specially pedantic g++ warning options? What version of gcc?


JMarc


Re: build error with trunk on openSUSE

2011-07-18 Thread Cor Blom
Op maandag 18 juli 2011 21:34:05 schreef Jean-Marc Lasgouttes:
> Le 13/07/11 17:22, Cor Blom a écrit :
> > It happens on all version I build for: 11.3 with qt 4.6.3, 11.4 with
> > 4.7.1 and factory with 4.7.3
> > 
> > Cor
> > 
> > P.S. you can view all details here:
> > 
> > https://build.opensuse.org/package/show?package=lyx-2.1-
> > svn=home%3Acornelisbb%3Alyx-unstable
> 
> There is special casing in frontend/qt4/FancylineEdit.cpp that
> differentiate between old qt versions and recent ones.
> 
> This particular error message is known to be among those that happen
> when gcc does not know where to emit the vtable for an object.
> http://gcc.gnu.org/faq.html#vtables
> 
> I see you have some boost related errors that I do not see. Do you use
> specially pedantic g++ warning options? What version of gcc?
> 
> JMarc

Adding bc to BuildRequires solved the problem. Thanks for the help.

Cor




Re: build error with trunk on openSUSE

2011-07-18 Thread Jean-Marc Lasgouttes

Le 18/07/11 23:58, Cor Blom a écrit :

Adding bc to BuildRequires solved the problem. Thanks for the help.


Interesting, but what does bc stand for?

JMarc



Re: build error with trunk on openSUSE

2011-07-13 Thread Cor Blom
Op woensdag 6 juli 2011 10:35:24 schreef Cor Blom:
 Hi,
 
 My build from trunk on OBS gives the following error:
 
 [...]
   AR liblyxmathed.a
   AR liblyxinsets.a
   CXXLD  lyx
 frontends/qt4/liblyxqt4.a(FancyLineEdit.o): In function `IconButton':
 /usr/src/packages/BUILD/lyx-2.1-
 svn-2.1.rev39247/src/frontends/qt4/FancyLineEdit.cpp:265: undefined
 reference to `vtable for lyx::frontend::IconButton'
 /usr/src/packages/BUILD/lyx-2.1-
 svn-2.1.rev39247/src/frontends/qt4/FancyLineEdit.cpp:265: undefined
 reference to `vtable for lyx::frontend::IconButton'
 frontends/qt4/liblyxqt4.a(FancyLineEdit.o): In function
 `qobject_castlyx::frontend::IconButton*':
 /usr/include/QtCore/qobject.h:366: undefined reference to
 `lyx::frontend::IconButton::staticMetaObject'
 collect2: ld returned 1 exit status
 make[4]: *** [lyx] Error 1
 make[4]: Leaving directory `/usr/src/packages/BUILD/lyx-2.1-
 svn-2.1.rev39247/src'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory `/usr/src/packages/BUILD/lyx-2.1-
 svn-2.1.rev39247/src'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/usr/src/packages/BUILD/lyx-2.1-
 svn-2.1.rev39247/src'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/usr/src/packages/BUILD/lyx-2.1-svn-2.1.rev39247' make: *** [all] Error 2
 error: Bad exit status from /var/tmp/rpm-tmp.NtQHhb (%build)
 
 Regards,
 
 Cor

As of r39281 I still get the error above. Am I the only one and is this an 
openSUSE problem? Or are others seeing the same? Either case, I need some help 
here, because I don't know how to solve this.

Shall I file a bug report?

Cor



Re: build error with trunk on openSUSE

2011-07-13 Thread Jean-Marc Lasgouttes

Le 13/07/2011 12:27, Cor Blom a écrit :

As of r39281 I still get the error above. Am I the only one and is this an
openSUSE problem? Or are others seeing the same? Either case, I need some help
here, because I don't know how to solve this.

Shall I file a bug report?


What is you qt version? Normally this code is compiled conditionally to 
what qt supports.


JMarc



Re: build error with trunk on openSUSE

2011-07-13 Thread Cor Blom
Op woensdag 13 juli 2011 12:57:25 schreef Jean-Marc Lasgouttes:
 Le 13/07/2011 12:27, Cor Blom a écrit :
  As of r39281 I still get the error above. Am I the only one and is this
  an openSUSE problem? Or are others seeing the same? Either case, I need
  some help here, because I don't know how to solve this.
  
  Shall I file a bug report?
 
 What is you qt version? Normally this code is compiled conditionally to
 what qt supports.
 
 JMarc

It happens on all version I build for: 11.3 with qt 4.6.3, 11.4 with 4.7.1 and 
factory with 4.7.3

Cor

P.S. you can view all details here:

https://build.opensuse.org/package/show?package=lyx-2.1-
svnproject=home%3Acornelisbb%3Alyx-unstable



Re: build error with trunk on openSUSE

2011-07-13 Thread Cor Blom
Op woensdag 6 juli 2011 10:35:24 schreef Cor Blom:
> Hi,
> 
> My build from trunk on OBS gives the following error:
> 
> [...]
>   AR liblyxmathed.a
>   AR liblyxinsets.a
>   CXXLD  lyx
> frontends/qt4/liblyxqt4.a(FancyLineEdit.o): In function `IconButton':
> /usr/src/packages/BUILD/lyx-2.1-
> svn-2.1.rev39247/src/frontends/qt4/FancyLineEdit.cpp:265: undefined
> reference to `vtable for lyx::frontend::IconButton'
> /usr/src/packages/BUILD/lyx-2.1-
> svn-2.1.rev39247/src/frontends/qt4/FancyLineEdit.cpp:265: undefined
> reference to `vtable for lyx::frontend::IconButton'
> frontends/qt4/liblyxqt4.a(FancyLineEdit.o): In function
> `qobject_cast':
> /usr/include/QtCore/qobject.h:366: undefined reference to
> `lyx::frontend::IconButton::staticMetaObject'
> collect2: ld returned 1 exit status
> make[4]: *** [lyx] Error 1
> make[4]: Leaving directory `/usr/src/packages/BUILD/lyx-2.1-
> svn-2.1.rev39247/src'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/src/packages/BUILD/lyx-2.1-
> svn-2.1.rev39247/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/src/packages/BUILD/lyx-2.1-
> svn-2.1.rev39247/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/usr/src/packages/BUILD/lyx-2.1-svn-2.1.rev39247' make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.NtQHhb (%build)
> 
> Regards,
> 
> Cor

As of r39281 I still get the error above. Am I the only one and is this an 
openSUSE problem? Or are others seeing the same? Either case, I need some help 
here, because I don't know how to solve this.

Shall I file a bug report?

Cor



Re: build error with trunk on openSUSE

2011-07-13 Thread Jean-Marc Lasgouttes

Le 13/07/2011 12:27, Cor Blom a écrit :

As of r39281 I still get the error above. Am I the only one and is this an
openSUSE problem? Or are others seeing the same? Either case, I need some help
here, because I don't know how to solve this.

Shall I file a bug report?


What is you qt version? Normally this code is compiled conditionally to 
what qt supports.


JMarc



Re: build error with trunk on openSUSE

2011-07-13 Thread Cor Blom
Op woensdag 13 juli 2011 12:57:25 schreef Jean-Marc Lasgouttes:
> Le 13/07/2011 12:27, Cor Blom a écrit :
> > As of r39281 I still get the error above. Am I the only one and is this
> > an openSUSE problem? Or are others seeing the same? Either case, I need
> > some help here, because I don't know how to solve this.
> > 
> > Shall I file a bug report?
> 
> What is you qt version? Normally this code is compiled conditionally to
> what qt supports.
> 
> JMarc

It happens on all version I build for: 11.3 with qt 4.6.3, 11.4 with 4.7.1 and 
factory with 4.7.3

Cor

P.S. you can view all details here:

https://build.opensuse.org/package/show?package=lyx-2.1-
svn=home%3Acornelisbb%3Alyx-unstable