I use packages, I even create them, but I’m afraid I’ve never understood them. I recently installed JCL and JVCL (great packages by the way!). Put some controls on a form. Everything allright. The same form is also used in my testing application. And there the compiler asks where the jedi units are: e.g. JvExControls. Uptill now I solved this problem by adding the units to my project, but that is not feasible for the Jedi files.
It seems to be a path problem, but as far I can see Jedi set the paths Ok. What am I doing wrong?
Thanks in advance for any help.
The JVCL installer normally does this for you. You could have something weird in your computer environment that prevented the installer from doing it, or you might have messed it up, after the install. You tried the usual first thing to try, I hope, which is just re-run the Jedi JCL and then the JVCL installers? (The JVCL depends on the JCL, so it is possible that the units that you are looking for are part of the JCL, not the JVCL. )
So there are BPL files, and those are in a folder that must be located in the system’s
PATHenvironment-variable, so they can be located by the RAD Studio IDE.Secondly, there are PAS files, and those are usually found by going through the directories in your global
library path– the installer usually sets that up for you and in Jedi’s case it usually points at the DCU files instead of the PAS files — if you didn’t mess up your library path since the installer ran, then it should contain the paths of all the delphi units, including the Jedi JVCL ones, and other component vendor’s folders.Thirdly, some developers choose to set up their Project
Search Pathoption in the Project Options, for each and every individual project file they have, so that Delphi can find things.You should not only check all three things (
PATHenvironment variable if the IDE can’t load the packages when it starts up, and the others, if your code won’t build), you should also look for duplicates or extra copies.Instead of adding units to your project, try just using your Project
Search Pathoption.Update It might be because you’re explicitly recompiling jvcl/jcl units by adding them to your projects, and because you have (therefore) got Jedi JVCL DCU files also, all over the place outside the jedi Library Dcu folders, that you have a mess. Your solution is to build it all from source each time, which is a bit slower, but has the benefit of working for you, so that’s okay.