Copyin a form from an old project to a new project lazarus / 55-TAChart ---------------------------------------------------------------------- mtanner · 2016-02-04 12:24 I have an od project A, containing a form FFF with a chart. I want to reuse this form in a new project B. Copying the file FFF.pas etc. and renaming them and including them in the new project doesn't seem to work properly. I get messages saying various TAChaer units cannot be found. What do I have to do to reuse a chart-containg form in this way? (PS I though I posted this question a few minutes agom but it hasn't shown up on to foru,.) ---------------------------------------------------------------------- wp · 2016-02-04 14:18 You have to add a requirement for the TAChart package to your new project: Project --> Project inspector --> Add --> New requirement --> select TAChartLazarusPkg from the list "Package name" ---------------------------------------------------------------------- mtanner · 2016-02-04 16:46 I thought from one of the error messages that it weas omething like tghat. The Project Inspector sdaid that package depemdency was already in, but still the error. I tried creating a chart, thinking that would drag in whatever dependencies were required. Now I'm getting a message about TAMath used by TACustomSource "incompatible ppu .... package TAChartLazarusPkg".   Thought then I'd reinstall Lazarus at latest level (1.4.4), but sytill same problem. Something seems really messed up. I'm thinking of deleting the new project and starting again, several hours work but not sure how else to proceed. ---------------------------------------------------------------------- wp · 2016-02-04 17:05 This message indicates that the compiler finds a duplicate version of the compiled TAMath unit. There should not be any TA*.ppu, TA*.o, TA*.compiled files in your project folder. Delete them. Don't add the TAChart folder to the search path of your project; using the package in the requirements is enough to find all files needed.