Page 1 of 1

Question about files path

Posted: Tue Oct 14, 2014 9:12 am
by 16567921
Hello,

I am using the latest source code edition of TChart (with Delphi XE7) and I was wondering which path should I add to my projects so that I can trace some TChart related functions. I installed TChart using the installer and I only have int the Library Path the compiled library like ...Sources\Compiled\Delphi21.win32\Lib. Adding the .../Sources or .../Sources/VCL gives me errors when compiling.

Regards

Re: Question about files path

Posted: Tue Oct 14, 2014 10:02 am
by yeray
Hello,

You should better add the "Sources\Compiled\Delphi21.win32\Lib" path, that contains the compiled units.
Adding the Sources\VCL should work for VCL projects and adding Sources\FMX should work for FMX projects (you may also have to add the Sources path, but always below the Sources\VCL or Sources\FMX), but note this way you'll always be recompiling TeeChart sources that isn't necessary in most cases and probably isn't optimal either.

Re: Question about files path

Posted: Tue Oct 14, 2014 11:22 am
by 16567885
I also wondered how to do that. I either did something terribly wrong, or adding the source folder isn't going to help you since the PAS files are not prefixed with stuff like "VCLTee" and the IDE isn't going to find them.

Re: Question about files path

Posted: Tue Oct 14, 2014 1:09 pm
by yeray
Hello,
jens.mertelmeyer wrote:I also wondered how to do that. I either did something terribly wrong, or adding the source folder isn't going to help you since the PAS files are not prefixed with stuff like "VCLTee" and the IDE isn't going to find them.
First note TeeRecompile, in an initial step, takes the units from Sources adds the VCLTee/FMXTee prefixes and puts them to the Sources\VCL and Sources\FMX folders.

If you are modifying TeeChart sources, the recommended way to go is by modifying the units at the Sources folder, run TeeRecompile and use the "Sources\Compiled\Delphi21.win32\Lib" library path. This way, you'll be sure to be using the same code in both VCL and FMX projects.

However, if you only use with VCL or FMX, you are free to run TeeRecompile once, directly work with the units at Sources\VCL or Sources\FMX and use that as library path.