Page 1 of 1

F2063 Could not compile used unit 'Tengine.pas"

Posted: Sun Dec 06, 2009 12:40 pm
by 10048408
Hi,
I get the error F2063 Could not compile used unit 'Tengine.pas" in D2009 when I try to compile my program without the "Build with runtime packages" checked. Small wonder, since I do not have the Tengine.pas (or Chart.pas etc.) in my TeeChart 8.06 for Delphi 2009 directory. Am I a non-source code customer (cannot see from your info whether I am or not)? - or did I miss something? The TeeChart components come up on the Tool Palette and everything is working fine when I check the "Build with runtime packages" before compiling.
Thank you in advance
Claus

Re: F2063 Could not compile used unit 'Tengine.pas"

Posted: Mon Dec 07, 2009 10:23 am
by Pep
Hi Claus,
I think the problem is related with the search path option of your project. Make sure you have all the TeeChart Pro VCL paths ( \lib, etc.. ) added correctly to your project options (Search path), try to post them at the first position into the list of paths. This should fix the problem.
Check also the menu -> Tools -> Environment Options -> Library -> Library Path , it should contain the \lib path of the TeeChart Pro vcl version.

I've also checked which license version you already have, it's the VCL version without source-code.

Re: F2063 Could not compile used unit 'Tengine.pas"

Posted: Tue Dec 08, 2009 4:48 pm
by 10048408
Hi Josep,
In Tools -> Options -> Environment Options -> Library - Win32 -> Library Path, I now have C:\Program Files\Steema Software\TeeChart 8.06 for Delphi 2009\Delphi12\Lib, C:\Program Files\Steema Software\TeeChart 8.06 for Delphi 2009\Delphi12\Bin, C:\Program Files\Steema Software\TeeChart 8.06 for Delphi 2009\Delphi12\Lib, C:\Program Files\Steema Software\TeeChart 8.06 for Delphi 2009\Delphi12\Include, C:\Program Files\Steema Software\TeeChart 8.06 for Delphi 2009\Delphi12\QuickReport and C:\Program Files\Steema Software\TeeChart 8.06 for Delphi 2009\Delphi12\System in addition to all the usual stuff (and listed first!).

This is pretty much all there is in the directory C:\Program Files\Steema Software\TeeChart 8.06 for Delphi 2009\Delphi12.

This is Delphi 2009, so in Project -> Options -> Resource Compiler -> Directories and conditionals, the search path is the same as in the Environment Options above.

Still, if I uncheck the "Build with runtime packages" in Project -> Options -> Resource compiler -> Packages, and try to compile I get the error: F2063 Could not compile used unit 'Chart.pas'.

- Why does the compiler want a .pas file for compiling?

regards
Claus

Re: F2063 Could not compile used unit 'Tengine.pas"

Posted: Tue Dec 08, 2009 5:51 pm
by 10048408
Dear Josep,
If you cannot see where the problem is with my F2063-error, then maybe I should upgrade From verion 8 Pro without source code to version 8 Pro with source code. Your ordering page does seem to have this option available, so how can I order this particular upgrade?
regards
Claus

Re: F2063 Could not compile used unit 'Tengine.pas"

Posted: Wed Dec 09, 2009 9:13 am
by narcis
Hi Claus,
If you cannot see where the problem is with my F2063-error, then maybe I should upgrade From verion 8 Pro without source code to version 8 Pro with source code.


Source code license should not be necessary for solving that. Most likely your Delphi is still referencing TeEngine unit included with it. Please check that no old TeeChart packages are referenced at Project->Options->Packages too.
Your ordering page does seem to have this option available, so how can I order this particular upgrade?
If you still want to do so please contact our Sales Dept. at sales at steema dot com.

Thanks in advance.

Re: F2063 Could not compile used unit 'Tengine.pas"

Posted: Wed Dec 09, 2009 11:38 am
by 10048408
Dear Narcis,
The only relevant packages at Project -> Options -> Packages are "TeeChart 8 Pro components" (in C:\Program files\CodeGear\RAD Studio\6.0\bin\DclTeePro812.bpl) and "TeeTree 2 Components" (in: C:\Program files\CodeGear\RAD Studio\6.0\bin\DclTree2D12Tee8.bpl). I copied these files to the C:\Program files\CodeGear\RAD Studio\6.0\bin directory, but can also reference them from the Teechart 8.06 for Delphi 2009\Delphi12\bin directory without any effect on the F2063-error, i.e. Delphi 2009 insists that it cannot find the Chart.pas file (or any other teechart .pas files, e.g. TeEngine.pas).
- Could the problem be related to other versions of TeeChart (I have it for Delphi 7 and for Delphi 2007 also on the same machine)?

Re: F2063 Could not compile used unit 'Tengine.pas"

Posted: Wed Dec 09, 2009 1:07 pm
by narcis
Dear Claus,

Even if you copy the packages to Delphi's "Bin" folder, are you also setting the search paths to TeeChart's "bin" and "lib" folders? That's necessary so that Delphi can find *.dcu files (Delphi compiled units files) for those required units.

Thanks in advance.

Re: F2063 Could not compile used unit 'Tengine.pas"

Posted: Wed Dec 09, 2009 5:05 pm
by 10048408
Dear Narcis,
Yes, I have the search paths to both the \bin and the \lib subdirectories of C:\Program Files\Steema Software\Teechart 8.06 for Delphi 2009\Delphi12 in my Project Options Search path and in the library paths in Tools -> Options -> Environment Options -> Delphi Options -> Library - Win32 -> Library Paths.

The component palette shows the components OK (not the standard TeeChart components in Delphi 2009).

In the Project Options, The Teechart Pro 8 Components are selected (points to C:\Program Files\Steema Software\Teechart 8.06 for Delphi 2009\Delphi12\bin\DclTeePro812.bpl).

Also in Project Options, the TeeTree2 components are selected (pointing to C:\Program Files\Steema Software\Teechart 8.06 for Delphi 2009\Delphi12\bin\DclTree2D12Tee8.bpl).

There are no Teechart components for other versions in the lists.

I tried to repeat the setup after a new install of Delphi 2009 (same results) and after removal + new installation of the TeeChart 8.06 for Delphi 2009 (same result).

It seems that Delphi is very hooked on the idea that the .pas files should be compiled (e.g. TeEngine.pas). - I have the recommended files in the Windows32 directory, and the program compiles and runs smoothly when "Build with runtime packages" is checked (which is not what I want, since I distribute the .exe to others need everything to be compiled in one file).

Any ideas?
Claus

Re: F2063 Could not compile used unit 'Tengine.pas"

Posted: Fri Dec 11, 2009 11:13 am
by 10048408
Hi,
I have now purchased the "with source code" version and set the search path to the ..\source directory. And whoopi! the whole thing compiled and now runs smoothly. For reasons unknown it seems that delphi 2009 was not happy with the compiled sources supplied with the "without source code" version.
Claus

Re: F2063 Could not compile used unit 'Tengine.pas"

Posted: Tue Dec 15, 2009 9:50 am
by narcis
Dear Claus,

Thanks for your feedback. We are glad to hear you could solve the issue at your end. We investigated the issue here and got it working here. It was most likely some configuration problem with your Delphi and/or your project.