Thank you for your prompt consideration!
 
 
My OS is Vista64bit, I have VC2010Express ( Version 10.0.30319.1 RTMRel) and 
Windows7.1SDK installed.
"64-bit tools are not available on Visual C++ Express by default."
"To enable 64-bit tools on Visual C++ Express, install the Windows Software 
Development Kit (SDK) in addition to Visual C++ Express."
http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=35aeda01-421d-4ba5-b44b-543dc8c33a20
 
VC++-Directories are now stored in property-pages instead of 
Extras/Options/Projects and Solutionfiles/VC++-Directories
Therefore non of the 64bit-issues with VC2008Express should be a problem with 
VC2010Express
http://blogs.msdn.com/b/vsproject/archive/2009/07/07/vc-directories.aspx
http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/
 
 
1. Issue with VC2008Express: 
VS-Express doesn`t use the desired libraries
Reason:
the configurationtool from the SDK doesn`t work with VS2008 and VSExpress.
Workaround:
edit value "CurrentInstallFolder" in 
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SDKs\Windows\
to resemble path of the desired SDK, 
for example:
  C:\Program Files\Microsoft SDKs\Windows\v6.0A\
  for use of libraries from SDK v6.0A included in VS2008
  C:\Program Files\Microsoft SDKs\Windows\v6.1\ 
  for use of libraries from Windows SDK for Server 2008 v6.1 

2. Issue with VC2008Express: 
VS-Express is 32bit-Application and needs a 32bit-Compiler capable of 
crosscompiling to 64bit-targets
Reason:  
Windows-SDK installs on 64bit-OS the native 64bit-Compiler, which is useless in 
this case
Workaround:  
Replace VCProjectAMD64Platform.dll in $(InstallDir)\VC\vcpackages 
(64Bit-Version 370KB)
by 32bit-version (283KB) from $(InstallDir)\VC\bin\x86_amd64 
In case not found there: 
DLL is also on DVD-immage in \Setup dir in vc_stdx86.cab. Beginns with 
FL_VCProjectAMD64Platform...
 
3. Issue with VC2008Express: 
"Win32" is  the only selectable plattform in Extras/Options/Projects and 
Solutionfiles/VC++-Directories
Reason:  
Windows-SDK installation produces registrykeys corresponding to full version of 
VisualStudio instead of VCExpress
 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual 
Studio\9.0\VC\VC_OBJECTS_PLATFORM_INFO]
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID\{656d8763-2429-11d7-8bf6-00b0d03daa06}
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID\{656d8760-2429-11d7-8bf6-00b0d03daa06}
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID\{656d8763-2429-11d7-8bf6-00b0d03daa06}
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID\{656d875f-2429-11d7-8bf6-00b0d03daa06}
Workaround:
Replace entries above begining with 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\...] 
-on 64bit OS by 
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VCExpress\9.0...]
-on 32bit OS by [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VCExpress\9.0\...]
 
4. Issue with VC2008Express:
Empty list for "x64" in Extras/Options/Projects and 
Solutionfiles/VC++-Directories
Reason: 
Windows_SDK places file AMD64.VCPlatform.config in $(InstallDir)\VC\vcpackages
Workaround: 
Rename file AMD64.VCPlatform.config in AMD64.VCPlatform.Express.config
 
 
Conclusion for VC2010Express:
Regarding the first issue, I found some keys pointing to the Windows7.0ASDK 
included with VC2010Express,
but no keys in my registry resembling HKEY_CURRENT_USER\Software\Microsoft
So just to make sure, I manually changed the values in
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDKs/Windows/CurrentInstallFolder
 
to C:\Program Files\Microsoft SDKs\Windows\v7.1\
and HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDKs/Windows/CurrentVersion 
to 7.1.7600.0.30514
 
Nevertheless, either Cmake or VC2010express keep complaining: " cannot open 
file 'kernel32.lib' "
Best regards, Eddi
 
 
 
 
 
 
 
 

 
> CC: cmake@cmake.org
> From: mike.jack...@bluequartz.net
> To: schnurlibu...@hotmail.com
> Subject: Re: [CMake] x64 possible using Cmake2.8.1 for VC2010Express + 
> Windows7.1SDK ??
> Date: Tue, 1 Jun 2010 12:38:49 -0400
> 
> The only think I know is that getting Visual Studio Express 2008 to do 
> x64 builds involved a whole lot of hacking and such since x64 was not 
> officially supported by VCExpress 2008. Has this changed with VC2010 
> Express? It would seem that the VC 2010 Express does NOT install the 
> 64 bit toolset by default. Maybe have a look through this post:
> 
> <a 
> href="http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/e0ef4613-d90f-4eec-90db-41339ed31367
>  
> ">
> 
> 
> __________________________________________________________
> Mike Jackson www.bluequartz.net
> Principal Software Engineer mike.jack...@bluequartz.net
> BlueQuartz Software Dayton, Ohio
> 
> 
> On Jun 1, 2010, at 12:00 PM, Schnurlinger Burli wrote:
> 
> >
> > Hello,
> >
> > My OS is Vista64bit, I have VC2010Express ( Version 10.0.30319.1 
> > RTMRel) and Windows7.1SDK installed.
> > I have 32bit-Cmake2.8.1 installed and 
> > http://www.cmake.org/files/v2.8/CMakeVS10FindMake.cmake 
> > is in C:\Program Files (x86)\CMake 2.8\share\cmake-2.8\Modules
> > When I configure specifying "Visual Studio 10" as the generator for 
> > this project, Cmake.exe is compiled by VC2010Express without any 
> > problems.
> >
> > (1)
> >
> > Cmake complains when I try configuring 64bit-Cmake2.8.1 specifying 
> > "Visual Studio 10 Win64" as the generator for this project:
> >
> > Check for working C compiler using: Visual Studio 10 Win64
> > Check for working C compiler using: Visual Studio 10 Win64 -- broken
> > CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/ 
> > Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
> > The C compiler "cl" is not able to compile a simple test program.
> > (...)
> > LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
> > (...)
> > Configuring incomplete, errors occurred!
> >
> > (2)
> >
> > Cmake produces a fairly usable .sln-file when I choose “Specify 
> > native compilers” in the beginning of the CMake project generation
> > and let "C++" point to ( I couldn`t find any "devenv.exe" )
> > (a) "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE 
> > \VCExpress.exe"
> > or
> > (b) "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE 
> > \vsdiag_regwcf.exe"
> >
> > After after following instructions from 
> > http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
> > which basically means selecting x64" as plattform in VC2010- 
> > Configurationmanager
> > and optionally following instructions from 
> > http://blogs.msdn.com/b/vcblog/archive/2009/05/20/using-the-windows-7-rc-sdk-in-visual-c-2010-beta-1.aspx
> > which basically means selecting "Windows7.1SDK" as plattformtoolset 
> > in VC2010-Propertymanager
> > VC2010Express complains alot about:
> > LINK : fatal error LNK1181: cannot open input file 'kernel32.lib'
> >
> >
> > What is the right way using Cmake targeting x64 with VC2010Express 
> > and WindowsSDK7.1 ??
> > Best regards, Eddi
> >
> >
> >
> > Ihre E-Mails und mehr für unterwegs. Laden Sie Windows Live Hotmail 
> > kostenlos herunter. Melden Sie sich jetzt 
> > an._______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at 
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at: 
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
> 



Ihre E-Mails und mehr für unterwegs. Laden Sie Windows Live Hotmail kostenlos 
herunter. Melden Sie sich jetzt an.
                                          
_________________________________________________________________
Hotmail: Vertrauenswürdige E-Mails dank dem leistungsstarken SPAM-Schutz von 
Microsoft. 
https://signup.live.com/signup.aspx?id=60969
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to