Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add 64 bit target platform in Delphi XE8?

The help files say right click on the target platform in the project manager and select "Add platform", but when I do this the "Add Platform" item is greyed out.

Is there another way to add the 64 bit platform?

like image 882
Andy k Avatar asked Jul 14 '15 15:07

Andy k


1 Answers

This could happen when migrating projects from previous versions of Delphi.

Try deleting the dproj file and then open the dpr file. This way usually handles the upgrade process.

If it does not, you will probably need to create a new project and add your existing source files to it.

Or you can try editing the dproj file to enable the Win64 platform.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        ...
        <TargetedPlatforms>3</TargetedPlatforms>
        ...
    </PropertyGroup>
    ...
    <PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Base)'=='true') or '$(Base_Win64)'!=''">
        <Base_Win64>true</Base_Win64>
        <CfgParent>Base</CfgParent>
        <Base>true</Base>
    </PropertyGroup>
    ...
    <ProjectExtensions>
        <Borland.Personality>Delphi.Personality.12</Borland.Personality>
        ...
        <BorlandProject>
            ...
            <Platforms>
                <Platform value="Win32">True</Platform>
                <Platform value="Win64">True</Platform>
            </Platforms>
            ...
        </BorlandProject>
        ...
    </ProjectExtensions>
    ...
</Project>
like image 106
Gianluca Colombo Avatar answered Oct 23 '22 11:10

Gianluca Colombo