DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: webb123
今日帖子: 1
在线用户: 1
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 go_on (go_on) ★☆☆☆☆ -
盒子活跃会员
2017/4/17 8:44:32
标题:
FireMonkey on Linux! 浏览:1850
加入我的收藏
楼主: 原始地址
https://community.embarcadero.com/blogs/entry/firemonkey-on-linux

It did not take long since the release of Delphi Linux compiler to have the ability to build Linux GUIs with Delphi!

Just go to http://fmxlinux.com ;and get the only currently available download of FireMonkey for Linux which is "Free Trial v 0.905".

You need to have RAD Studio 10.2 "Tokyo" installed. Make sure it is not running and install the trial. It is small and installs very fast. Run Delphi and create a new multi-device project. Drop a button on the form and write just one line of code in the "OnClick" event handler to display "Hello World from Delphi on Linux desktop!" in the caption of the form. Save all and run on Windows just to be sure;-)

The FmxLinux trial installed the actual Delphi FireMonkey for Linux, but also the IDE integration. If you now right-click on the "Hello World" project in the Project Manager, you will see that there is new item in the context menu "Add Linux Platform". Click on it and here we are! Our multi-device app is now having "Linux Target" active!



The last step is to deploy and run the test app on a Linux desktop installation. That's quick. I'm using Mac and VMWare for virtualization. Download Ubuntu 16.04 Desktop ISO and create a new VM using "Linux Easy Install" option in VMWare Fusion. That's very similar to creating Ubuntu Server VM. Now we need to have Delphi 10.2 PAServer running on Ubuntu Desktop. Probably the easiest solution is to upload the Linux PAServer archive somewhere and download it with integrated FireFox web browser to our Ubuntu desktop installation. Just double-click on the PAServer download to unpack it and drag the contents of the archive somewhere in your file system. For example into "Documents".

Right-click on Ubuntu desktop and select the option to open terminal session. Change directory into where the PAServer is unpacked and run it with "./PAServer" command. Optionally enter password and then enter "i" to list IP addresses to use to connect to the PAServer.

Now in Delphi right-click on Linux target platform and select "Edit Connection". Create a new connection and enter the IP address from the PAServer's "i" command. What I have found tricky was the fact that I needed to leave the password field blank to connect.

If "Test Connection" works, you just need to click on the green arrow "Run" button to build, deploy and run the app.

 

It is so cool! Delphi FireMonkey GUI app running on Linux!
----------------------------------------------
www.eudn.cn工程师联合开发网
作者:
男 djhfwk (djhfwk) ▲▲▲▲▲ -
普通会员
2017/4/17 8:50:11
1楼: [size=5]楼主很久没上网了吧[/size]
----------------------------------------------
-
作者:
男 hujiacheng ( 旺财) ★☆☆☆☆ -
普通会员
2017/4/17 11:38:25
2楼: items.add 后无内容显示。
TMemo 没问题。
然后看了下QC。。
 默默地回到10.1
----------------------------------------------
免费的FTPhttps://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019>http://delphi-z.ruhttps://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019>http://delphi.icm.edu.pl/ftp/https://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019>http://delphi-z.ruhttps://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019
作者:
男 go_on (go_on) ★☆☆☆☆ -
盒子活跃会员
2017/4/17 12:58:08
3楼: 回复1楼

是firemonkey gui on linux,不是console on linux,你自己先看清楚

这个技术正在实验中,目前还不是官方支持
----------------------------------------------
www.eudn.cn工程师联合开发网
作者:
男 wk_knife (wk_knife) ★☆☆☆☆ -
盒子活跃会员
2017/4/17 13:49:00
4楼: 楼主果然有日子没有上2CCC了!

http://bbs.2ccc.com/topic.asp?topicid=531534
----------------------------------------------
-
作者:
男 ying32 (唯有此生) ▲▲▲▲▲ -
普通会员
2017/4/17 14:02:38
5楼: 人家已经开始卖钱啦,不是实验的了😂
----------------------------------------------
一个热爱delphi的人,Golang GUI库。 --我的博客--
作者:
男 mricy (Icy) ▲▲▲▲△ -
普通会员
2017/4/17 14:21:33
6楼: 在下记得每错的话  实验是在2017之前  ,之后就卖钱了呢~!
----------------------------------------------
哦哟喂,看过来: http://zelig.cn
作者:
男 go_on (go_on) ★☆☆☆☆ -
盒子活跃会员
2017/4/18 8:39:10
7楼: 回复楼上的几位,的确没看到4楼贴的帖子,1楼说的是对的,中间有一段没上2ccc了,有错就认。当然,如果1楼直接贴4楼的帖子就更好了
----------------------------------------------
www.eudn.cn工程师联合开发网
作者:
男 onechen (onechen) ▲▲▲▲▲ -
普通会员
2017/4/18 10:18:37
8楼: 我做了一些 FMXLinux 测试,有兴趣的可以看看:
http://www.cnblogs.com/onechen/p/6699231.html
----------------------------------------------
-
作者:
男 bdl1 (bdl1) ▲▲▲▲▲ -
普通会员
2017/4/18 14:06:45
9楼: 这个确实牛,进一步证实emb不够积极。
官方没计划的,确被大牛这么快就实现出来。
----------------------------------------------
-我的博客
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行82.03125毫秒 RSS