RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel

RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide)

September 3, 2011 by Simon Stuart | 34 Comments

With Delphi XE2 now available for everyone to enjoy, I figured it’s time I start providing some useful information to help you make the most of it!

One of the primary new features of XE2 is the ability to produce MacOSX applications, and to do that, there are additional steps you must take in order to prepare both your Windows development system, and your MacOSX deployment/testing system for this task.

This document makes the following assumptions:

So you’ve just installed Delphi (or RAD Studio) XE2… congratulations and welcome to the new and exciting world of cross-platform Delphi development!

Still, you’re not quite ready to start deploying your applications to your MacOSX machine just yet! Fear not, however, as the remaining steps should take you just a few additional minutes and you’ll be good to go!

On your Windows 64bit deployment/testing machine

Go to C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\PAServer on your Development system.
Copy setup_paserver.zip over to your MacOSX device. You can do this any way you like: Share a folder on your PC and copy it from the Mac, place the file on a Mac-compatible USB flash drive and copy it that way…. whatever works best for you!

NOTE: The remaining steps in this section are only necessary if you’re running Delphi (or RAD Studio) XE2 on a 32bit system, and wish to deploy/debug 64bit Windows applications. If you’re developing on 64bit Windows, skip to the MacOSX section!

Copy setup_paserver.exe to your 64bit Windows deployment/testing machine (again, via network or whatever method works best for you) Run setup_paserver.exe on your 64bit Windows deployment/testing machine (IMPORTANT NOTE: Should either the setup_paserver.zip or setup_paserver.exe files be missing, you should contact Embarcadero support as something has gone wrong with your XE2 installation!)
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Windows Setup (Step 1)

RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Windows Setup (Step 2)

RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Windows Setup (Step 3)

Select “ I accept the terms of the License Agreement” and press
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Windows Setup (Step 4)

RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Windows Setup (Step 5)

RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Windows Setup (Step 6)

 Wait for the process to finish (could be anything from a minute or longer)
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Windows Setup (Step 7)

On your MacOSX deployment/debugging machine

In Finder, locate the Folder into which you placed setup_paserver.zip, and Double-Click on the zip file.
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer MacOSX Setup (Step 1)

Double-Click on the file named setup_paserver () to begin the PAServer setup on your MacOSX system.
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Mac Setup (Step 2)

RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Mac Setup (Step 3)

RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Mac Setup (Step 4)

Select “ I accept the terms of the License Agreement” and press Next
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Mac Setup (Step 5)

Press Next (Note: This guide presumes that you’re installing PAServer on your MacOSX machine using the default location. If you elect to install to a different location, you will need to accommodate for that in future portions of this guide!)
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Mac Setup (Step 6)

Press Install (Remember: the installation process can take anything from a few seconds to several minutes)
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Mac Setup (Step 7)

Go back to Finder, and navigate to “ /Users/%username%/Applications/Embarcadero/PAServer” (substitute %username% for your MacOSX account username)
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Mac Setup (Step 8)

To run PAServer on your Mac (which is necessary to deploy and debug Delphi applications for the OSX platform), you can simply Double-Click on the paserver Application file
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Mac Setup (Step 9)

Simply enter a good password and press the Enter/Return Key

You can also create a Desktop/Dock shortcut to the paserver application to make it easier to run on demand…. or, if you’re clever…..

Make PAServer start automatically on your Mac when you switch it on (or log in)

Since you already have Finder open in the “ /Users/%username%/Applications/Embarcadero/PAServer” folder… Go to Open With and click TextEdit
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Autorun At Startup/Login (Step 1-3)

 Modify the second line so that it resembles the following:
“/Users/%username%/Applications/Embarcadero/PAServer/paserver” -password=S0m3Gr8tP455w0rd
Including quotes, and remembering to substitute %username% with your MacOSX user account name! Essentially you’re just adding -password=… to the end of the line!

PAServer Autorun At Startup/Login (Step 4)

Save the file (using Command+S) and then Quit TextExit Open System Preferences, select Users & Groups, then press the Login Items button.
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

PAServer Autorun At Startup/Login (Step 5)

PAServer will now automatically start (and hide itself) whenever you log in to your Mac, eliminating the annoyance of forgetting to start it before attempting to deploy/debug a Delphi application to the OSX platform.

Deploying your first FireMonkey application to your MacOSX machine

Open or create your FireMonkey project On the Project Manager, you will need to Right-Click on Target Platforms, click Add Platform, and select OS X from the list, followed by clicking OK Right-click on the OS X entry under Target Platforms on the Project Manager and click Assign Remote Profile Enter Profile name
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

XE2 MacOSX FireMonkey Application Deployment (Step 1)

Click Next >> Enter the (or IP Address) of your MacOSX machine, and your as specified for PAServer on your Mac.
RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

XE2 MacOSX FireMonkey Application Deployment (Step 2)

You may use Test Connection to ensure that your details are correct Click Next >>, followed by Finish Select your new Remote Profile from the list (e.g. My Mac Device as per the screenshot for Step 1) and click OK

That’s it! Your profile will be used for all MacOSX deployments by default (unless you specify a different profile for specific projects). Pressing F9 will deploy your application to your MacOSX machine (presuming you have selected the OS X entry in Target Platforms on the Project Manager), and you’ll be able to debug your application from Delphi whilst it is running on your Mac!

Just because pictures speak louder than words…

RAD Studio XE2 – Setting it up for a Mac (step-by-step illustrated guide) | Reinvent The Wheel - yyimen - yyimen的博客

FireMonkey 3D GUI Demo on OSX Lion

You can find the official PAServer documentation on Embarcadero’s Documentation Wiki.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值