Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
KH1
Newbie
Newbie
Posts: 1
Joined: Tue Nov 15, 2016 12:00 am

Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv

Post by KH1 » Wed Nov 16, 2016 12:29 pm

Using TeeChart Pro v2012/16 VCL with sources. Quickreport V6. Win10. Delphi 10.1 Berlin Arcitect, update2.

When trying to compile a project using TeeChart, and Quickreport i get a bunch of errors (Win32):

TeCanvas.pas(5692): E2010 Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanvas.TTeeCanvas'
TeCanvas.pas(8497): E2010 Incompatible types: 'TTeeCanvas' and 'TTeeCanvas3D'
.... and the list continues

Please help

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

Re: Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv

Post by Yeray » Wed Nov 16, 2016 2:31 pm

Hello,

Check the paths and the unit scope names.
If you still find problems with it, please try to reproduce the problem in a new simple project without QuickReport.
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

mpic
Newbie
Newbie
Posts: 3
Joined: Tue Jan 05, 2016 12:00 am

Re: Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv

Post by mpic » Thu Nov 17, 2016 6:29 pm

Hi,
we have the same problem here. We installed the latest version of TeeChartVCLFMXSOURCE-2016.19.exe, using Delphi XE2. After installation (including the TeeRecompile) we can use TChart without any problems in a new project. BUT if we exclude these paths

C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2016.19\Compiled\Delphi16.win32\Lib
C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2016.19\TeeTree\Compiled\Delphi16.win32\Lib

and exchange them with this paths:

C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2016.19\Source
C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2016.19\Source\VCL

from the Delphi / options/ Library / Library Path we get the following error:

[DCC Error] VCLTee.TeCanvas.pas(5692): E2010 Incompatible types: 'TeCanvas.TTeeCanvas' and 'VCLTee.TeCanvas.TTeeCanvas'
[DCC Error] VCLTee.TeCanvas.pas(8496): E2010 Incompatible types: 'TTeeCanvas' and 'TTeeCanvas3D'
[DCC Fatal Error] TeeFilters.pas(618): F2063 Could not compile used unit 'VCLTee.TeCanvas.pas'
Failed

Our test project is simply a new VCL application with just one TChart component on the form.
We would like to use the Sources for some small modifications, but we can't really use them.
You said something about paths and unit scope names. Could you explain this a litte more in detail? Anything else we can do to get compilation from sources running?
Any help appreciated.
Greetings
Christian

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

Re: Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv

Post by Yeray » Fri Nov 18, 2016 9:53 am

Hello,

Regarding the paths, take a look at the post here:
http://www.teechart.net/support/viewtop ... =3&t=15512

Regarding the unit scope names, just make sure the "VCLTee" prefix ("FMXTee" for FireMonkey projects) is present at "Project/Options/Delphi Compiler/Unit Scope Names".
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

mpic
Newbie
Newbie
Posts: 3
Joined: Tue Jan 05, 2016 12:00 am

Re: Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv

Post by mpic » Fri Nov 18, 2016 1:20 pm

Thanks a lot. It works perfect now.

Post Reply