openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Hriň <h...@apache.org>
Subject Re: [Build] Modifying oowintool
Date Fri, 29 Aug 2014 15:06:33 GMT
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 "Can't find MS Visual Studio / VC++";
>> }
>> --
>>
>> Any ideas ?
>>
>> Regards,
>> Michal Hriň
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
>> For additional commands, e-mail: dev-help@openoffice.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>

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


Mime
View raw message