Recent

Author Topic: [Solved]Package does not install Component  (Read 15497 times)

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Package does not install Component
« Reply #15 on: August 17, 2018, 06:17:52 pm »
And what about this?
Quote
Did you ever play with the arrangement of icons to different palettes ("Tools" > "Options" > "Component palette")? I've seen sometimes components disappearing from the palette this way. So, please click "Restore Defaults" although this will resume your arrangement of components back to default.

Birger52

  • Sr. Member
  • ****
  • Posts: 309
Re: Package does not install Component
« Reply #16 on: August 17, 2018, 06:27:00 pm »
pw...

Win7 Home Premium

The split in two was to try to get Lazarus to accept my TLabelList  Component.
It will not when it is with other units - so I figured trying it alone would mabe give a hint of what is wrong.
But I can't find anything wrong, and it will not install alone either.

I do have things separated from Lazarus.
Someone wrote, Lazarus may findthings, it's not supposed to, if it knows where to look. That wy i moved things when recompiling Lazarus itself.

About the Registration procedures.
I actually tried to move them, as suggested by Soner earlier.
But Lazarus keep a ref to the register procedure in the units in the package registration code (minecomp.pas in the zip you sent me),
Code: Pascal  [Select][+][-]
  1. { This file was automatically created by Lazarus. Do not edit!
  2.   This source is only used to compile and install the package.
  3.  }
  4.  
  5. unit MineKomp;
  6.  
  7. {$warn 5023 off : no warning about unused units}
  8. interface
  9.  
  10. uses
  11.   LabelListContainer, LabelList, LazarusPackageIntf;
  12.  
  13. implementation
  14.  
  15. procedure Register;
  16. begin
  17.   RegisterUnit('LabelListContainer', @LabelListContainer.Register);
  18.   RegisterUnit('LabelList', @LabelList.Register);
  19. end;
  20.  
  21. initialization
  22.   RegisterPackage('MineKomp', @Register);
  23. end.                                                

And Lazarus discards changes to this file, and simply restores the code.
So if there are no Registration procedure in the individual units, compilation fails...

Your description, would include not to register the unit, but only the registration unit?
Is that what I am missing?
;)
Lazarus 2.0.8 FPC 3.0.4
Win7 64bit
Playing and learning - strictly for my own pleasure.

Birger52

  • Sr. Member
  • ****
  • Posts: 309
Re: Package does not install Component
« Reply #17 on: August 17, 2018, 06:48:35 pm »
Thank you, Thank you, Thank you....

Quote
Did you ever play with the arrangement of icons to different palettes ("Tools" > "Options" > "Component palette")? I've seen sometimes components disappearing from the palette this way. So, please click "Restore Defaults" although this will resume your arrangement of components back to default.

Tried again - packed them both in the same package, with a "registration unit" as described.
Same result.
But then the above - after my very first attempt, I found the "palette editor", and only then relized I could set them there at registration.
(Dosen't say in the tutorial - not the one I followed at least)

But resetting to default did the trick.
Will stay out of that editor always and forever....
;)
« Last Edit: August 17, 2018, 07:03:56 pm by Birger52 »
Lazarus 2.0.8 FPC 3.0.4
Win7 64bit
Playing and learning - strictly for my own pleasure.

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Package does not install Component
« Reply #18 on: August 17, 2018, 06:55:16 pm »
Will stay out of that editor always and forever....
Well, it's not that bad. I have sometimes many palettes, and, of course, the important ones are at the end... You can safely use the palette editor to rearrange the order of the palettes, i.e. move the ones that you need most often to the front such that you do not have to scroll to the end. But don't drag icons between palettes - it is working correctly for some time, but suddenly it will stop working, i.e. the dragged components will not be on any palette any more. I could imagine this happens when a package is uninstalled and is removed from from the palette.
« Last Edit: August 17, 2018, 07:01:01 pm by wp »

Birger52

  • Sr. Member
  • ****
  • Posts: 309
Re: [Solved]Package does not install Component
« Reply #19 on: August 17, 2018, 07:05:37 pm »
Well - I'm Learning Lazarus the hard way  :o
Lazarus 2.0.8 FPC 3.0.4
Win7 64bit
Playing and learning - strictly for my own pleasure.

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: [Solved]Package does not install Component
« Reply #20 on: August 17, 2018, 07:09:18 pm »
Everybody made these experiences in some way.

Birger52

  • Sr. Member
  • ****
  • Posts: 309
Re: [Solved]Package does not install Component
« Reply #21 on: August 18, 2018, 10:58:21 am »
Frustrating - but yes, I know.
Could have waited a couple of days, tho. ;)
Lazarus 2.0.8 FPC 3.0.4
Win7 64bit
Playing and learning - strictly for my own pleasure.

 

TinyPortal © 2005-2018