Re: Re: Re: Windows build warnings

2013-05-28 Thread Hugo Hinterberger
On Mon, 27 May 2013 18:34:55 +0200
Kornel Benko kor...@lyx.org wrote:

 Does it compile (and bind) if you comment the offending line?
   src/tests/CMakeLists.txt:21

Unfortunately I cannot compile branch 'master' of LyX on Windows.

Can anybody tell me what the cmake Release-configuration (and
environment) for Windows is?

SHA-1: a9614f15d244b6eda60b93f971f56b40e838d351

with cmake configuration:

cmake D:/Workspace/LyX-Git  nul ^
 -GVisual Studio 10  nul ^
 -DLYX_CPACK=ON  nul ^
 -DLYX_LOCALVERSIONING=ON  nul ^
 -DLYX_INSTALL=ON  nul ^
 -DLYX_NLS=ON  nul ^
 -DLYX_ASPELL=OFF  nul ^
 -DLYX_ENCHANT=OFF  nul ^
 -DLYX_HUNSPELL=ON  nul ^
 -DLYX_DEVEL_VERSION=OFF  nul ^
 -DLYX_RELEASE=ON  nul ^
 -DLYX_DEBUG=OFF  nul ^
 -DLYX_NO_OPTIMIZE=OFF  nul ^
 -DLYX_PACKAGE_SUFFIX=ON  nul ^
 -DLYX_PCH=OFF  nul ^
 -DLYX_MERGE_FILES=OFF  nul ^
 -DLYX_MERGE_REBUILD=OFF  nul ^
 -DLYX_QUIET=OFF  nul ^
 -DLYX_INSTALL_PREFIX=D:/Workspace/LyX-Git/lyx-20-install  nul ^
 -DLYX_EXTERNAL_LIBINTL=OFF  nul ^
 -DLYX_BUNDLE=OFF  nul ^
 -DLYX_CONSOLE=OFF  nul ^
 -DLYX_VLD=OFF  nul ^
 -DLYX_WALL=OFF  nul ^
 -DLYX_CONFIGURE_CHECKS=ON  nul ^
 -DLYX_DEPENDENCIES_DOWNLOAD=ON  nul ^

I get the follwing error:

Done Building Project D:\Workspace\LyX-Git\lyx-20-build\ALL_BUILD.vcxproj 
(default targets) -- FAILED.

Build FAILED.

D:\Workspace\LyX-Git\lyx-20-build\ALL_BUILD.vcxproj (default target) (1) -
D:\Workspace\LyX-Git\lyx-20-build\src\LyX.vcxproj (default target) (2) -
D:\Workspace\LyX-Git\lyx-20-build\intl\intl.vcxproj (default target) (10) -
(ClCompile target) -
  C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5):
 error MSB6001: Invalid command line switch for CL.exe. The value 
[INSTALLDIR=C:/Program] contains an odd number of double-quote characters. 
Only even numbers of literal double-quote characters are acceptable to command 
line tools. [D:\Workspace\LyX-Git\lyx-20-build\intl\intl.vcxproj]

I noticed, that the LIBINTL_INCLUDE_DIR seems to be configured wrongly
(done automatically by cmake):

D:/Workspace/LyX-Git/lyx-20-build
(base directory of the build)
(LIBINTL_HEADER=D:/Workspace/LyX-Git/lyx-20-build/intl/libintl.h)


When changing -DLYX_EXTERNAL_LIBINTL from OFF to ON

I get the following errors:

support.lib(gettext.obj) : error LNK2005: class std::basic_stringunsigned 
int,struct std::char_traitsunsigned int,class std::allocatorunsigned int  
const __cdecl lyx::_(class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  const ) 
(?_@lyx@@YA?BV?$basic_string@IU?$char_traits@I@std@@V?$allocator@I@2@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z)
 already defined in dummy_functions.obj 
[D:\Workspace\LyX-Git\lyx-20-build\src\tests\check_layout.vcxproj]
D:\Workspace\LyX-Git\lyx-20-build\bin\MinSizeRel\check_layout.exe : fatal error 
LNK1169: one or more multiply defined symbols found 
[D:\Workspace\LyX-Git\lyx-20-build\src\tests\check_layout.vcxproj]

LIBINTL_INCLUDE_DIR seems to be configured correctly - using the files
from the dependencies package.

Kind regards,
Hugo



Re: Re: Re: Re: Windows build warnings

