设为首页 收藏本站
查看: 603|回复: 0

[经验分享] RAD Studio XE2 –mac开发图解

[复制链接]

尚未签到

发表于 2016-5-18 06:10:45 | 显示全部楼层 |阅读模式
http://www.simonjstuart.com/2011/09/03/rad-studio-xe2-setting-it-up-for-a-mac-step-by-step-illustrated-guide/

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:


  • You’ve installed Delphi (or RAD Studio) XE2 on a Windows 64bit system
  • You’ve installed Delphi (or RAD Studio) XE2 to the default paths
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 development machine

  • Open Windows Explorer (Flag+E)
  • Go toC:\Program Files (x86)\Embarcadero\RAD Studio\9.0\PAServer
  • Copysetup_paserver.zipover 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 foryou!
  • Runsetup_paserver.exe(IMPORTANT NOTE:Should either thesetup_paserver.ziporsetup_paserver.exefilesbe missing, you should contact Embarcadero support as something has gone wrong with your XE2 installation!)
PAServer Windows Setup (Step 1)


  • PressOK
PAServer Windows Setup (Step 2)


  • PressNext
PAServer Windows Setup (Step 3)


  • Select “I accept the terms of the License Agreement” and pressNext
PAServer Windows Setup (Step 4)


  • PressNext
PAServer Windows Setup (Step 5)


  • PressInstall
PAServer Windows Setup (Step 6)


  • Wait for the process to finish (could be anything from a minute or longer)
PAServer Windows Setup (Step 7)


  • PressDone
On your MacOSX deployment/debugging machine

  • InFinder, locate the Folder into which you placedsetup_paserver.zip, andDouble-Clickon the zip file.
PAServer MacOSX Setup (Step 1)


  • Double-Clickon the file namedsetup_paserver(noting the absence of.zip) to begin the PAServer setup on your MacOSX system.
PAServer Mac Setup (Step 2)


  • PressOK
PAServer Mac Setup (Step 3)


  • PressNext
PAServer Mac Setup (Step 4)


  • Select “I accept the terms of the License Agreement” and pressNext
PAServer Mac Setup (Step 5)


  • PressNext(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 thisguide!)
PAServer Mac Setup (Step 6)


  • PressInstall(Remember: the installation process can take anything from a few seconds to several minutes)
PAServer Mac Setup (Step 7)


  • PressDone
  • Go back toFinder, and navigate to “/Users/%username%/Applications/Embarcadero/PAServer” (substitute%username%for your MacOSX account username)
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 simplyDouble-Clickon thepaserverApplication file
PAServer Mac Setup (Step 9)


  • Simplyenter a good passwordand press theEnter/Return Key
You can also create a Desktop/Dock shortcut to thepaserverapplication 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 haveFinderopen in the “/Users/%username%/Applications/Embarcadero/PAServer” folder…
  • Bring upContext Menu(by doingControl+Click) on thepaserver.commandfile
  • Go toOpen Withand clickTextEdit
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(usingCommand+S) and thenQuitTextExit
  • OpenSystem Preferences, selectUsers & Groups, then press theLogin Itemsbutton.
  • Press the+button to add a new item to your login group
  • Locate “/Users/%username%/Applications/Embarcadero/PAServer/paserver.command” and pressAdd.
  • Tick the box (in theHidecolumn) corresponding to your paserver.command entry
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 theProject Manager, you will need toRight-ClickonTarget Platforms, clickAdd Platform, and selectOS Xfrom the list, followed by clickingOK
  • Right-click on theOS Xentry underTarget Platformson theProject Managerand clickAssign Remote Profile
  • ClickAdd…
  • EnterProfile name
XE2 MacOSX FireMonkey Application Deployment (Step 1)


  • ClickNext >>
  • Enter theHost name(or IP Address) of your MacOSX machine, and yourPasswordas specified for PAServer on your Mac.
XE2 MacOSX FireMonkey Application Deployment (Step 2)


  • You may useTest Connectionto ensure that your details are correct
  • ClickNext >>, followed byFinish
  • Select your new Remote Profile from the list (e.g.My Mac Deviceas per the screenshot for Step 1) and clickOK
That’s it! Your profile will be used for all MacOSX deployments by default (unless you specify a different profile for specific projects). PressingF9will deploy your application to your MacOSX machine (presuming you have selectedtheOS Xentry inTarget Platformson theProject 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…

FireMonkey 3D GUI Demo on OSX Lion

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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-218339-1-1.html 上篇帖子: mac软件推荐 iterm2 下篇帖子: 调整Mac OSX的最大socket连接数
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表