Page 1 of 1

Delphi XE2 error compiling package using TeeTree

Posted: Fri Oct 21, 2011 9:02 am
by 10547181
We installed TeeChart 2011 source code for XE2 of Oct, 4th and use Delphi XE2, Update 1.

When we compile a package that uses TeeTree we get the following error:

[DCC Fatal error] Unit1.pas(6): E2411 Unit TeeTree in package TeeTree2D16Tee9 refers to unit VCLTee.TeePenDlg which is not found in any package. Packaged units must refer only to packaged units

The requires section of our package is as follows:

Code: Select all

requires
  rtl,
  vcl,
  TeeTree2D16Tee9,
  TeeLanguage916,
  TeePro916,
  TeeUI916,
  Tee916;
The unit of which uses TeeTree looks like this:

Code: Select all

unit Unit1;

interface

uses
  TeeTree;

type
  TMyTree = class(TTree)

  end;

implementation

end.
Any ideas?

Re: Delphi XE2 error compiling package using TeeTree

Posted: Fri Oct 21, 2011 9:48 am
by yeray
Hello Collinor,

I've been able to prepare a simple package like the one you described. Find it attached:
test TeeTree package.zip
(8 KiB) Downloaded 3148 times
Do you see anything relevant I've missed to reproduce the problem?

Re: Delphi XE2 error compiling package using TeeTree

Posted: Fri Oct 21, 2011 1:06 pm
by 10547181
Hello Yeray,

No, you did not miss anything relevant. With your package I can reproduce the error, too.

Re: Delphi XE2 error compiling package using TeeTree

Posted: Fri Oct 21, 2011 1:35 pm
by yeray
Hello Collinor,

Please, check the paths in your IDE. In the Delphi/32-bit Windows/Library path there should be the following references:
"%TeeChartInstallationPath%\Sources\Compiled\Delphi16.iOS\Lib"
"%TeeChartInstallationPath%\TeeTree\Compiled\Delphi16.win32\Lib"
"%TeeChartInstallationPath%\Sources\Compiled\Delphi16.win32\Lib"

Re: Delphi XE2 error compiling package using TeeTree

Posted: Fri Oct 21, 2011 1:52 pm
by 10547181
Hello Yeray,

Problem resolved. I checked the Delphi library path and found some outdated Tee16 packages in path C:\Users\Public\Documents\RAD Studio\9.0\Dcp which were taken in favor of the ones in "%TeeChartInstallationPath%\TeeTree\Compiled\Delphi16.win32\Lib" and "%TeeChartInstallationPath%\Sources\Compiled\Delphi16.win32\Lib"

Thank you.

Re: Delphi XE2 error compiling package using TeeTree

Posted: Fri Oct 21, 2011 2:02 pm
by yeray
Hi,

I'm glad to hear it! :)