• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 51 52 53 54 55 ... 116 Next »

How to: Compile x64 Dolphin with VC++2008 Express
View New Posts | View Today's Posts

Pages (11): 1 2 3 4 5 ... 11 Next »
Jump to page 
Thread Rating:
  • 33 Vote(s) - 3.15 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
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.)
#1
CacoFFF Offline
Member
****
Posts: 722
Threads: 15
Joined: Mar 2009
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.

[color=#696969]
Note: even in a x86 Windows you'll be able to compile 64 bit revisions of Dolphin.
[/color]

[color=#FF0000]MAKE SURE YOU HAVE AT LEAST 4 - 5 GB OF OF HARD DISK SPACE[/color]

==>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)
[color=#800000](x64 users, it's a lot easier to get the x64 version of .NET through Windows Update)[/color]

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. [color=#696969](Yeah, i know what you're thinking)[/color].
Go to [color=#2F4F4F]*drive*:\*Program Files Folder*\Microsoft Visual Studio 9.0\VC\vcpackages[/color]
Rename AMD64.VCPlatform.Config to AMD64.VCPlatform.Express.Config.

Run Regedit.exe
x86 Users:
.Go to [color=#000080][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VC\VC_OBJECTS_PLATFORM_INFO][/color], 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'. [color=#696969](Yeah, i know what you're thinking, again)[/color]
Export key "Win64 (AMD64)" in REGEDIT 4 .reg format.
Edit the exported file, change [color=#000080]...osoft\VisualStudio\9.0...[/color] for [color=#000080]...osoft\VCExpress\9.0...[/color] in all adresses.
Import the modified .reg file.
.Go to [color=#000080][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID][/color].
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 [color=#000080][HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\VC\VC_OBJECTS_PLATFORM_INFO][/color], 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'. [color=#696969](Yeah, i know what you're thinking, again)[/color]
Export key "Win64 (AMD64)" in REGEDIT4/NT4 .reg format.
Edit the exported file, change [color=#000080]...osoft\VisualStudio\9.0...[/color] for [color=#000080]...osoft\VCExpress\9.0...[/color] in all adresses.
Import the modified .reg file.
.Go to [color=#000080][HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\CLSID][/color].
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 [color=#696969]FL_VCProjectAMD64Platform_dll_76113_76113_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8[/color] to a temporary folder, rename this file to [color=#696969]VCProjectAMD64Platform.dll[/color]
Go again to [color=#2F4F4F]*drive*:\*Program Files Folder*\Microsoft Visual Studio 9.0\VC\vcpackages[/color], 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
Reply
06-28-2009, 07:38 PM
#2
RDilus Offline
Dolphin Beta Tester
****
Posts: 324
Threads: 53
Joined: Apr 2009
good guide ppl will use it
[Image: 2853654.png]
Find
Reply
06-29-2009, 03:52 AM
#3
Asylum Offline
Junior Member
**
Posts: 35
Threads: 6
Joined: May 2009
thanks for the guide
Find
Reply
06-29-2009, 04:17 AM
#4
Iulius Offline
Senior Member
****
Posts: 410
Threads: 6
Joined: Jun 2009
very nice guide for all those who dont got full visual studio.

well done !
Find
Reply
06-29-2009, 05:39 AM
#5
gcp111
Unregistered
 
aww, I don't even get one tiny mention? Tongue jk

great guide man, I agree MS just tries to piss people off...
Reply
06-29-2009, 06:27 AM (This post was last modified: 06-29-2009, 06:27 AM by DacoTaco.)
#6
DacoTaco Offline
His royal bitchness Tacoboy
*******
Moderators
Posts: 1,134
Threads: 31
Joined: Mar 2009
(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]
[Image: 2280403.png]
Website Find
Reply
07-02-2009, 03:16 PM
#7
LuisR14
Unregistered
 
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
Reply
07-05-2009, 09:05 PM
#8
Creed7 Offline
Member
***
Posts: 77
Threads: 6
Joined: May 2009
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
Reply
07-05-2009, 09:44 PM
#9
DacoTaco Offline
His royal bitchness Tacoboy
*******
Moderators
Posts: 1,134
Threads: 31
Joined: Mar 2009
you need visual C++ not visual basic
thats a complete different coding language
[Image: PeachSig.jpg]
[Image: 566286.png]
[Image: 2280403.png]
Website Find
Reply
07-05-2009, 10:07 PM (This post was last modified: 07-05-2009, 10:32 PM by Creed7.)
#10
Creed7 Offline
Member
***
Posts: 77
Threads: 6
Joined: May 2009
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
Reply
« Next Oldest | Next Newest »
Pages (11): 1 2 3 4 5 ... 11 Next »
Jump to page 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode