F2063 Could not compile used unit 'Tengine.pas"

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Claus Nielsen
Newbie
Newbie
Posts: 24
Joined: Mon Feb 25, 2008 12:00 am

F2063 Could not compile used unit 'Tengine.pas"

Post by Claus Nielsen » Sun Dec 06, 2009 12:40 pm

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

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Mon Dec 07, 2009 10:23 am

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.

Claus Nielsen
Newbie
Newbie
Posts: 24
Joined: Mon Feb 25, 2008 12:00 am

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

Post by Claus Nielsen » Tue Dec 08, 2009 4:48 pm

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

Claus Nielsen
Newbie
Newbie
Posts: 24
Joined: Mon Feb 25, 2008 12:00 am

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

Post by Claus Nielsen » Tue Dec 08, 2009 5:51 pm

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

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

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

Post by Narcís » Wed Dec 09, 2009 9:13 am

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.
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

Claus Nielsen
Newbie
Newbie
Posts: 24
Joined: Mon Feb 25, 2008 12:00 am

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

Post by Claus Nielsen » Wed Dec 09, 2009 11:38 am

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)?

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

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

Post by Narcís » Wed Dec 09, 2009 1:07 pm

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.
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

Claus Nielsen
Newbie
Newbie
Posts: 24
Joined: Mon Feb 25, 2008 12:00 am

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

Post by Claus Nielsen » Wed Dec 09, 2009 5:05 pm

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

Claus Nielsen
Newbie
Newbie
Posts: 24
Joined: Mon Feb 25, 2008 12:00 am

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

Post by Claus Nielsen » Fri Dec 11, 2009 11:13 am

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

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

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

Post by Narcís » Tue Dec 15, 2009 9:50 am

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.
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

Post Reply