DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: bzydxh00170
今日帖子: 0
在线用户: 0
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/4/25 2:20:24
标题:
How to fix: [DCC Fatal Error] Linux <<project name>>: F2613 Unit "FMX.Forms" not found. 浏览:1725
加入我的收藏
楼主: [DCC Fatal Error] Linux <<project name>>: F2613 Unit "FMX.Forms" not found. or any other unit not found

按此在新窗口浏览图片

---------  Trying compile your project to Linux:

1) do you should be using FMXLinux suite to create your app-Linux, right?
2) but you dont used the FMXLinux to install the necessary files!!!
3) should you be using a "copy" of files from FMXLinux?
4) how to solve this situation?


1) in your IDE, go to
"Tools", "Language", "Delphi", "Library":
---> choice Linux 64-bit
------> add the folder where is the "Release files" to Linux:
----------> C:\<<FMXLinux-folder>>\lib\Release

2) in "Browse Path" add: C:\<<FMXLinux-folder>>\source

3) in "Debug DCU Path" add: C:\<<FMXLinux-folder>>\lib\Debug

and it's all.

now just add your Linux64 SDK in your "SDK Manager"
see on HELP System of RAD Studio:
--- Installing the Platform Assistant on Linux
--- Running the Platform Assistant on Linux
--- Add a New SDK
--- Create a Connection Profile
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 bdl1 (bdl1) ▲▲▲▲▲ -
普通会员
2022/4/26 8:10:02
1楼: 太感谢了!
正好遇到这个问题。
----------------------------------------------
-我的博客
作者:
男 sxqwhxq (步惊云) ★☆☆☆☆ -
普通会员
2022/4/26 12:53:47
2楼: 我的delphi11.1和10.4.2都没问题啊?
请问emailx45:在fmxlinux编译为ubuntu,日期格式会变成yyyy/m/d,怎样把它变为yyyy-mm-dd?我在linux里已经把日期格式改为了yyyy-mm-dd,但程序仍然显示为yyyy/m/d
----------------------------------------------
-
作者:
男 bdl1 (bdl1) ▲▲▲▲▲ -
普通会员
2022/4/26 12:54:45
3楼: 程序里再设置一下呢?
----------------------------------------------
-我的博客
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/4/26 22:03:50
4楼: by default, the RAD catch the "Regional Format Settings", or be,
Dates, Times, etc... from O.S. definitions.

if you needs changes this in your software, you can use TFormatSettings class to create yourself format.

NOTE: you can changes in your Linux in configuration to Regional Formats!

let's to sample:

my unit_global_for_test.pas
...
interface
...
var
  MyFS:TFormatSettings;
...
implementation
...
initialization

// change my Regional Formats for my software
MyFS          := TFormatSettings.Create; // it's a "record" not need free it at all.
MyFS.ShortDateFormat := 'yyyy-mm-dd';
MyFS.LongDateFormat  := '....';
MyFS.ShortTimeFormat := 'hh:mm';
MyFS.LongTimeFormat  := '.....';
// MyFS.xxxxxxx := '.....';

finalization

end.

---- my unitFormXXXX.pas

uses
  unit_global_for_test;

...
  ShowMessage('hello day: ' + DateTimeToStr(now, MyFS));
  MyDay := DateTimeToStr(now, MyFS);
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 sxqwhxq (步惊云) ★☆☆☆☆ -
普通会员
2022/4/27 9:22:56
5楼: 在windows里,修改短日期格式可以这样调用win 32api
  SetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_SSHORTDATE, 'yyyy-MM-dd'); // 短日期格式
SendMessageTimeOut(HWND_BROADCAST,WM_SETTINGCHANGE,0,0,SMTO_ABORTIFHUNG,10,p);

现在在fmx肯定不能这样了。
用emailx45的方法,没有任何效果:
MyFS          := TFormatSettings.Create; // it's a "record" not need free it at all.
MyFS.ShortDateFormat := 'yyyy-mm-dd';
这里仅仅定义了一个myfs变量,并没有用这个变量替代系统的变量,肯定没作用。
不知怎么用myfs代替系统的变量?
----------------------------------------------
-
作者:
男 sxqwhxq (步惊云) ★☆☆☆☆ -
普通会员
2022/4/27 14:13:50
6楼: 现在是stringgrid里的日期格式显示为yyy/m/d。我手动添加column,想把日期设置为yyyy-mm-dd,设置customformat为yyyy-mm-dd,但会出错。
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/4/27 20:56:58
7楼: no need changes your system at all... just config your components on form!
此帖子包含附件:
PNG 图像
大小:43.6K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 sxqwhxq (步惊云) ★☆☆☆☆ -
普通会员
2022/4/27 21:12:17
8楼: 绑定一个dataset和grid很简单,只要将dataset里的*和grid的*连接即可。但如果在grid里添加了column,然后将dataset里的某个字段与这个column对应,在建立连接时会出现一个属性选择对话框,但没有找到text或caption这类属性。
我不会弄grid里添加字段后与dataset 里的字段建立连接。
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/4/27 21:14:48
9楼: http://bbs.2ccc.com/topic.asp?topicid=628666
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行70.3125毫秒 RSS