Page 1 of 1
Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv
Posted: Wed Nov 16, 2016 12:29 pm
by 16579592
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
Re: Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv
Posted: Wed Nov 16, 2016 2:31 pm
by yeray
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.
Re: Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv
Posted: Thu Nov 17, 2016 6:29 pm
by 16577291
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
Re: Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv
Posted: Fri Nov 18, 2016 9:53 am
by yeray
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".
Re: Incompatible types: 'VCLTee.TeCanvas.TTeeCanvas' and 'TeCanv
Posted: Fri Nov 18, 2016 1:20 pm
by 16577291
Thanks a lot. It works perfect now.