Re: [Build] Modifying oowintool

2014-08-29 Thread Oliver-Rainer Wittmann

Hi,

On 28.08.2014 12:50, Michal Hriň wrote:

[...]

Hi,

Please, excuse me, that I'm rising this type of questions, maybe I
forgot to write, that I want to compile source with MSVC2013.



Oh, sorry - I missed this point.

Best regards, Oliver.


Anyways thanks for comments, I will help myself.

Best regards,
Michal Hriň


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: [Build] Modifying oowintool

2014-08-29 Thread Oliver-Rainer Wittmann

Hi,

On 27.08.2014 20:52, Michal Hriň wrote:

Hi,

I'm trying to compile OO on Windows, specifically 8.1.

The problem is that Microsoft provides on the top page only Visual
Studio 2013, and 2010. I'm using free Express edition.

Configure stops every time on compiler. When was used 2010 compiler,
configure says that the version is less than required.

So I went forward with 2013.



Did you try to provide the corresponding compiler resources via 
configure options?
I am not using any Visual Studio installation to get the C++ compiler - 
I just installed Microsoft Windows SDK for Windows 7 and .NET Framework 
3.5 SP1.

Thus, I need to use the following configure options:
--with-frame-home=/cygdrive/c/Program Files/Microsoft SDKs/Windows/v7.0
--with-psdk-home=/cygdrive/c/Program Files/Microsoft SDKs/Windows/v7.0
--with-midl-path=/cygdrive/c/Program Files/Microsoft SDKs/Windows/v7.0/bin

Best regards, Oliver.



But now I don't have an idea how to solve the problem,
probably in oowintool script

https://fisheye6.atlassian.com/browse/ooo/main/oowintool?r=1413471

Configure stops an says:

--
checking for bash... /usr/bin/bash
checking ml.exe assembler path... checking for ml.exe... no
found (/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin)

checking for zip... /usr/bin/zip
checking for unzip... /usr/bin/unzip
checking for dbghelp.dll... found and executable
checking for vcredist_x86.exe... found and executable
checking for vcredist_x64.exe... found and executable
Can't find MS Visual Studio / VC++ at ./oowintool line 248.
configure: error: oowintool failed to copy CRT

--

so I opened this script and saw that it didn't recognize my 2013
compiler so I tried to edit it, but it still not works.

I modified script around line 208, where I added :
--
my %msvs_express_2013 = (
 'ver' = '12.0',
 'key' = 'Microsoft/VDExpress/12.0_Config/Setup/VS/ProductDir',
 'dll_path' = 'VC/redist/x86/Microsoft.VC120.CRT',
 'dll_suffix' = '120'
);
my %msvc_express_2013 = (
 'ver' = '12.0',
 'key' = 'Microsoft/VDExpress/12.0_Config/Setup/VC/ProductDir',
 'dll_path' = 'redist/x86/Microsoft.VC120.CRT',
 'dll_suffix' = '120'
);

sub find_msvs()
{
 my @ms_versions = ( \%msvs_express_2013, \%msvs_2008,
\%msvs_express_2008, \%msvs_2005, \%msvs_express_2005,
\%msvs_net_2003_ea, \%msvs_net_2003 );

 for $ver (@ms_versions)
 {
 my $install = reg_get_value (HKEY_CURRENT_USER/Software/ .
$ver-{'key'});
 if (defined $install  $install ne '') {
 $ver-{'product_dir'} = $install;
 return $ver;
 }
 }
 die Can't find MS Visual Studio / VC++;
}

sub find_msvc()
{
 my @ms_versions = ( \%msvc_express_2013, \%msvc_2008,
\%msvc_express_2008, \%msvc_2005, \%msvc_express_2005, \%msvc_net_2003 );

 for $ver (@ms_versions)
 {
 my $install = reg_get_value (HKEY_CURRENT_USER/Software/ .
$ver-{'key'});
 if (defined $install  $install ne '') {
 $ver-{'product_dir'} = $install;
 return $ver;
 }
 }
 die Can't find MS Visual Studio / VC++;
}
--

Any ideas ?

Regards,
Michal Hriň

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: [Build] Modifying oowintool

2014-08-29 Thread Michal Hriň

Hi,

@Regina, thanks for interesting reading.

@Oliver, if you are interested in my messy thoughts, see comments below.

Regards, Michal Hriň.

Dňa 29.08.2014 o 09:22 Oliver-Rainer Wittmann napísal(a):

Hi,

On 27.08.2014 20:52, Michal Hriň wrote:

Hi,

I'm trying to compile OO on Windows, specifically 8.1.

The problem is that Microsoft provides on the top page only Visual
Studio 2013, and 2010. I'm using free Express edition.

Configure stops every time on compiler. When was used 2010 compiler,
configure says that the version is less than required.

So I went forward with 2013.



Did you try to provide the corresponding compiler resources via
configure options?
I am not using any Visual Studio installation to get the C++ compiler -
I just installed Microsoft Windows SDK for Windows 7 and .NET Framework
3.5 SP1.
Thus, I need to use the following configure options:
--with-frame-home=/cygdrive/c/Program Files/Microsoft SDKs/Windows/v7.0
--with-psdk-home=/cygdrive/c/Program Files/Microsoft SDKs/Windows/v7.0
--with-midl-path=/cygdrive/c/Program Files/Microsoft
SDKs/Windows/v7.0/bin

Best regards, Oliver.



Yes,

--with-frame-home=$/cygdrive/c/Program Files (x86)/Microsoft 
SDKs/Windows/v7.1A
--with-psdk-home=$/cygdrive/c/Program Files (x86)/Microsoft 
SDKs/Windows/v7.1A
--with-midl-path=$/cygdrive/c/Program Files (x86)/Microsoft 
SDKs/Windows/v7.1A/bin


SDK for Windows 8.1 doesn't have bundled compiler, so I need to add

--with-cl-home=/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 
12.0/VC


and so. SDK Windows v7.1A is backwards compatible SDK in Win 8.1.

In this time I have bypassed problem with oowintool, I manually copied 
.dlls, for which oowintool was looking. After that I removed code for 
finding Visual Studio. Somethings happens, now I can start building process.


Configure tells something about warnings, but I don't see any on screen.

Configure completed, but
* WARNINGS WERE ISSUED *

Only one I found somewhere between is

cygwin warning:
  MS-DOS style path detected: C:/aoo-4.1.1/main
  Preferred POSIX equivalent is: /cygdrive/c/aoo-4.1.1/main
  CYGWIN environment variable option nodosfilewarning turns off this 
warning.


So I think that there is a problem with cygwin. I need to have executed 
cygwin with superuser rights and now the compilation stops at 
philosophic problem in module soltools


Compiling: soltools/mkdepend/cppsetup.c
c:\aoo-4.1.1\main\soltools\mkdepend\def.h(42) : fatal error C1083: 
Cannot open include file: 'unistd.h': No such file or directory

dmake:  Error code 2, while making '../wntmsci12.pro/obj/cppsetup.obj'

The file is in place if my eyes are working.

Later I would like to try make a build on Windows 7, to see if this is a 
problem of Cygwin or Windows 8.1.


If I create build, then I will try to rewrite scripts for appropriate 
recognition of MSVC2013.





But now I don't have an idea how to solve the problem,
probably in oowintool script

https://fisheye6.atlassian.com/browse/ooo/main/oowintool?r=1413471

Configure stops an says:

--
checking for bash... /usr/bin/bash
checking ml.exe assembler path... checking for ml.exe... no
found (/cygdrive/c/Program Files (x86)/Microsoft Visual Studio
12.0/VC/bin)

checking for zip... /usr/bin/zip
checking for unzip... /usr/bin/unzip
checking for dbghelp.dll... found and executable
checking for vcredist_x86.exe... found and executable
checking for vcredist_x64.exe... found and executable
Can't find MS Visual Studio / VC++ at ./oowintool line 248.
configure: error: oowintool failed to copy CRT

--

so I opened this script and saw that it didn't recognize my 2013
compiler so I tried to edit it, but it still not works.

I modified script around line 208, where I added :
--
my %msvs_express_2013 = (
 'ver' = '12.0',
 'key' = 'Microsoft/VDExpress/12.0_Config/Setup/VS/ProductDir',
 'dll_path' = 'VC/redist/x86/Microsoft.VC120.CRT',
 'dll_suffix' = '120'
);
my %msvc_express_2013 = (
 'ver' = '12.0',
 'key' = 'Microsoft/VDExpress/12.0_Config/Setup/VC/ProductDir',
 'dll_path' = 'redist/x86/Microsoft.VC120.CRT',
 'dll_suffix' = '120'
);