2013-05-28 Thread Kornel Benko
Am Dienstag, 28. Mai 2013 um 12:25:52, schrieb Hugo Hinterberger 
hugo.hinterber...@gmx.net
 On Mon, 27 May 2013 18:34:55 +0200
 Kornel Benko kor...@lyx.org wrote:
 
  Does it compile (and bind) if you comment the offending line?
  src/tests/CMakeLists.txt:21
 
 Unfortunately I cannot compile branch 'master' of LyX on Windows.
 
 Can anybody tell me what the cmake Release-configuration (and
 environment) for Windows is?
 
 SHA-1: a9614f15d244b6eda60b93f971f56b40e838d351
 
 with cmake configuration:
 
 cmake D:/Workspace/LyX-Git  nul ^
  -GVisual Studio 10  nul ^
  -DLYX_CPACK=ON  nul ^
  -DLYX_LOCALVERSIONING=ON  nul ^
  -DLYX_INSTALL=ON  nul ^
  -DLYX_NLS=ON  nul ^
  -DLYX_ASPELL=OFF  nul ^
  -DLYX_ENCHANT=OFF  nul ^
  -DLYX_HUNSPELL=ON  nul ^
  -DLYX_DEVEL_VERSION=OFF  nul ^
  -DLYX_RELEASE=ON  nul ^
  -DLYX_DEBUG=OFF  nul ^
  -DLYX_NO_OPTIMIZE=OFF  nul ^
  -DLYX_PACKAGE_SUFFIX=ON  nul ^
  -DLYX_PCH=OFF  nul ^
  -DLYX_MERGE_FILES=OFF  nul ^
  -DLYX_MERGE_REBUILD=OFF  nul ^
  -DLYX_QUIET=OFF  nul ^
  -DLYX_INSTALL_PREFIX=D:/Workspace/LyX-Git/lyx-20-install  nul ^
  -DLYX_EXTERNAL_LIBINTL=OFF  nul ^
  -DLYX_BUNDLE=OFF  nul ^
  -DLYX_CONSOLE=OFF  nul ^
  -DLYX_VLD=OFF  nul ^
  -DLYX_WALL=OFF  nul ^
  -DLYX_CONFIGURE_CHECKS=ON  nul ^
  -DLYX_DEPENDENCIES_DOWNLOAD=ON  nul ^
 
 I get the follwing error:
 
 Done Building Project D:\Workspace\LyX-Git\lyx-20-build\ALL_BUILD.vcxproj 
 (default targets) -- FAILED.
 
 Build FAILED.
 
 D:\Workspace\LyX-Git\lyx-20-build\ALL_BUILD.vcxproj (default target) (1) -
 D:\Workspace\LyX-Git\lyx-20-build\src\LyX.vcxproj (default target) (2) -
 D:\Workspace\LyX-Git\lyx-20-build\intl\intl.vcxproj (default target) (10) -
 (ClCompile target) -
   C:\Program Files 
 (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5):
   error MSB6001: Invalid command line switch for CL.exe.
   The value [INSTALLDIR=C:/Program] contains an odd number of double-quote 
 characters.
   Only even numbers of literal double-quote characters are acceptable to 
 command line tools.
   [D:\Workspace\LyX-Git\lyx-20-build\intl\intl.vcxproj]

This part is not touched since may 14 2011, so I wonder how you compiled until 
now.
Did you change your cmake? It looks like the double quotes did not make to the 
CL correctly.
(The switch should be something like: -DINSTALLDIR=\C:/Program files ...\)

 I noticed, that the LIBINTL_INCLUDE_DIR seems to be configured wrongly
 (done automatically by cmake):

Not important here IMHO

 D:/Workspace/LyX-Git/lyx-20-build
 (base directory of the build)
 (LIBINTL_HEADER=D:/Workspace/LyX-Git/lyx-20-build/intl/libintl.h)
 
 
 When changing -DLYX_EXTERNAL_LIBINTL from OFF to ON
 
 I get the following errors:
 
 support.lib(gettext.obj) : error LNK2005: class std::basic_stringunsigned 
 int,struct std::char_traitsunsigned int,class std::allocatorunsigned int 
  const __cdecl lyx::_(class std::basic_stringchar,struct 
 std::char_traitschar,class std::allocatorchar  const ) 
 (?_@lyx@@YA?BV?$basic_string@IU?$char_traits@I@std@@V?$allocator@I@2@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z)
  already defined in dummy_functions.obj 
 [D:\Workspace\LyX-Git\lyx-20-build\src\tests\check_layout.vcxproj]
 D:\Workspace\LyX-Git\lyx-20-build\bin\MinSizeRel\check_layout.exe : fatal 
 error LNK1169: one or more multiply defined symbols found 
 [D:\Workspace\LyX-Git\lyx-20-build\src\tests\check_layout.vcxproj]

This is the error, we wanted to omit with the /FORCE:MULTIPLE linker switch.
I wonder, why is it working on other windows platforms ...

 LIBINTL_INCLUDE_DIR seems to be configured correctly - using the files
 from the dependencies package.
 
 Kind regards,
 Hugo

