[Lazarus] Lazarus and Graphics32 library packages

Juha Manninen juha.manninen62 at gmail.com
Fri Jan 4 20:33:41 CET 2013


Graphics32 nowadays supports Lazarus and has Lazarus packages for
design- and run-time.
There is something fuzzy in Lazarus package system.

The design-time package "GR32_DSGN_Lazarus" has dependency for the
run-time package "GR32_Lazarus", which is correct IMO.
Yet, during installing "GR32_DSGN_Lazarus" and recompiling Lazarus, it says :
Unable to find file "GR32_Blend.pas".
If it belongs to your project, check search path in
Project -> Compiler Options -> Search Paths -> Other Unit Files. If
this file belongs to a package, check the appropriate package compiler
options. If this file belongs to lazarus, make sure compiling clean.
If the file belongs to FPC then check fpc.cfg. If unsure, check
Project -> CompilerOptions -> Test

"GR32_Blend.pas" is part of the run-time package and can be found
easily. Codetools find it, too.
It is possible to install the design-time package only after compiling
the run-time package manually. It should not be needed because the
dependency is set correctly.
The problem comes back every time you do a clean build for Lazarus, or
remove .ppu files for other reasons.

Tested with Graphics32 release 1.9.1 and trunk,
using Lazarus trunk on Windows and Linux+GTK2.

To test it, first load Graphics32 :
 $ svn co https://graphics32.svn.sourceforge.net/svnroot/graphics32/trunk

Then try to install

I would say this is a bug in Lazarus.
First I thought the problem was in their package. I figured I solved
it and I sent a patch to

but finally it makes no difference. I copy it below just for reference.


--- GR32_DSGN_Lazarus.lpk    (revision 2123)
+++ GR32_DSGN_Lazarus.lpk    (working copy)
@@ -7,7 +7,7 @@
       <Version Value="11"/>
         <IncludeFiles Value=".."/>
-        <OtherUnitFiles Value="..;../Packages"/>
+        <OtherUnitFiles Value=".."/>
@@ -71,7 +71,7 @@
         <UnitName Value="GR32_Dsgn_Bitmap"/>
-    <Type Value="DesignTime"/>
+    <Type Value="RunAndDesignTime"/>
     <RequiredPkgs Count="3">
         <PackageName Value="GR32_Lazarus"/>

More information about the Lazarus mailing list