On Fri, 1 Jul 2016, Werner Pamler wrote:

Package hell is back...

After somehow getting around the compilation issues with fpspreadsheet, not knowing how, I somehow ran into another trap with tvplanit. As you may know from the forum I am refurbishing the Turbo Power libraray VisualPlanIt for use in Lazarus.

At the moment there are three packages:

* laz_visualplanit.lpk: the main component package,
* laz_visualplanit_sqlite3.lpk: an extension with a datastore for
  sqlite3 (requires laz_visualplanit), and
* laz_visualplanit_zeos.lpk: another extension with a datastore for
  zeos database components (requires laz_visualplanit).

They share the same source folder, and compile into the same units folder - maybe this is a problem, but the same works for TAChart.

The three packages do compile fine separately. But the final step, installation into the IDE, crashes. Compilation of Lazarus stops in lazarus.lpi with the message

  "lazarus.pp(1,1) Fatal: Cannot find laz_visualplanit used by
  Lazarus, incompatible
  
ppu=D:\Prog_Lazarus\svn\lazarus-ccr\components\tvplanit\packages\lib\i386-win32\laz_visualplanit.ppu,
  multiple packages: laz_visualplanit, laz_visualplanit_sqlite3".


Then I, blindly, erase folders with compiled units, do a clean rebuild, sometimes a normal rebuild. And all of a sudden, after some time, the compilation ends sucessfully. Since I am actively working with these components, however, I run into the same situation when I have to rebuild Lazarus again. At the moment to only way to get a working system it to remove the two dependent packages, laz_visialplanit_sqlite3 and laz_visualplanit_zeos, from the installation list. Therefore, I suspect that compiling all three packages into the same folder could be the culprit.

You should never do this, it is bad practice.

I install all packages always in separate directories.

Did you try un-checking the option 'add package unit to uses section' ?

Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to