Forum > General
OnGuard example problems
IPguy:
I'm just getting started with OnGuard and am unable to the ExSelect example to compile. (or any other of the examples...)
I pulled v1.13 from the SVN and installed the package. I do see the ONGuard widgetset installed in the IDE.
With the example open, I did install the OnGuard component.
When I attempt to compile it, I get:
Fatal: Can't find unit OnGuard used by Excele1.
Suggestions?
Using win32, 0.9.31, 29671, 2.4.2
IPguy:
Bump.
Any suggestions how to debug this?
I installed a fresh copy of Laz (win32-0.9.31-29747-2.4.2 ...), and copied OnGuard 1.13 into the component directory, compiled and installed it. Again, it does show up in the IDE, but when I open a new application, place TOgMakeCodes on the new form and compile it, Lazarus complains that it cannot find "onguard".
Question: When a component is added to the IDE and a name is added to the "uses" stmt,
1) where does the IDE expect to find the newly added component, and
2) what is it looking for? just the "component".pas file?
Peter F:
IPguy,
Did you try one of the examples provided?
Cheers,
Peter
marcov:
Afaik in Lazarus, component directories are not included in the global path manually as with Delphi. Lazarus keeps directory settings per component.
However to make them active, you must create a dependancy from your project to the component.
DirkS:
--- Quote from: marcov on March 09, 2011, 09:33:27 am ---Afaik in Lazarus, component directories are not included in the global path manually as with Delphi. Lazarus keeps directory settings per component.
However to make them active, you must create a dependancy from your project to the component.
--- End quote ---
I played around with it a bit: when you drop an onguard control on a form a dependency is added, but the paths are not inherited. I noticed that the package setting is 'Design time only', which does not seem right. Setting it to 'Design time + run time' and recompiling the package solves the problem
(Alternatively you could set 'use design time packages' in Project Options / Miscellaneous, this also inherits the paths. I would call that a workaround and not a solution)
BTW: the behaviour seems to have changed in Lazarus SVN r29454. It looks as if in older revisions it *would* have compiled without change.
Gr.
Dirk.
Navigation
[0] Message Index
[#] Next page