Software Development > PCL and PJSR Development

Compiling for 64-bit with VC++ 2008 Express

(1/4) > >>

Mike Reid:
I thought it best to start a new thread for this instead of leaving it buried in the StarStatistics/ReadPSF thread since it's more broadly useful.

I got 64-bit compiles working under Visual C++ 2008 Express Edition running on my 64-bit Windows 7 PC.

I'm going to summarize the process here for the benefit of others but I can't claim credit.  I just pieced it together from a few websites (listed at the end).

PROCEDURE

(1) Download and install,
    Microsoft Visual C++ 2008 Express Edition
    http://www.microsoft.com/express/downloads/#2008-Visual-CPP


(2) Download and install,
    Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1
    http://www.microsoft.com/downloads/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505&displaylang=en


(3) Microsoft has a website that is supposed to tell you how to enable 64-bit compiles by installing the SDK but it doesn't work.  In step 5 of their procedure it says to select 64-bit platform from the drop down list but it's not there.  Steps (4) and (5) below are necessary to get it working.
    http://msdn.microsoft.com/en-us/library/9yb4317s.aspx


(4) Register the v7.0 SDK as the system default.
    Run the "Windows SDK Configuration Tool", select v7.0 and click "Make Current".


(5) Run a cmd shell with Administrator privilege and run these command,

    regedit /s x64\VC_OBJECTS_PLATFORM_INFO.reg
    regedit /s x64\600dd186-2429-11d7-8bf6-00b0d03daa06.reg
    regedit /s x64\600dd187-2429-11d7-8bf6-00b0d03daa06.reg
    regedit /s x64\600dd188-2429-11d7-8bf6-00b0d03daa06.reg
    regedit /s x64\600dd189-2429-11d7-8bf6-00b0d03daa06.reg
    regedit /s x64\656d875f-2429-11d7-8bf6-00b0d03daa06.reg
    regedit /s x64\656d8760-2429-11d7-8bf6-00b0d03daa06.reg
    regedit /s x64\656d8763-2429-11d7-8bf6-00b0d03daa06.reg
    regedit /s x64\656d8766-2429-11d7-8bf6-00b0d03daa06.reg
    copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\AMD64.VCPlatform.config" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\AMD64.VCPlatform.Express.config"
    copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\Itanium.VCPlatform.config" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\Itanium.VCPlatform.Express.config"


After this I was able to follow the procedure in Microsofts webpage listed in step (3) and enable 64-bit compiles.  I successfully compiled Carlos' StarStatistics class and ReadPSF process module and tested them in 64-bit PI.


REFERENCES

    http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/
    http://www.cppblog.com/xcpp/archive/2009/09/09/vc2008express_64bit_win7sdk.html
    http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
    http://blogs.msdn.com/deeptanshuv/archive/2006/04/11/573795.aspx


Mike

Nocturnal:
Good stuff. I have the Enterprise edition but this will come in handy.

budguinn:
Hi Mike,

is this pretty much the same for Vista Ultimate?
thanks Mike, I have the
    Microsoft Visual C++ 2008 Express Edition
and am now installing the SDK.

Can the command entries corrupt anything?...other programs?

and I'll probably have a few more questions.
This should make it nice to give some of the beta things that they are coming up with...a good trial.

bud

budguinn:
Hi Mike,

Reading the release notes it looks like it should work on Vista.

So, now to figure out how to load everything into the VC++Express and define it as a project.
(a quick tutorial would be nice)

but first......GOLF....it is Saturday.

Oh, wait a minute....I'm retired, and every day is Saturday.

bud

Nocturnal:
Why are you guys fiddling with PCL? Got any exciting modules you plan to write?

Navigation

[0] Message Index

[#] Next page

Go to full version