Lazarus support

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
andy
Newbie
Newbie
Posts: 2
Joined: Fri Sep 26, 2014 12:00 am

Lazarus support

Post by andy » Thu Aug 06, 2015 7:22 pm

Hello

I have some problems when try to recompile TeeChartVCLSOURCE-2015.15 using Lazarus 1.4.2 (FPC 2.6.4).

What TeeChart source version i should use and what Lazarus IDE version is supported (design and runtime ) ?

Thank you

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Lazarus support

Post by Narcís » Fri Aug 07, 2015 7:23 am

Hi andy,

With the source code version and provided TeeRecompile tool you should be able to compile the source code for lazarus and install the components into Lazarus using generated teechart.lpk. We have also found that the design-time editor produces several errors and has inconsistent behavior depending on the Lazarus versions so we can not guarantee it will work. Which specific problems do you have with it?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Lazarus support

Post by Narcís » Fri Aug 07, 2015 9:58 am

Hello Andy,

Current version (2015.15) doesn't compile with Lazarus 1.4.2. However, I could compile build 2014.12.140923, from September 2014, using the attached TeeRecompile version. Can you please check if it works fine at your end?

Thanks in advance.
Attachments
TeeRecompile.zip
(1.56 MiB) Downloaded 1025 times
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Lazarus support

Post by Narcís » Fri Aug 07, 2015 10:37 am

Hello Andy,

We could fix 2015.15 sources to compile for Lazarus. I'm going to send an email with a source code test version.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

andy
Newbie
Newbie
Posts: 2
Joined: Fri Sep 26, 2014 12:00 am

Re: Lazarus support

Post by andy » Fri Aug 07, 2015 5:38 pm

Thank you
Compiled and installed to IDE successfully.
But DesignTime Series Editor does not work. Can you fix it ?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Lazarus support

Post by Narcís » Mon Aug 10, 2015 8:01 am

Hi andy,

Thanks for your feedback. I added it to the bug list to be fixed for future releases: http://bugs.teechart.net/show_bug.cgi?id=1267
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

axline
Newbie
Newbie
Posts: 5
Joined: Wed Dec 14, 2016 12:00 am

Re: Lazarus support

Post by axline » Fri Dec 23, 2016 5:46 pm

Hello!

Sorry for popping up such an old topic. I'm trying to use TeeChart v19 in Lazarus x64 (1.6.2 with fpc 3.0.0). TeeRecompile doesn't work for me so i tried to compile the code directly in IDE. The compiling process terminates at:

Code: Select all

// http://stackoverflow.com/questions/9942118/how-to-probe-the-availability-of-intel-advanced-vector-extensions
function isAvxSupported: Boolean;
asm
{$IFDEF CPUX86}
    push ebx
{$ENDIF}
{$IFDEF CPUX64}
    mov r10, rbx
{$ENDIF}
    xor eax, eax
    cpuid
    cmp eax, 1
    jb @not_supported
    mov eax, 1
    cpuid
    and ecx, 018000000h
    cmp ecx, 018000000h
    jne @not_supported
    xor ecx, ecx
    db 0Fh, 01h, 0D0h //XGETBV
    and eax, 110b
    cmp eax, 110b
    jne @not_supported
    mov eax, 1
    jmp @done
@not_supported:
    xor eax, eax
@done:
{$IFDEF CPUX86}
    pop ebx
{$ENDIF}
{$IFDEF CPUX64}
    mov rbx, r10
{$ENDIF}
end;

// ($800000,  $400000, $2000000, $4000000, $80000000, $40000000);
// {ciMMX  ,  ciEMMX,  ciSSE   , ciSSE2  , ci3DNow ,  ci3DNowExt}

function SupportsSSE: LongBool;
const
  CPUID_INTEL_SSE = $02000000;
asm
{$IFDEF CPUX86}
    push ebx
{$ENDIF}
{$IFDEF CPUX64}
    mov r10, rbx
{$ENDIF}
  mov eax, 1
  cpuid
  mov eax, FALSE
  test edx, CPUID_INTEL_SSE
  jz @END
  mov eax, TRUE
