configure fails for lo 6.1.6 - Windows SDK... configure: error: Some (all?) Windows SDK files not found

classic Classic list List threaded Threaded
7 messages Options
Oliver Brinzing Oliver Brinzing
Reply | Threaded
Open this post in threaded view
|

configure fails for lo 6.1.6 - Windows SDK... configure: error: Some (all?) Windows SDK files not found

Hi,

building LO master/6.2.3 works fine.

now i tried to build LO 6.1.6 but failed during configure:

 > checking for Windows SDK... configure: error: Some (all?) Windows SDK files not found,
 > please check if all needed parts of the  Windows SDK are installed.
 > Error running configure at /cygdrive/d/sources/libo-61/autogen.sh line 289.

Do i need to install a different Windows SDK ?

Regards
Oliver

--

$ ./g checkout libreoffice-6-1-6
Checke Dateien aus: 100% (24279/24279), Fertig.
M       icon-themes/elementary/cmd/sc_grafluminance.png
Zu Branch 'libreoffice-6-1-6' gewechselt
Ihr Branch ist auf dem selben Stand wie 'origin/libreoffice-6-1-6'.

/cygdrive/d/sources/libo-61
$ /cygdrive/d/sources/libo-61/autogen.sh   --with-external-tar=/cygdrive/d/sources/lo-61-externalsrc
   --with-junit=/cygdrive/d/sources/junit-4.10.jar
--with-ant-home=/cygdrive/d/sources/apache-ant-1.9.5
--with-jdk-home=/cygdrive/d/Programme/Java/jdk1.8.0x64   --enable-pch --disable-ccache
--enable-debug --enable-64-bit
Running ./configure with '--with-external-tar=/cygdrive/d/sources/lo-61-externalsrc
--with-junit=/cygdrive/d/sources/junit-4.10.jar --with-ant-home=/cygdrive/d/sources/apache-ant-1.9.5
--with-jdk-home=/cygdrive/d/Programme/Java/jdk1.8.0x64 --enable-pch --disable-ccache --enable-debug
--enable-64-bit --srcdir=/cygdrive/d/sources/libo-61 --enable-option-checking=fatal'
********************************************************************
*
*   Running LibreOffice build configuration.
*
********************************************************************

checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking for product name... LibreOfficeDev
checking for package version... 6.1.6.1.0+
checking for product version... 6.1
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for grep... (cached) /usr/bin/grep
checking for GNU Make... C:/cygwin/opt/lo/bin/make
configure: Using a native Win32 GNU Make version.
checking for explicit COMSPEC... found: C:\Windows\system32\cmd.exe
checking for sed... /usr/bin/sed
checking whether to use link-time optimization... no
checking for explicit AFLAGS... no
checking for explicit CFLAGS... no
checking for explicit CXXFLAGS... no
checking for explicit OBJCFLAGS... no
checking for explicit OBJCXXFLAGS... no
checking for explicit LDFLAGS... no
checking whether build target is Release Build... no
checking whether to sign windows build... no
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking for bash... /bin/sh
checking for GNU or BSD tar... tar
checking for tar's option to strip components... --strip-components
checking how to build and package galleries... internal src images for desktop
checking whether to build with Java support... yes
checking whether to treat the installation as read-only... no
checking whether to build a 64-bit LibreOffice... yes
checking Visual C++... found: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\
checking for short pathname of VC product directory... C:/PROGRA~2/MICROS~1/2017/COMMUN~1/VC
checking for UCRT location... found
checking for MSBuild.exe location for: 15.0...
C:/PROGRA~2/MICROS~1/2017/COMMUN~1/VC/../MSBuild/15.0/Bin/amd64
checking cl.exe... found Visual C++ 2017
(C:/PROGRA~2/MICROS~1/2017/COMMUN~1/VC/Tools/MSVC/1416~1.270/bin/HostX64/x64/cl.exe)
checking whether the compiler is actually Clang... no
checking the dependency generation prefix (cl.exe -showIncludes)... "Hinweis: Einlesen der Datei:"
checking whether to build with additional debug utilities... no
checking whether to do a debug build... yes
checking whether to use selective debuginfo... no, for all
checking whether to generate debug information... yes
checking whether to compile with optimization flags... no
checking which package format to use... none
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
checking whether to turn warnings to errors... no
checking whether to have assert() failures abort even without --enable-debug... no
checking whether to enable CUPS support... no
checking whether we want to fetch tarballs... yes, if we use them
checking whether to build help... no
checking whether to include MySpell dictionaries... no
checking whether to use dicts from external paths... no
checking whether to enable pch feature... yes
checking the GNU Make version... C:/cygwin/opt/lo/bin/make 4.2.1
checking whether GNU Make supports the 'file' function... yes
checking for --hash-style gcc linker support... no
checking for perl... /usr/bin/perl
checking the Perl version... Perl 5
checking for required Perl modules... all modules found
checking for Windows SDK... configure: error: Some (all?) Windows SDK files not found, please check
if all needed parts of
the  Windows SDK are installed.
Error running configure at /cygdrive/d/sources/libo-61/autogen.sh line 289.

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
himajin100000 himajin100000
Reply | Threaded
Open this post in threaded view
|

Re: configure fails for lo 6.1.6 - Windows SDK... configure: error: Some (all?) Windows SDK files not found

On 2019/04/21 22:54, Oliver Brinzing wrote:
> or UCRT location... found
> checking for MSBuild.exe location for: 15.0...
 > or UCRT location... found
 > checking for MSBuild.exe location for: 15.0...

Hello, Oliver
https://opengrok.libreoffice.org/xref/core/configure.ac?r=4ea0059b#5414
https://github.com/LibreOffice/core/blob/libreoffice-6-1-6/configure.ac

Which Windows SDK version did you use?
--
himajin100000
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Oliver Brinzing Oliver Brinzing
Reply | Threaded
Open this post in threaded view
|

Re: configure fails for lo 6.1.6 - Windows SDK... configure: error: Some (all?) Windows SDK files not found

Hi,

> Which Windows SDK version did you use?

installed Windows SDKs are:

10.0.17134.0
10.0.17763.0

btw: registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft/Microsoft SDKs\Windows" is not available

Regards
Oliver

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots]
"{B27BC1FC-8474-9E32-73C2-6F7CD58AD1E3}"="Application Verifier x64 External Package x64"
"KitsRoot10"="C:\\Program Files (x86)\\Windows Kits\\10\\"
"AppVerifier64BitAutomationRoot"="C:\\Program Files\\Application Verifier\\"
"{398B9866-66DD-753F-761B-E74A270435CC}"="Windows App Certification Kit Native Components x64"
"{3B588BBE-EB02-D1B2-5CD5-7DB85AD8A3E7}"="Universal CRT Tools x64 x64"
"{90B0B603-7728-F869-3927-73232379BA5B}"="Windows SDK DirectX x64 Remote x64"
"{62CB44B2-8007-DBB2-1CBA-5CB7309EB3C3}"="Application Verifier x64 External Package x64"
"{45885E89-108E-2590-C1D5-D3532C2435F7}"="Windows SDK for Windows Store Apps DirectX x64 Remote x64"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\10.0.17134.0]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\10.0.17134.0\Installed Options]
"OptionId.AvrfExternal"=dword:00000001
"OptionId.UWPCPP"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\10.0.17763.0]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\10.0.17763.0\Installed Options]
"OptionId.AvrfExternal"=dword:00000001
"OptionId.WindowsSoftwareLogoToolkit"=dword:00000001
"OptionId.UWPManaged"=dword:00000001
"OptionId.UWPCPP"=dword:00000001

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
himajin100000 himajin100000
Reply | Threaded
Open this post in threaded view
|

Re: configure fails for lo 6.1.6 - Windows SDK... configure: error: Some (all?) Windows SDK files not found

> btw: registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft/Microsoft
> SDKs\Windows" is not available

Hi,
 > 10.0.17134.0
 > 10.0.17763.0
 >
 > btw: registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft/Microsoft
 > SDKs\Windows" is not available

Did you notice that you have to look into 32bit registry node?

you need to either

1. launch 32 bit registry editor
2. launch 64 bit registry editor and look under WOW6432Node

https://support.microsoft.com/en-ca/help/305097/how-to-view-the-system-registry-by-using-64-bit-versions-of-windows

as the following code indicates(sorry, I forgot to attach line number in
the previous),

https://github.com/LibreOffice/core/blob/libreoffice-6-1-6/configure.ac#L5236
====
if test -n "$regvalue"; then
     winsdkbinsubdir="$regvalue".0
fi

winsdklibsubdir=$regvalue # meaningless overwriting
=====

and if you have 10.0.17763.0, $winsdksubdir will be 10.0.17763 instead
of 10.0.17763.0 when the code returns from find_winsdk_version , I guess.



Regards,
himajin100000
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
himajin100000 himajin100000
Reply | Threaded
Open this post in threaded view
|

Re: configure fails for lo 6.1.6 - Windows SDK... configure: error: Some (all?) Windows SDK files not found

sorry for many typos
> the previous),

the previous e-mail

>as the following code indicates
As the following code indicates

 > winsdkBINsubdir="$regvalue".0
> winsdkLIBsubdir=$regvalue
it wasn't meaningless, I just overlooked the BIN and LIB

 > and if you have 10.0.17763.0, $winsdksubdir will be 10.0.17763

If you have 10.0.17763.0, $winsdklibsubdir will be 10.0.17763
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Oliver Brinzing Oliver Brinzing
Reply | Threaded
Open this post in threaded view
|

Re: configure fails for lo 6.1.6 - Windows SDK... configure: error: Some (all?) Windows SDK files not found

Hi,

i was able to solve the configure problem by patching the lo 6.1.6 "configure.ac":

detect: NET Framework 4.7.2
   line 5156: for ver in 4.7.2 4.7.1 4.7 4.6.2 4.6.1; do
   line 5190: for ver in 4.7.2 4.7.1 4.7 4.6.2 4.6.1 4.6; do

detect Windows SDK 10.0.17763
   line 5251  elif test "$regvalue" = "10.0.17134"; then
   line 5252       winsdklibsubdir="10.0.17134"
   line 5253 elif test "$regvalue" = "10.0.17763"; then
   line 5254       winsdklibsubdir="$regvalue.0"

Regards
Oliver

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Christian Lohmaier-3 Christian Lohmaier-3
Reply | Threaded
Open this post in threaded view
|

Re: configure fails for lo 6.1.6 - Windows SDK... configure: error: Some (all?) Windows SDK files not found

In reply to this post by Oliver Brinzing
Hi *,

On Sun, Apr 21, 2019 at 3:54 PM Oliver Brinzing <[hidden email]> wrote:

>
> building LO master/6.2.3 works fine.
>
> now i tried to build LO 6.1.6 but failed during configure:
>
>  > checking for Windows SDK... configure: error: Some (all?) Windows SDK files not found,
>  > please check if all needed parts of the  Windows SDK are installed.
>  > Error running configure at /cygdrive/d/sources/libo-61/autogen.sh line 289.
>
> Do i need to install a different Windows SDK ?

No, you should not need to install separate SDK, Visual Studio should
come with all files necessary.

Try adding --with-windows-skd=8.1 - that should work fine.

ciao
Christian
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice