unigui 1534 linux, 终于用上这个来做测试,是真真正正的跑在linux的unigui程序,不用像之前的要用上wine才能在linux上(实现了delphi unigui跑在linux上), 之前测试用的demo,纯粹一个读sql server的表的程序,用unidac连接sql server数据库的,在windows跑中文显示是正常的,但在linux上跑,居然乱码,最终发现是sql server表varchar和nvarchar字段作怪,跟unigui linux无关吧.
另外值得注意的,还是unigui的两个文件路径,以下的ext-js和uni-js是我自定义的目录,里边的文件对应于[ C:\Program Files (x86)\FMSoft\Framework\uniGUI ]下的ext-x.x.x和uni-x.x等,如果linux就对应于FrameworkFilesRoot, 就是将那两个文件夹拷贝到FrameworkFilesRoot的自定义目录下.
procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
var
nStr:string;
begin
nStr := ExtractFilePath(ParamStr(0)) + ‘ext-js’;
Logger.AddLog(‘TUniServerModule’, nStr);
{$ifdef Linux64}
FrameworkFilesRoot := ‘/root/PAServer/scratch-dir/Administrator-248/temp2’;
{$endif}
{$ifdef MSWINDOWS}
if DirectoryExists(nStr) then
begin
ExtRoot := 'ext-js';
UniRoot := 'uni-js';
end;
{$endif}
end;
反正可以跑在linux下了,这样操作方便很多。但还是那句性能和稳定不知道怎样,但对于我自用来说,这个不用考虑