Page 1 of 2

Lazarus support

Posted: Thu Aug 06, 2015 7:22 pm
by 16570256
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

Re: Lazarus support

Posted: Fri Aug 07, 2015 7:23 am
by narcis
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.

Re: Lazarus support

Posted: Fri Aug 07, 2015 9:58 am
by narcis
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.

Re: Lazarus support

Posted: Fri Aug 07, 2015 10:37 am
by narcis
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.

Re: Lazarus support

Posted: Fri Aug 07, 2015 5:38 pm
by 16570256
Thank you
Compiled and installed to IDE successfully.
But DesignTime Series Editor does not work. Can you fix it ?

Re: Lazarus support

Posted: Mon Aug 10, 2015 8:01 am
by narcis
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

Re: Lazarus support

Posted: Fri Dec 23, 2016 5:46 pm
by 16579747
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.

Re: Lazarus support

Posted: Tue Dec 27, 2016 11:22 am
by 10050769
Hello axline,

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

Thanks in advance

Re: Lazarus support

Posted: Wed Dec 28, 2016 11:11 am
by 16579747
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).

Re: Lazarus support

Posted: Thu Dec 29, 2016 3:06 pm
by 10050769
Hello axline,

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

Thanks in advance

Re: Lazarus support

Posted: Thu Feb 23, 2017 3:13 am
by 16579747
Dear Sandra, have you reviewed the problem? Is there any solution? I really need the x64 TeeChart for Lazarus to complete my ongoing project.

Re: Lazarus support

Posted: Wed Mar 29, 2017 3:22 am
by 16579747
Dear admins, please, come up with some answers. Has this problem been reviewed? Is there a way to use TeeChart with Lazarus x64?

Re: Lazarus support

Posted: Thu Mar 30, 2017 8:11 am
by yeray
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.

Re: Lazarus support

Posted: Thu Apr 06, 2017 12:17 pm
by 16579747
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.

Re: Lazarus support

Posted: Fri Apr 07, 2017 6:29 am
by yeray
Hello,

I'm glad to hear you could install it!
Don't hesitate to share any modification you may have done.