You could disable the check_layout tests.
Edit src/CMakeLists.txt:192
comment the line add_subdirectory(tests)


Kornel

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


Re: Re: Re: Windows build warnings

2013-05-28 Thread Hugo Hinterberger
On Mon, 27 May 2013 18:34:55 +0200
Kornel Benko  wrote:

> Does it compile (and bind) if you comment the offending line?
>   "src/tests/CMakeLists.txt:21"

Unfortunately I cannot compile branch 'master' of LyX on Windows.

Can anybody tell me what "the" cmake Release-configuration (and
environment) for Windows is?

SHA-1: a9614f15d244b6eda60b93f971f56b40e838d351

with cmake configuration:

cmake D:/Workspace/LyX-Git  
"D:\Workspace\LyX-Git\lyx-20-build\src\LyX.vcxproj" (default target) (2) ->
"D:\Workspace\LyX-Git\lyx-20-build\intl\intl.vcxproj" (default target) (10) ->
(ClCompile target) ->
  C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5):
 error MSB6001: Invalid command line switch for "CL.exe". The value 
[INSTALLDIR="C:/Program] contains an odd number of double-quote characters. 
Only even numbers of literal double-quote characters are acceptable to command 
line tools. [D:\Workspace\LyX-Git\lyx-20-build\intl\intl.vcxproj]

I noticed, that the LIBINTL_INCLUDE_DIR seems to be configured wrongly
(done automatically by cmake):

D:/Workspace/LyX-Git/lyx-20-build
(base directory of the build)
(LIBINTL_HEADER=D:/Workspace/LyX-Git/lyx-20-build/intl/libintl.h)


When changing "-DLYX_EXTERNAL_LIBINTL" from "OFF" to "ON"

I get the following errors:

support.lib(gettext.obj) : error LNK2005: "class std::basic_string,class std::allocator > 
const __cdecl lyx::_(class std::basic_string const &)" 
(?_@lyx@@YA?BV?$basic_string@IU?$char_traits@I@std@@V?$allocator@I@2@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z)
 already defined in dummy_functions.obj 
[D:\Workspace\LyX-Git\lyx-20-build\src\tests\check_layout.vcxproj]
D:\Workspace\LyX-Git\lyx-20-build\bin\MinSizeRel\check_layout.exe : fatal error 
LNK1169: one or more multiply defined symbols found 
[D:\Workspace\LyX-Git\lyx-20-build\src\tests\check_layout.vcxproj]

LIBINTL_INCLUDE_DIR seems to be configured correctly - using the files
from the dependencies package.

Kind regards,
Hugo



Re: Re: Re: Re: Windows build warnings

2013-05-28 Thread Kornel Benko
Am Dienstag, 28. Mai 2013 um 12:25:52, schrieb Hugo Hinterberger 

> On Mon, 27 May 2013 18:34:55 +0200
> Kornel Benko  wrote:
> 
> > Does it compile (and bind) if you comment the offending line?
> > "src/tests/CMakeLists.txt:21"
> 
> Unfortunately I cannot compile branch 'master' of LyX on Windows.
> 
> Can anybody tell me what "the" cmake Release-configuration (and
> environment) for Windows is?
> 
> SHA-1: a9614f15d244b6eda60b93f971f56b40e838d351
> 
> with cmake configuration:
> 
> cmake D:/Workspace/LyX-Git-G"Visual Studio 10"-DLYX_CPACK=ON-DLYX_LOCALVERSIONING=ON-DLYX_INSTALL=ON-DLYX_NLS=ON-DLYX_ASPELL=OFF-DLYX_ENCHANT=OFF-DLYX_HUNSPELL=ON-DLYX_DEVEL_VERSION=OFF-DLYX_RELEASE=ON-DLYX_DEBUG=OFF-DLYX_NO_OPTIMIZE=OFF-DLYX_PACKAGE_SUFFIX=ON-DLYX_PCH=OFF-DLYX_MERGE_FILES=OFF-DLYX_MERGE_REBUILD=OFF-DLYX_QUIET=OFF-DLYX_INSTALL_PREFIX=D:/Workspace/LyX-Git/lyx-20-install-DLYX_EXTERNAL_LIBINTL=OFF-DLYX_BUNDLE=OFF-DLYX_CONSOLE=OFF-DLYX_VLD=OFF-DLYX_WALL=OFF-DLYX_CONFIGURE_CHECKS=ON-DLYX_DEPENDENCIES_DOWNLOAD=ON   
> I get the follwing error:
> 
> Done Building Project "D:\Workspace\LyX-Git\lyx-20-build\ALL_BUILD.vcxproj" 
> (default targets) -- FAILED.
> 
> Build FAILED.
> 
> "D:\Workspace\LyX-Git\lyx-20-build\ALL_BUILD.vcxproj" (default target) (1) ->
> "D:\Workspace\LyX-Git\lyx-20-build\src\LyX.vcxproj" (default target) (2) ->
> "D:\Workspace\LyX-Git\lyx-20-build\intl\intl.vcxproj" (default target) (10) ->
> (ClCompile target) ->
>   C:\Program Files 
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5):
>   error MSB6001: Invalid command line switch for "CL.exe".
>   The value [INSTALLDIR="C:/Program] contains an odd number of double-quote 
> characters.
>   Only even numbers of literal double-quote characters are acceptable to 
> command line tools.
>   [D:\Workspace\LyX-Git\lyx-20-build\intl\intl.vcxproj]

This part is not touched since may 14 2011, so I wonder how you compiled until 
now.
Did you change your cmake? It looks like the double quotes did not make to the 
CL correctly.
(The switch should be something like: -DINSTALLDIR=\"C:/Program files ...\")

> I noticed, that the LIBINTL_INCLUDE_DIR seems to be configured wrongly
> (done automatically by cmake):

Not important here IMHO

> D:/Workspace/LyX-Git/lyx-20-build
> (base directory of the build)
> (LIBINTL_HEADER=D:/Workspace/LyX-Git/lyx-20-build/intl/libintl.h)
> 
> 
> When changing "-DLYX_EXTERNAL_LIBINTL" from "OFF" to "ON"
> 
> I get the following errors:
> 
> support.lib(gettext.obj) : error LNK2005: "class std::basic_string int,struct std::char_traits,class std::allocator 
> > const __cdecl lyx::_(class std::basic_string std::char_traits,class std::allocator > const &)" 
> (?_@lyx@@YA?BV?$basic_string@IU?$char_traits@I@std@@V?$allocator@I@2@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z)
>  already defined in dummy_functions.obj 
> [D:\Workspace\LyX-Git\lyx-20-build\src\tests\check_layout.vcxproj]
> D:\Workspace\LyX-Git\lyx-20-build\bin\MinSizeRel\check_layout.exe : fatal 
> error LNK1169: one or more multiply defined symbols found 
> [D:\Workspace\LyX-Git\lyx-20-build\src\tests\check_layout.vcxproj]

This is the error, we wanted to omit with the /FORCE:MULTIPLE linker switch.
I wonder, why is it working on other windows platforms ...

> LIBINTL_INCLUDE_DIR seems to be configured correctly - using the files
> from the dependencies package.
> 
> Kind regards,
> Hugo

You could disable the check_layout tests.
Edit src/CMakeLists.txt:192
comment the line "add_subdirectory(tests)"


Kornel

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


Re: Re: Re: Windows build warnings

2013-05-27 Thread Kornel Benko
Am Montag, 27. Mai 2013 um 18:20:52, schrieb Kornel Benko kor...@lyx.org
 Am Montag, 27. Mai 2013 um 17:18:42, schrieb Hugo Hinterberger 
 hugo.hinterber...@gmx.net
  On Mon, 27 May 2013 10:27:28 +0200
  Kornel Benko kor...@lyx.org wrote:
  
   If you are not testing, you do not need it for lyx.
   
  Hi,
  
  I did not change anything in my setup. I try to build the branch
  'master' of LyX five times a week with no changes to the source.
  I do a fetch and rebase and then I run a clean and build.
  This worked for weeks, maybe months, why did it change now?
  
  Kind regards,
  Hugo
 
 We are trying to add test-cases to the build. Apparently, on some tests, this 
 is not so good
 for windows build.
 

Does it compile (and bind) if you comment the offending line?
src/tests/CMakeLists.txt:21

Kornel

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


Re: Re: Re: Windows build warnings

2013-05-27 Thread Kornel Benko
Am Montag, 27. Mai 2013 um 18:20:52, schrieb Kornel Benko 
> Am Montag, 27. Mai 2013 um 17:18:42, schrieb Hugo Hinterberger 
> 
> > On Mon, 27 May 2013 10:27:28 +0200
> > Kornel Benko  wrote:
> > 
> > > If you are not testing, you do not need it for lyx.
> >  
> > Hi,
> > 
> > I did not change anything in my setup. I try to build the branch
> > 'master' of LyX five times a week with no changes to the source.
> > I do a fetch and rebase and then I run a clean and build.
> > This worked for weeks, maybe months, why did it change now?
> > 
> > Kind regards,
> > Hugo
> 
> We are trying to add test-cases to the build. Apparently, on some tests, this 
> is not so good
> for windows build.
> 

Does it compile (and bind) if you comment the offending line?
"src/tests/CMakeLists.txt:21"

Kornel

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