@END:
{$IFDEF CPUX86}
    pop ebx
{$ENDIF}
{$IFDEF CPUX64}
    mov rbx, r10
{$ENDIF}
end;

function SupportsSSE2: LongBool;
const
  CPUID_INTEL_SSE2 = $04000000;
asm
{$IFDEF CPUX86}
    push ebx
{$ENDIF}
{$IFDEF CPUX64}
    mov r10, rbx
{$ENDIF}
  mov eax, 1
  cpuid
  mov eax, FALSE
  test edx, CPUID_INTEL_SSE2
  jz @END
  mov eax, TRUE
@END:
{$IFDEF CPUX86}
    pop ebx
{$ENDIF}
{$IFDEF CPUX64}
    mov rbx, r10
{$ENDIF}

end;

function SupportsMMX: Boolean;
asm
mov eax,1
  cpuid
  and edx,$800000
  cmp edx,0
  jnz @no
  mov result,1
  jmp @bye
 @no:
  mov result,0
 @bye:
end;
For x86 the code compiles normally. But I really need to use the x64 version because I work with large arrays of data for scientific purposes. Could you, please, help me with recompiling this code for x64 Lazarus?

Btw, after compiling under x86 and installing the code in IDE I've found out that the DesignTime Editor still does not work (as it was mentioned above). When I try to navigate through it the cursor just jumps randomly all over the settings listbox leaving the forms empty. Please, have a look at that, as well.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Lazarus support

Post by Sandra » Tue Dec 27, 2016 11:22 am

Hello axline,

Could you confirm which Rad Studio IDE are you using because we can check exactly the problem you experiencing?

Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

axline
Newbie
Newbie
Posts: 5
Joined: Wed Dec 14, 2016 12:00 am

Re: Lazarus support

Post by axline » Wed Dec 28, 2016 11:11 am

Hello, Sandra!

I'm using Lazarus IDE v. 1.6.2 with fpc 3.0.0 (x64). Lazarus used to be supported before (and i hope it still is). The source code compiles for x86 Lazarus, but fails for x64 (the same IDE, the same compiler version).

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Lazarus support

Post by Sandra » Thu Dec 29, 2016 3:06 pm

Hello axline,

I'm reviewing the problem you are experiencing, we try to give you an answer as soon as possible.

Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

axline
Newbie
Newbie
Posts: 5
Joined: Wed Dec 14, 2016 12:00 am

Re: Lazarus support

Post by axline » Thu Feb 23, 2017 3:13 am

Dear Sandra, have you reviewed the problem? Is there any solution? I really need the x64 TeeChart for Lazarus to complete my ongoing project.

axline
Newbie
Newbie
Posts: 5
Joined: Wed Dec 14, 2016 12:00 am

Re: Lazarus support

Post by axline » Wed Mar 29, 2017 3:22 am

Dear admins, please, come up with some answers. Has this problem been reviewed? Is there a way to use TeeChart with Lazarus x64?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Lazarus support

Post by Yeray » Thu Mar 30, 2017 8:11 am

Hello,

TeeChart v2017.20 with sources compiles fine (through TeeRecompile) for Lazarus. But we find problems when we try to install the components into the IDE.
We are trying to fix it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

axline
Newbie
Newbie
Posts: 5
Joined: Wed Dec 14, 2016 12:00 am

Re: Lazarus support

Post by axline » Thu Apr 06, 2017 12:17 pm

Thank you for the news, Yeray! I've installed v2017.21 with Lazarus v. 1.6.4 X64 (fpc 3.0.2). So far, so good! The components were successfully compiled and installed into IDE (I did it directly from the IDE, without using TeeRecompile). Going to perform more tests.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Lazarus support

Post by Yeray » Fri Apr 07, 2017 6:29 am

Hello,

I'm glad to hear you could install it!
Don't hesitate to share any modification you may have done.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply