On Mon, 2011-08-22 at 02:11 -0600, Tor Lillqvist wrote:
> I build LO on Windows Server 2008R2 (i.e. the server version of Windows
> 7, 64-bit). I have the Windows SDK 7.0 installed in its default
> location(s), i.e. in C:\Program Files\Microsoft SDKs\Windows\v7.0
> *and* C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A , with some
> overlap, partly same files in both locations.
>
> (Yeah, seems a bit weird to me, too, but as far as I can recall it is
> not myself who have done any weird choice here.)
I had difficulties on a fresh install of all the recommended things.
Attached was my hack-around "fix" for the problem I had, which might be
the same fundamental problem.
C.
diff --git a/configure.in b/configure.in
index 536ca8b..fd23669 100755
--- a/configure.in
+++ b/configure.in
@@ -6341,6 +6341,16 @@ if test "$_os" = "WINNT"; then
if test -n "$WINDOWS_SDK_HOME"; then
WINDOWS_SDK_HOME=`cygpath -d "$WINDOWS_SDK_HOME"`
WINDOWS_SDK_HOME=`cygpath -u "$WINDOWS_SDK_HOME"`
+
+ #If this sdk is incomplete, lets see if the one
+ #recommended to be installed is available
+ if test ! -x "$WINDOWS_SDK_HOME/bin/msiinfo.exe"; then
+ WINDOWS_SDK7_HOME=`cat "/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v7.1/InstallationFolder" 2> /dev/null | tr '\000' '\n' | head -n 1`
+ if test -n "$WINDOWS_SDK7_HOME"; then
+ WINDOWS_SDK_HOME=`cygpath -d "$WINDOWS_SDK7_HOME"`
+ WINDOWS_SDK_HOME=`cygpath -u "$WINDOWS_SDK_HOME"`
+ fi
+ fi
fi
else
WINDOWS_SDK_HOME=`cygpath -u "$with_windows_sdk_home"`
@@ -6385,14 +6395,15 @@ the Windows SDK are installed.])
fi
fi
+
if test -z "$WINDOWS_SDK_HOME"; then
AC_MSG_RESULT([no, hoping the necessary headers and libraries will be found anyway])
+ elif echo $WINDOWS_SDK_HOME | grep "v7" >/dev/null 2>/dev/null; then
+ AC_MSG_RESULT([found Windows SDK 7 ($WINDOWS_SDK_HOME)])
elif echo $WINDOWS_SDK_HOME | grep "v6.1" >/dev/null 2>/dev/null; then
AC_MSG_RESULT([found Windows SDK 6.1 ($WINDOWS_SDK_HOME)])
elif echo $WINDOWS_SDK_HOME | grep "v6.0" >/dev/null 2>/dev/null; then
AC_MSG_RESULT([found Windows SDK 6.0 ($WINDOWS_SDK_HOME)])
- elif echo $WINDOWS_SDK_HOME | grep "v7" >/dev/null 2>/dev/null; then
- AC_MSG_RESULT([found Windows SDK 7 ($WINDOWS_SDK_HOME)])
else
AC_MSG_ERROR([Found legacy Windows Platform SDK ($WINDOWS_SDK_HOME)])
fi
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice