Post Reply 
 
Thread Rating:
  • 27 Votes - 3.04 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to: Compile x64 Dolphin with VC++2008 Express
06-28-2009, 07:05 PM (This post was last modified: 08-13-2009 07:53 AM by CacoFFF.)
Post: #1
How to: Compile x64 Dolphin with VC++2008 Express
We first need to know that according to the Microsoft website, VC++2008 Express is supposed to have native x64 support (x64 enviroment + x64 compiler), it doesn't.

The purpose of this step-by-step guide is to help those with both Windows x86 and x64 versions compile Dolphin x86 or x64 with VC++ 2008 Express.


Note: even in a x86 Windows you'll be able to compile 64 bit revisions of Dolphin.


MAKE SURE YOU HAVE AT LEAST 4 - 5 GB OF OF HARD DISK SPACE

==>Step 1: Downloading the required files.

.NET Framework 3.5 SP1
Windows SDK (i used server 2008)
VC++ 2008 Express (I recommend the web installer)

Through Windows Update or any standalone installer .NET Framework 3.5 SP1 can be downloaded on its full version (includes 2.0, 3.0)
(x64 users, it's a lot easier to get the x64 version of .NET through Windows Update)

For older SDK versions
For Win x86 users:
Windows SDK can be obtained here, web installer version.

For Win x64 users:
Sorry, but you are going to have to download the full SDK + .NET ISO file (1.3gb). Not gonna explain, if you want it to work, you'll do it.

For Windows 7 SDK
Download link, only web installer is needed this time.


==>Step 2: Other files.
Here you'll see what other things are needed, don't follow those steps yet.

==>Step 3: Installing what you need.
First we'll install .NET Framework 3.5 SP1 (x86 or x64).
Secondly, install VC++ 2008, you don't need all the other crap, just install the program.

Now we proceed with the Windows SDK:
x86: Run the web installer.
x64 W7: Run the web installer.
x64: From inside the ISO (see how to handle iso's below), run Setup.exe.
Check Windows Headers and Libraries.
Check Visual C++ Compilers
Check Windows Development Tools
Next >
You are free to continue downloading/installing the selected components.

==>Step 4: Other Steps
Feel free to install Tortoise SVN, DirectX SDK.

==>Step 5: Making VC++ 2008 gain the funcionality to compile x64 apps.
A tough one for x86 users and a tougher one for x64 users.

VC++ 2008 Express, unlike it's other, fully capable versions, does not scan for .config files, but for .Express.config files. (Yeah, i know what you're thinking).
Go to *drive*:\*Program Files Folder*\Microsoft Visual Studio 9.0\VC\vcpackages
Rename AMD64.VCPlatform.Config to AMD64.VCPlatform.Express.Config.

Run Regedit.exe
x86 Users:
.Go to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VC\VC_OBJECTS_PLATFORM_INFO], there you'll see two or three compiling platforms, unfortunately, they don't work as they are.
VC++ 2008 Express does not read from 'VisualStudio', it reads from another key named 'VCExpress'. (Yeah, i know what you're thinking, again)
Export key "Win64 (AMD64)" in REGEDIT 4 .reg format.
Edit the exported file, change ...osoft\VisualStudio\9.0... for ...osoft\VCExpress\9.0... in all adresses.
Import the modified .reg file.
.Go to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID].
Repeat above process for keys:
{656d8763-2429-11d7-8bf6-00b0d03daa06}
{656d8760-2429-11d7-8bf6-00b0d03daa06}
{656d8763-2429-11d7-8bf6-00b0d03daa06}
{656d875f-2429-11d7-8bf6-00b0d03daa06}
Close REGEDIT

