INSTRUCTIONS FOR SETTING UP VISUAL C++ EXPRESS 2008 TO COMPILE 64

Visual C++ Express 2008 will not build 64-bit targets out of the box. However, this capability can be added by installing the Windows SDK & making some registry edits. Follow the instructions below to vì chưng this. lưu ý that if you have sầu the full rather than express version of Visual C++, this should not be necessary.

Bạn đang xem: Instructions for setting up visual c++ express 2008 to compile 64

These instructions have sầu been adapted from the following sources:

https://kinhdientamquoc.vn.com/enGits/engrid/wiki/Configure-Microsoft-Visual-Studio-2008-Express-to-also-build-for-Windows-x64

http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Windows/Visual_C%2B%2B_2008_Express


Get và install the Windows SDK¶

Download the appropriate SDK for your version of Windows. You need version 3.5, later versions will not work with VS2008. The current Windows 7 release can be found here: Microsoft Windows SDK for Windows 7 & .NET Framework 3.5 SP1.

When installing the SDK, you need to select “Windows Headers and Libraries”, “Visual C++ Compilers” and “Windows Development Tools”. The other items are optional, you may not want to install the documentation as it will take up a lot of space & might take a long time lớn download due lớn its large kích cỡ.

It appears that on 32-bit Windows, the SDK installer may not install the 64-bit tools the first time around. If so, go to lớn the Control Panel -> Programs -> Programs & Features, choose khổng lồ “Change” the “Microsoft Windows SDK for Windows 7 (7.0)” & then clichồng the “Change” option when the installer starts up. Reselect the above sầu options, making sure x64 and IA64 are selected in the sub-categories.


Edit the registry & rename files¶

The Windows SDK installer creates registry keys in HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio... lớn point Visual Studio to lớn the components it installed. This is the correct registry location for the full version of Visual Studio, but the express edition uses HKEY_LOCAL_MACHINESOFTWAREMicrosoftVCExpress... instead. Similarly, the SDK installer creates *.VCPlatsize.config files for Visual Studio, but the Express edition expects these lớn be named *.VCPlatsize.Express.Config.

The steps below have been automated by Xia Wei. Get the zip tệp tin here, unzip, then open an Administrator comm& prompt và run setup_x86.bat or setup_x64.bat in the unzipped directory. cảnh báo that this requires VC++ 2008 to lớn be installed inlớn the default location on the C drive. If you’re running on 32-bit Windows or you have sầu another version of the Windows SDK also installed, you may need to lớn use the workarounds here. You may wish to inspect the contents of these bat files before running code from an unknown source.

To accomplish the above sầu manually, proceed as follows:


Visit the key HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisual Studio9.0CLSID and export it to a file, e.g. sdk_data_clsid.reg.

Visit the key HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisual Studio9.0VC và export it to lớn a file, e.g. sdk_data_vc.reg.

Visit the key HKEY_LOCAL_MACHINESOFTWAREMicrosoftVCExpress and export it to lớn a tệp tin as a backup, since the following steps will make changes here.

Xem thêm: Liệu Trình Chăm Sóc Da Ở Spa Chăm Sóc Da Mặt Có Tốt Không? Dịch Vụ Spa Chăm Sóc Da Mặt Chuyên Sâu


Edit the files sdk_data_clsid.reg and sdk_data_vc.reg, khổng lồ replace all occurrences of HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisual Studio to HKEY_LOCAL_MACHINESOFTWAREMicrosoftVCExpress. Save sầu the files.

Import the files sdk_data_clsid.reg và sdk_data_vc.reg, either from Regedit or by double-clicking on the modified files.

Go to lớn the thư mục C:Program FilesMicrosoft Visual Studio 9.0VCvcpackages and rename the tệp tin AMD64.VCPlatform.config lớn AMD64.VCPlatsize.Express.config. Note: if you have sầu installed VC++ 2008 in a different location, you will need to lớn go to lớn that location instead.


Visit the key HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisual Studio9.0CLSID và export it khổng lồ a tệp tin, e.g. sdk_data_clsid.reg.

Visit the key HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisual Studio9.0VC & export it khổng lồ a tệp tin, e.g. sdk_data_vc.reg.

Visit the key HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVCExpress and export it to a file as a backup, since the following steps will make changes here.


Edit the files sdk_data_clsid.reg và sdk_data_vc.reg, to replace all occurrences of HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisual Studio lớn HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVCExpress. Save sầu the files.

Import the files sdk_data_clsid.reg and sdk_data_vc.reg, either from Regedit or by double-clicking on the modified files.

Go khổng lồ the folder C:Program FilesMicrosoft Visual Studio 9.0VCvcpackages & rename the file AMD64.VCPlatform.config khổng lồ AMD64.VCPlatform.Express.config. Note: if you have sầu installed VC++ 2008 in a different location, you will need khổng lồ go to lớn that location instead.


Make the installed SDK the system default¶

Open the Windows 7 SDK CMD shell located in “Start -> Programs -> Microsoft Windows SDK v7.0 -> CMD Shell” & at the CMD prompt type the following:


Table of Contents

Instructions for setting up Visual C++ Express 2008 to compile 64-bit targetsEdit the registry và rename files Previous topic

Prerequisites

Next topic

Building Stimfit


Table of Contents

Instructions for setting up Visual C++ Express 2008 to compile 64-bit targetsEdit the registry and rename files Previous topic

Prerequisites