Show: Delphi C++
Display Preferences

Developing Cross-Platform Applications

From RAD Studio
Jump to: navigation, search

Go Up to Cross-Platform Applications Index

Contents

You can use RAD Studio on the Win32 platform to develop cross-platform applications.

Platforms, Compilers, and Libraries Supported in XE4

RAD Studio supports cross-platform application development for the following platforms:

  • Mac OS X platform (both Delphi and C++)
  • Win64 (both Delphi and C++)
  • iOS (Delphi only)

The native Win32 platform is also supported by both Delphi and C++Builder.

Compilers

Six compilers are provided for cross-platform application development:

Libraries and Platforms

RAD Studio supports three major libraries and three platforms. The following table lists the target platforms supported by the libraries in RAD Studio:

The following table summarizes the platform support by the various libraries in RAD Studio:

   Library\Platform         Win32             Win64 (Delphi and C++)              Mac OS X         Mobile (iOS Simulator and Device)    

FMX

Yes

Yes

Yes

Yes

RTL

Yes

Yes

Yes

Yes

VCL

Yes

Yes

Not supported

Not supported

Note: The table above is a high-level representation of library support for platforms. Some exceptions exist in RTL and VCL support for specific platforms. For example, BDE is not supported on Win64 or Mac OS X.

Types of Cross-Platform Applications You Can Create

  • Mobile (iOS) apps that run on the iOS simulator and on a connected iOS device
  • FireMonkey (Mac OS X, Win64 -- native Win32 is also supported)
  • VCL Forms (Delphi and C++ Win64)
  • DataSnap clients (Mac OS X, Win64 -- native Win32 is also supported)
  • DataSnap servers (Windows only)
  • DataSnap connectors (iOS Free Pascal, iOS Objective C, Blackberry Java, Android Java, Windows Phone 7 C#Silverlight)
  • Console applications
  • 64-bit Windows applications are considered cross-platform because the RAD Studio IDE is a 32-bit Windows application

Developing a Cross-Platform Application

The basic development cycle for a cross-platform application is as follows:

  1. Connect the development PC to the machine where you plan to install the PAServer (see the next step). See Working with a Mac and a PC or Connecting Your 32-bit PC to a Win64 PC.
  2. Install and run PAServer, the cross-platform server, on the target platform or on an intermediate platform that supports the target platform. For example, for the iOS Device target platform, you need to install the PAServer on an OS X platform.
  3. Create a connection profile that describes the connection to the Platform Assistant server on the target machine.
  4. Add an SDK to build your application. Only for Mac OS X C++ applications and iOS device applications.
  5. In the IDE, create and configure a cross-platform project:
    1. Add the target platform that you want.
    2. Activate the target platform.
    3. Configure the target platform with a connection profile, and an SDK if needed.
    4. Test the connection on the Connection Profile Manager page.
  6. Compile and build as usual.
  7. Debug using the cross-platform debugger.
    Keep in mind that running a cross-platform application requires the IDE to deploy the application.
  8. Deploy your cross-platform application.

Cross-Platform Topics

See Also

Personal tools
In other languages