1
votes

I use Delphi 10.1 Berlin Starter and have the following problem:

Is added some packages by opening them, and installing them by right-clicking on the package in the project manager and choosing "install". The compiled packages are now in the same folder as the other packages Delphi uses, so I think that there cannot be a problem with the library or search path.

The packages also added some Components that are now accessible in the tool palette. If I add one of these components to my program, Delphi automatically adds the unit name of the component to the "uses" section of the unit containing the component. But if I want to compile, Delphi throws the fatal error "could not find unit_name.pas".

How can I fix this? Does the units required to build and install the packages have to be included in a library path?

Maybe this is a compatibility problem. The packages were written in 2008 (Are Namespaces in Delphi younger?), so maybe the way the package wants to tell the compiler what to do does not work anymore.

This question might be difficult to understand (I had some problems to explain it...), so please comment, if you need more information.

1
Yes, it has to be in your library path. Did the component you installed not have installation instructions?Ken White
@KenWhite Does "it" mean the Units of the Package?ixolius
No. It is the folder where the units are located. (The path to the package's units.)Ken White
@KenWhite There were no installation instructions.ixolius

1 Answers

2
votes

Quite easy, I just had to add the units of the package to the library path (Tools->Options->Delphi Options->Library). Worked. Thanks to KenWhite.