sub find_msvs()
{
 my @ms_versions = ( \%msvs_express_2013, \%msvs_2008,
\%msvs_express_2008, \%msvs_2005, \%msvs_express_2005,
\%msvs_net_2003_ea, \%msvs_net_2003 );

 for $ver (@ms_versions)
 {
 my $install = reg_get_value (HKEY_CURRENT_USER/Software/ .
$ver-{'key'});
 if (defined $install  $install ne '') {
 $ver-{'product_dir'} = $install;
 return $ver;
 }
 }
 die Can't find MS Visual Studio / VC++;
}

sub find_msvc()
{
 my @ms_versions = ( \%msvc_express_2013, \%msvc_2008,
\%msvc_express_2008, \%msvc_2005, \%msvc_express_2005, \%msvc_net_2003 );

 for $ver (@ms_versions)
 {
 my $install = reg_get_value (HKEY_CURRENT_USER/Software/ .
$ver-{'key'});
 if (defined $install  $install ne '') {
 $ver-{'product_dir'} = $install;
 return $ver;
 }
 }
 die 

Re: [Build] Modifying oowintool

2014-08-28 Thread Oliver-Rainer Wittmann

Hi,

On 27.08.2014 20:52, Michal Hriň wrote:

Hi,

I'm trying to compile OO on Windows, specifically 8.1.



for building AOO on Windows you currently need the Visual Studio 2008 
C++ compiler.
On [1] you will find the Windows specific build requirements. The 
Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 brings 
the compiler.


For debugging you can use one of the latest Visual Studio versions, even 
the Express editions.


[1] 
https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows



Best regards, Oliver.



The problem is that Microsoft provides on the top page only Visual
Studio 2013, and 2010. I'm using free Express edition.

Configure stops every time on compiler. When was used 2010 compiler,
configure says that the version is less than required.

So I went forward with 2013.

But now I don't have an idea how to solve the problem,
probably in oowintool script

https://fisheye6.atlassian.com/browse/ooo/main/oowintool?r=1413471

Configure stops an says:

--
checking for bash... /usr/bin/bash
checking ml.exe assembler path... checking for ml.exe... no
found (/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin)

checking for zip... /usr/bin/zip
checking for unzip... /usr/bin/unzip
checking for dbghelp.dll... found and executable
checking for vcredist_x86.exe... found and executable
checking for vcredist_x64.exe... found and executable
Can't find MS Visual Studio / VC++ at ./oowintool line 248.
configure: error: oowintool failed to copy CRT

--

so I opened this script and saw that it didn't recognize my 2013
compiler so I tried to edit it, but it still not works.

I modified script around line 208, where I added :
--
my %msvs_express_2013 = (
 'ver' = '12.0',
 'key' = 'Microsoft/VDExpress/12.0_Config/Setup/VS/ProductDir',
 'dll_path' = 'VC/redist/x86/Microsoft.VC120.CRT',
 'dll_suffix' = '120'
);
my %msvc_express_2013 = (
 'ver' = '12.0',
 'key' = 'Microsoft/VDExpress/12.0_Config/Setup/VC/ProductDir',
 'dll_path' = 'redist/x86/Microsoft.VC120.CRT',
 'dll_suffix' = '120'
);

sub find_msvs()
{
 my @ms_versions = ( \%msvs_express_2013, \%msvs_2008,
\%msvs_express_2008, \%msvs_2005, \%msvs_express_2005,
\%msvs_net_2003_ea, \%msvs_net_2003 );

 for $ver (@ms_versions)
 {
 my $install = reg_get_value (HKEY_CURRENT_USER/Software/ .
$ver-{'key'});
 if (defined $install  $install ne '') {
 $ver-{'product_dir'} = $install;
 return $ver;
 }
 }
 die Can't find MS Visual Studio / VC++;
}

sub find_msvc()
{
 my @ms_versions = ( \%msvc_express_2013, \%msvc_2008,
\%msvc_express_2008, \%msvc_2005, \%msvc_express_2005, \%msvc_net_2003 );

 for $ver (@ms_versions)
 {
 my $install = reg_get_value (HKEY_CURRENT_USER/Software/ .
$ver-{'key'});
 if (defined $install  $install ne '') {
 $ver-{'product_dir'} = $install;
 return $ver;
 }
 }
 die Can't find MS Visual Studio / VC++;
}
--

Any ideas ?

Regards,
Michal Hriň

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: [Build] Modifying oowintool

2014-08-28 Thread Regina Henschel

Hi Michal,

Michal Hriň schrieb:

[...]

Hi,

Please, excuse me, that I'm rising this type of questions, maybe I
forgot to write, that I want to compile source with MSVC2013.


No need for excusing. Your question is valid. But perhaps no one has 
finished such build yet.




Anyways thanks for comments, I will help myself.


LibreOffice can be build with MSVC 2010/13. They choose a way to not use 
oowintool at all. You will find related discussions in their developer 
mailing list. There exist a patch in LibreOffice-Bugzilla, which dates 
from the time before oowintool was killed. Perhaps it contains some 
ideas you can use. (If you will only do it for yourself, there should be 
no license problem.)

https://bugs.freedesktop.org/show_bug.cgi?id=30655

Kind regards
Regina



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



[Build] Modifying oowintool

2014-08-27 Thread Michal Hriň

Hi,

I'm trying to compile OO on Windows, specifically 8.1.

The problem is that Microsoft provides on the top page only Visual 
Studio 2013, and 2010. I'm using free Express edition.


Configure stops every time on compiler. When was used 2010 compiler, 
configure says that the version is less than required.


So I went forward with 2013.

But now I don't have an idea how to solve the problem,
probably in oowintool script

https://fisheye6.atlassian.com/browse/ooo/main/oowintool?r=1413471

Configure stops an says:

--
checking for bash... /usr/bin/bash
checking ml.exe assembler path... checking for ml.exe... no
found (/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin)

checking for zip... /usr/bin/zip
checking for unzip... /usr/bin/unzip
checking for dbghelp.dll... found and executable
checking for vcredist_x86.exe... found and executable
checking for vcredist_x64.exe... found and executable
Can't find MS Visual Studio / VC++ at ./oowintool line 248.
configure: error: oowintool failed to copy CRT

--

so I opened this script and saw that it didn't recognize my 2013 
compiler so I tried to edit it, but it still not works.


I modified script around line 208, where I added :
--
my %msvs_express_2013 = (
'ver' = '12.0',
'key' = 'Microsoft/VDExpress/12.0_Config/Setup/VS/ProductDir',
'dll_path' = 'VC/redist/x86/Microsoft.VC120.CRT',
'dll_suffix' = '120'
);
my %msvc_express_2013 = (
'ver' = '12.0',
'key' = 'Microsoft/VDExpress/12.0_Config/Setup/VC/ProductDir',
'dll_path' = 'redist/x86/Microsoft.VC120.CRT',
'dll_suffix' = '120'
);

sub find_msvs()
{
my @ms_versions = ( \%msvs_express_2013, \%msvs_2008, 
\%msvs_express_2008, \%msvs_2005, \%msvs_express_2005, 
\%msvs_net_2003_ea, \%msvs_net_2003 );


for $ver (@ms_versions)
{
	my $install = reg_get_value (HKEY_CURRENT_USER/Software/ . 
$ver-{'key'});

if (defined $install  $install ne '') {
$ver-{'product_dir'} = $install;
return $ver;
}
}
die Can't find MS Visual Studio / VC++;
}

sub find_msvc()
{
my @ms_versions = ( \%msvc_express_2013, \%msvc_2008, 
\%msvc_express_2008, \%msvc_2005, \%msvc_express_2005, \%msvc_net_2003 );


for $ver (@ms_versions)
{
	my $install = reg_get_value (HKEY_CURRENT_USER/Software/ . 
$ver-{'key'});

if (defined $install  $install ne '') {
$ver-{'product_dir'} = $install;
return $ver;
}
}
die Can't find MS Visual Studio / VC++;
}
--

Any ideas ?

Regards,
Michal Hriň

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: [Build] Modifying oowintool

2014-08-27 Thread Ariel Constenla-Haile
On Wed, Aug 27, 2014 at 08:52:06PM +0200, Michal Hriň wrote:
 Hi,
 
 I'm trying to compile OO on Windows, specifically 8.1.
 
 The problem is that Microsoft provides on the top page only Visual Studio
 2013, and 2010. I'm using free Express edition.

[...]

 Any ideas ?

You must use Visual Studio 2008, search Visual C++ 2008 Express
Edition on the web and you'll find the links, the first link that I get
in the Google search is the web installer
http://download.microsoft.com/download/A/5/4/A54BADB6-9C3F-478D-8657-93B3FC9FE62D/vcsetup.exe

If you want to reproduce the build environment used for the releases,
you can use that Express Edition but you need to install the Windows
Driver SDK in order to get ATL, see
https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows#Build_requirements


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


signature.asc
Description: Digital signature