[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
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
现在在fmx肯定不能这样了。 用emailx45的方法,没有任何效果: MyFS := TFormatSettings.Create; // it's a "record" not need free it at all. MyFS.ShortDateFormat := 'yyyy-mm-dd'; 这里仅仅定义了一个myfs变量,并没有用这个变量替代系统的变量,肯定没作用。 不知怎么用myfs代替系统的变量?
----------------------------------------------
-
http://bbs.2ccc.com/topic.asp?topicid=628666
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3