RTC Forums

Subscription => Support => Topic started by: Peter M. on April 28, 2020, 12:06:21 AM



Title: Unable to Compile 64-bit Windows
Post by: Peter M. on April 28, 2020, 12:06:21 AM
I have downloaded the latest 9.5 version, and am in the process of installing it in Delphi 10.2...

...however the Target Platforms do not show 64-bit Windows as a compile option for either rtcSDK or rtcSDKD.

The only two options are:
- 32-bit Windows
- iOS Device - 64 bit

What do I need to do to get this to compile as 64-bit?

Thanks.


Title: Re: Unable to Compile 64-bit Windows
Post by: D.Tkalcec (RTC) on April 28, 2020, 12:41:41 PM
Since Delphi (the IDE) is a 32-bit application, it requires a 32-bit package.

In other words, you need to build RTC SDK packages for the Win32 target platform to install them into the Delphi IDE.

Once the packages are compiled and installed in Delphi,
you can use them to design and compile 32-bit and 64-bit Projects.


Title: Re: Unable to Compile 64-bit Windows
Post by: Peter M. on April 28, 2020, 04:24:26 PM
However, my prior RTC version 9.21 did let me compile 64-bit.

If we look at the 9.21 code for rtcSDK.dproj we'll see the following:
Code:
           <Platforms>
                <Platform value="Android">False</Platform>
                <Platform value="iOSDevice32">False</Platform>
                <Platform value="iOSDevice64">True</Platform>
                <Platform value="iOSSimulator">False</Platform>
                <Platform value="Win32">True</Platform>
                <Platform value="Win64">True</Platform>
            </Platforms>
...that shows Win32, Win64, and iOSDevice64 are all True.


However, if we look at the same code for 9.5, it shows the following:
Code:
            <Platforms>
                <Platform value="Android">False</Platform>
                <Platform value="iOSDevice32">False</Platform>
                <Platform value="iOSDevice64">True</Platform>
                <Platform value="iOSSimulator">False</Platform>
                <Platform value="Linux64">False</Platform>
                <Platform value="OSX32">False</Platform>
                <Platform value="Win32">True</Platform>
                <Platform value="Win64">False</Platform>
            </Platforms>
...that shows only Win32 and iOSDevice64 set to True.

Thanks.


Title: Re: Unable to Compile 64-bit Windows
Post by: D.Tkalcec (RTC) on April 28, 2020, 04:34:05 PM
".dproj" files are NOT included in the RTC SDK ZIP file, because they contain your local paths and your local IDE settings. These files are automatically created by the Delphi IDE, after you open a ".dpk" (Delphi Package) or ".dpr" (Delphi Project) file.


Title: Re: Unable to Compile 64-bit Windows
Post by: Peter M. on April 29, 2020, 01:26:37 AM
After a bit of research, it turns out "64-bit Windows" needed to be added as an option.

For anyone else having this issue, here's how to do it:

1. Open SDKPackages_Main.bpg
2. In the Project Manager, start with rtcSDK.bpl.
3. Right-click on "Target Platforms (Win32)"
4. Click "Add Platform"
5. At the popup screen, select "64-bit Windows" then click OK.

This also needs to be done for rtcSDKD.bpl