Apache OpenOffice (AOO) Bugzilla – Issue 76713
Support Vista Platform SDK for .NET 2005
Last modified: 2007-06-21 09:43:29 UTC
Some changes are needed to build wntmsci11 with the new PSDK.
already started...
New environment switches: WINDOWS_VISTA_PSDK DISABLE_ATL DISABLE_ADO
@ause: verify, please
Hi Volker, some changes in config_office are needed to build OOo with Windows Vista SDK. I havn't the knowledge to do this. May be you are interested in this and have some time? :-) Oliver
@obo: Time is relative .. ;) But if you tell me the cws name I'll have a look at the changes over the weekend. (I hope I don't need Vista for this, only the latest PSDK)
@vq: Thank you very much. The cws name is obo12. I've used XP and the Vista PSDK of 22. March 2007, you don't need Vista :-). The compiler (Professional Edition) is included in the SDK. But ATL stuff and some headers are missing... (ActiveX control, OLE and ADO doesn't work) http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=508254&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=861876&SiteID=1
Hi Oliver, the following patch is used in my current tinderbox build of obo12. It still doesn't set WINDOWS_VISTA_PSDK DISABLE_ATL DISABLE_ADO but massages configure a little bit to accept the new Windows SDK. For the VS Express version we introduced DISABLE_ACTIVEX. Is this also needed or was it replaced by DISABLE_ATL / DISABLE_ADO ? You still need to use the following (or equivalent) configure switches to force its use: --with-midl-path="/cygdrive/c/PROGRA~1/MI2578~1/Windows/v6.0/bin" --with-cl-home="/cygdrive/c/PROGRA~1/MI2578~1/Windows/v6.0/VC" # Note this must be the Framework 2.0 csc.exe --with-csc-path="/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v2.0.50727" --with-psdk-home="/cygdrive/c/PROGRA~1/MI2578~1/Windows/v6.0" The build will fail, lets wait to see where ;) P.S.: /cygdrive/c/PROGRA~1/MI2578~1 is /cygdrive/c/Program Files/Microsoft SDKs
Created attachment 45453 [details] Preliminary patch for config_office
First, before I forget it, we might also need to set PROF_EDITION even though it's not used to set {ATL,MFC}_{LIB,INCLUDE} in wntmsci11.mk as they are set in winenv.set. (We might think about this) But I'm jumping ahead, the build fails in shell/source/win32/shlxthandler/res because it cannot find winres.h (logfile at the end). True, the -I/cygdrive/c/PROGRA~1/MI2578~1/Windows/v6.0/include/mfc directory doesn't exist (that's $PSDK_HOME/include/mfc) anymore in the Windows SDK. Even worse, there is no winres.h at all (except in the Samples/ directory) in the Windows SDK. (And also not in the VS Express edition.) You probably didn't see this problem because the Sun environment seems to have an additional PlatformSDK directory in your environment. The following snippet from wntmsci11.mk cannot work here because that directory doesn't exist. (That snippet wouldn't be used because OOo sets these variables already in winenv.set and the *= assignment is not used, but anyways.) .IF "$(PROF_EDITION)" == "" ATL_INCLUDE*=$(COMPATH)$/PlatformSDK$/include$/atl ATL_LIB*=$(COMPATH)$/atlmfc$/lib MFC_INCLUDE*=$(COMPATH)$/PlatformSDK$/include$/mfc MFC_LIB*=$(COMPATH)$/atlmfc$/lib .ELSE Currently it looks like the Windows SDK either needs the full VS or an old Platform SDK. -- errorlog -- guw.exe ../../../../wntmsci11.pro/bin/lngconvex.exe -ulf ../../../../wntmsci11.pro/misc/shlxthdl/shlxthdl.ulf -rc ../../../../wntmsci11.pro/res/shlxthdl.rc -rct rctmpl.txt -rch rcheader.txt -rcf rcfooter.txt ------------------------------ Making: ../../../../wntmsci11.pro/res/shlxthdl.res guw.exe rc -I. -I../../../../wntmsci11.pro/inc/shlxthdl -I/cygdrive/c/PROGRA~1/MI2578~1/Windows/v6.0/include/mfc -I../inc -I../../../../inc/pch -I../../../../inc/shell -I../../../../inc -I../../../../WIN/inc -I../../../../wntmsci11.pro/inc -I. -I/cygdrive/d/w1/tin_obo12/solver/680/wntmsci11.pro/inc/stl -I/cygdrive/d/w1/tin_obo12/solver/680/wntmsci11.pro/inc/external -I/cygdrive/d/w1/tin_obo12/solver/680/wntmsci11.pro/inc -I/cygdrive/d/w1/tin_obo12/solenv/wntmsci11/inc -I/cygdrive/d/w1/tin_obo12/solenv/inc -I/cygdrive/d/w1/tin_obo12/res -I/cygdrive/d/w1/tin_obo12/solver/680/wntmsci11.pro/inc/stl -I/cygdrive/c/J2SDK1~1.2_1/include/win32 -I/cygdrive/c/J2SDK1~1.2_1/include -I/cygdrive/c/PROGRA~1/MI2578~1/Windows/v6.0/include -I/cygdrive/c/PROGRA~1/MI2578~1/Windows/v6.0/VC/include -I/cygdrive/c/PROGRA~1/MICROS~4/include -I/cygdrive/c/PROGRA~1/MICROS~4/include -I/cygdrive/d/w1/tin_obo12/solver/680/wntmsci11.pro/inc/offuh -I. -I../../../../res -I. -I/cygdrive/d/w1/tin_obo12/solver/680/wntmsci11.pro/res -I/cygdrive/c/PROGRA~1/MI2578~1/Windows/v6.0/include/atl -I/cygdrive/c/PROGRA~1/MI2578~1/Windows/v6.0/include/mfc -r -DWIN32 -fo../../../../wntmsci11.pro/res/shlxthdl.res ../../../../wntmsci11.pro/res/shlxthdl.rc Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0 Copyright (C) Microsoft Corporation. All rights reserved. ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(1) : fatal error RC1015: cannot open include file 'winres.h'. dmake: Error code 1, while making '../../../../wntmsci11.pro/res/shlxthdl.res' ---* tg_merge.mk *---
The workaround for winres.h which I've used, was to copy this header into the normal include path and forgotten to tell you, sorry :-(. Perhaps is a notice in the build requirements/guidance a possible way. I havn't changed the DISABLE_ACTIVEX switch, so currently its necessary to set it too. May be its helpful to add the DISABLE_ATL switch to this stuff.
p.s. I've used the winres.h from the samples directory.
setting back to fixed
Hi Volker, I've opened issue #i77980# for follow up fixes and copied your attachement to the new issue. Its urgent to get the obo12 stuff on the master for Vista Readyness development. I'm very sorry about that :-( Oliver
changes done are fine though not complete... splitting up the different tasks may have helped...
closed