当前位置:首页 > 网站技术文档 > 正文内容

Instructions to use TeeChart with FMXLinux

nalyc1个月前 (10-20)网站技术文档122

Once installed in RAD Studio, TeeChart VCL/FMX can target a variety of platforms, including Windows, macOS, Android, iOS and Linux.
Here we'll try to guide you through the steps to configure your RAD Studio to compile TeeChart projects for Linux.

  • Configure your IDE to target Linux following the instructions from Embarcadero.

  • Install TeeChart with Sources.

  • Generate the prefixed units in the "FMX" folder by running TeeRecompile.
    You can just run it in the command prompt with the

    -generateunits:XX

    argument (where

    XX

    is the Product Version of your IDE).
    Ie, for RAD 11 Alexandria:

    TeeRecompile -generateunits:28
  • Add the "FMX" folder in the Library path for the "Linux 64-bit" platform:

f1.jpg

  • Add the "FMXTee" unit scope name for the "Linux 64-bit" platform:

f2.jpg

Note for TeeChart v2021.32

Trying to compile an FMX project with a Chart will give you an error on the FMXTee.Canvas.pas unit.
To fix this issue in v2021.32, change the condition where the error raises from this:

if Assigned(ABrush.Bitmap)
{$IFDEF FMX}and Assigned(ABrush.Bitmap.Bitmap) and (not ABrush.Bitmap.Bitmap.IsEmpty){$ENDIF}
{$IFDEF CLX}and (not ABrush.Bitmap.Empty){$ENDIF} then

To this:

if Assigned(ABrush.Bitmap)
{$IFDEF FMX}and Assigned(ABrush.Bitmap.Bitmap) and (not ABrush.Bitmap.Bitmap.IsEmpty){$ELSE}
{$IFDEF CLX}and (not ABrush.Bitmap.Empty){$ENDIF}{$ENDIF} then




Finally, having RAD Studio connected to a Linux machine with PAServer, you should be able to build and run your projects:

f3.jpg

Happy <Linux> charting.

扫描二维码推送至手机访问。

版权声明:本文由Qzcc.Com发布,如需转载请注明出处。

本文链接:https://qzcc.com/post/teechart_fmx_linux.html

分享给朋友:

相关文章

delphi XE10开发的APP对于苹果IPV6上架要求的处理(DelphiTeacher)

1.服务器必须使用域名.不能使用IP地址2.Indy的话,域名加[]3.DataSnap的话,Params.Values['CommunicationIPVersion'] :='IP_IPv6';4.当前...

delphi 获取动态创建控件内容

遍历控件代码1:var  i :Integer;begin  for i := 0 to ComponentCount - 1 do    if Components[i] is TRadioButt...

mysql的免安装配置

mysql的免安装配置

1、下载(1)下载地址:https://dev.mysql.com/downloads/mysql/(2)选择下载2、配置环境变量(1)解压目录:D:\mysql-8.0.16-winx64(2)配置环境变量3、添加配置文件(1)配置文件目...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。