Issue 76713 - Support Vista Platform SDK for .NET 2005
Summary: Support Vista Platform SDK for .NET 2005
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Windows, all
: P3 Trivial (vote)
Target Milestone: OOo 2.3
Assignee: hjs
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 11:50 UTC by oliver.bolte
Modified: 2007-06-21 09:43 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Preliminary patch for config_office (1.14 KB, patch)
2007-05-28 06:07 UTC, quetschke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description oliver.bolte 2007-04-26 11:50:09 UTC
Some changes are needed to build wntmsci11 with the new PSDK.
Comment 1 oliver.bolte 2007-04-26 11:51:23 UTC
already started...
Comment 2 oliver.bolte 2007-05-24 11:53:12 UTC
New environment switches:
WINDOWS_VISTA_PSDK
DISABLE_ATL
DISABLE_ADO
Comment 3 oliver.bolte 2007-05-24 11:54:19 UTC
@ause: verify, please
Comment 4 oliver.bolte 2007-05-24 12:31:35 UTC
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
Comment 5 quetschke 2007-05-24 14:57:23 UTC
@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)
Comment 6 oliver.bolte 2007-05-24 16:02:14 UTC
@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
Comment 7 quetschke 2007-05-28 06:06:10 UTC
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
Comment 8 quetschke 2007-05-28 06:07:38 UTC
Created attachment 45453 [details]
Preliminary patch for config_office
Comment 9 quetschke 2007-05-28 23:36:05 UTC
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 *---
Comment 10 oliver.bolte 2007-05-29 09:00:17 UTC
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.
Comment 11 oliver.bolte 2007-05-29 09:01:43 UTC
p.s. I've used the winres.h from the samples directory.
Comment 12 oliver.bolte 2007-05-30 09:32:30 UTC
setting back to fixed
Comment 13 oliver.bolte 2007-05-31 10:50:54 UTC
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
Comment 14 hjs 2007-05-31 13:28:10 UTC
changes done are fine though not complete...
splitting up the different tasks may have helped...
Comment 15 oliver.bolte 2007-06-21 09:43:29 UTC
closed