x64 Users:
.Go to [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\VC\VC_OBJECTS_PLATFORM_INFO], there you'll see two or three compiling platforms, GREAT!, NOT!.
VC++ 2008 Express does not read from 'VisualStudio', it reads from another key named 'VCExpress'. (Yeah, i know what you're thinking, again)
Export key "Win64 (AMD64)" in REGEDIT4/NT4 .reg format.
Edit the exported file, change ...osoft\VisualStudio\9.0... for ...osoft\VCExpress\9.0... in all adresses.
Import the modified .reg file.
.Go to [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\CLSID].
Repeat above process for keys:
{656d8763-2429-11d7-8bf6-00b0d03daa06}
{656d8760-2429-11d7-8bf6-00b0d03daa06}
{656d8763-2429-11d7-8bf6-00b0d03daa06}
{656d875f-2429-11d7-8bf6-00b0d03daa06}
Close REGEDIT.
If you installed Windows 7 SDK, go to step 6.
The compiler module for x64 platform has been registered, but it will not work, because the SDK installer gave us a 64bit dll, and our VC+++ 2008 is a 32 bit app.
Go to Windows SDK ISO, folder \Setup, open vc_stdx86.cab.
Copy/Extract FL_VCProjectAMD64Platform_dll_76113_76113_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8 to a temporary folder, rename this file to VCProjectAMD64Platform.dll
Go again to *drive*:\*Program Files Folder*\Microsoft Visual Studio 9.0\VC\vcpackages, replace the old, 64bit VCProjectAMD64Platform.dll for the one we just extracted.

==>Step 6: Other configurations
Follow these steps to configure your compiler, download the source and compile it.

Remember that every time you compile Dolphin, check that you added the DirectX folders, and use Rebuild Again instead of Rebuild.


Handling ISO files:
- Mount them with DAEMON Tools
- Burn them to a DVD
- Fully extract them with Winrar or 7-zip to a clean folder.


This is how my directories config looks
   
The dirs marked in red are those that differ from Win32 platform.

ASRock Conroe 1333-D667
Intel Pentium Dual Core E2180 2.00GHZ
2GB ram
Windows XP x64
Ati Radeon HD3650 256mb GDDR3
[Image: bugwk7.gif]
[Image: 338184.jpg]
Find all posts by this user
Quote this message in a reply
06-28-2009, 07:38 PM
Post: #2
RE: How to: Compile x64 Dolphin with VC++2008 Express
good guide ppl will use it

CPU: AMD Phenom II X4 965 Black Edition 3.8GHz OCed
Graphics Card: Ati Radeon HD5770 512MB GDDR5 960/1350 OCed
Motherboard: MSI K9A2 CF-F
RAM: 8GB DDR2 333Mhz
OS: Windows 7 Ultimate x64
Find all posts by this user
Quote this message in a reply
06-29-2009, 03:52 AM
Post: #3
RE: How to: Compile x64 Dolphin with VC++2008 Express
thanks for the guide
Find all posts by this user
Quote this message in a reply
06-29-2009, 04:17 AM
Post: #4
RE: How to: Compile x64 Dolphin with VC++2008 Express
very nice guide for all those who dont got full visual studio.

well done !
Find all posts by this user
Quote this message in a reply
06-29-2009, 05:39 AM (This post was last modified: 06-29-2009 05:39 AM by gcp111.)
Post: #5
RE: How to: Compile x64 Dolphin with VC++2008 Express
aww, I don't even get one tiny mention? Tongue jk

great guide man, I agree MS just tries to piss people off...

Specs: AMD Athlon 64 X2 4200+ @ 2.2 GHz | 2 GB RAM | GeForce 8400GS | WinXP 32-bit
Find all posts by this user
Quote this message in a reply
06-29-2009, 06:27 AM (This post was last modified: 06-29-2009 06:27 AM by Daco.)
Post: #6
RE: How to: Compile x64 Dolphin with VC++2008 Express
(06-29-2009 05:39 AM)gcp111 Wrote:  aww, I don't even get one tiny mention? Tongue jk

great guide man, I agree MS just tries to piss people off...
piss ppl off?
sounds perfectly normal they limit express by 60%
express was meant to get a taste of the real deal : VS2008
not something you want to do everything with Wink

[Image: PeachSig.jpg]
[Image: 566286.png]
Find all posts by this user
Quote this message in a reply
07-02-2009, 03:16 PM (This post was last modified: 07-02-2009 03:22 PM by LuisR14.)
Post: #7
RE: How to: Compile x64 Dolphin with VC++2008 Express
hmm, great guide Smile (have to try it Tongue)

EDIT: and i might try to see if there would be anything that would be unneccesary Tongue

http://www.emucraze.com | http://www.wikidgamer.com | http://dolphinhelpforum.emucraze.com
Windows 7 x64 RC
Intel Pentium Dual-Core E5200 2.5GHz (OC to 3.6GHz)
1GB DDR2 RAM
Intel GMA x4500

http://i47.tinypic.com/2r3c96w.png
http://i46.tinypic.com/2pz0590.png
Visit this user's website Find all posts by this user
Quote this message in a reply
07-05-2009, 09:05 PM
Post: #8
RE: How to: Compile x64 Dolphin with VC++2008 Express
hey know in which that this lies that virsualbasic to me melssages like core.vcprjoy plugindx9.vcproj.... and other ones could not be opened gives.

I have obeyed so far yours tutorial
and

virsual basic express
dxsdkmarch2009
net framework 3.5
and winodws sdk

instal

Dolphin Emus +perfect settings
Find all posts by this user
Quote this message in a reply
07-05-2009, 09:44 PM
Post: #9
RE: How to: Compile x64 Dolphin with VC++2008 Express
you need visual C++ not visual basic
thats a complete different coding language

[Image: PeachSig.jpg]
[Image: 566286.png]
Find all posts by this user
Quote this message in a reply
07-05-2009, 10:07 PM (This post was last modified: 07-05-2009 10:32 PM by Creed7.)
Post: #10
RE: How to: Compile x64 Dolphin with VC++2008 Express
thank you daco
There is a quick way to test the change So the svn into bootable RVN dolphin convert.?

sry for bad english

Dolphin Emus +perfect settings
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)