Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-09

How to move installed component package sources?

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

I have installed a custom component package on the palette of Lazarus. Now I realize that I did it the wrong way since the package sources are inside a project tree of many apps and other things.

I want to have the sources moved to my Lazarus installation into the config dir below lazarus like for instance packages retrieved from OLPM are.

Is there a simpler way to redirect Lazarus for the package location or do I have to this:
- Uninstall the component package
- Rebuild Lazarus without the package
- Install the package based on sources in the right place
- Rebuild Lazarus again to include the package

It takes a really long time to build Lazarus on these machines so I'd rather not do that if at all possible...
I have Lazarus on several machines (Windows, Linux)...

Bo Berglund Developer in Sweden

Reply by email

Mattias Gaertner
to Bo Berglund
Show quoted text 14 lines
I have installed a custom component package on the palette of Lazarus. Now I realize that I did it the wrong way since the package sources are inside a project tree of many apps and other things. I want to have the sources moved to my Lazarus installation into the config dir below lazarus like for instance packages retrieved from OLPM are. Is there a simpler way to redirect Lazarus for the package location or do I have to this: - Uninstall the component package - Rebuild Lazarus without the package - Install the package based on sources in the right place - Rebuild Lazarus again to include the package

Skip the second step.

Mattias

Reply by email

Bo Berglund
to Mattias Gaertner
Mattias Gaertner wrote 8 lines
> Is there a simpler way to redirect Lazarus for the package location or > do I have to this: > - Uninstall the component package > - Rebuild Lazarus without the package > - Install the package based on sources in the right place > - Rebuild Lazarus again to include the package Skip the second step.

Thanks! It worked fine. Only one Lazarus rebuild.

Bo Berglund Developer in Sweden

Reply by email

Michael Van Canneyt
to Bo Berglund: I have installed a custom component package on the palette of Lazarus. Now I realize that…
Bo Berglund wrote 18 lines
I have installed a custom component package on the palette of Lazarus. Now I realize that I did it the wrong way since the package sources are inside a project tree of many apps and other things. I want to have the sources moved to my Lazarus installation into the config dir below lazarus like for instance packages retrieved from OLPM are. Is there a simpler way to redirect Lazarus for the package location or do I have to this: - Uninstall the component package - Rebuild Lazarus without the package - Install the package based on sources in the right place - Rebuild Lazarus again to include the package It takes a really long time to build Lazarus on these machines so I'd rather not do that if at all possible... I have Lazarus on several machines (Windows, Linux)...

AFAIK:

Normally you can just open the package file in its new location. Next time when the IDE needs to be recompiled it will find the package.

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt
Show quoted text 27 lines
On Fri, 18 Sep 2020, Bo Berglund via lazarus wrote: > I have installed a custom component package on the palette of > Lazarus. Now I realize that I did it the wrong way since the > package sources are inside a project tree of many apps and other > things. > > I want to have the sources moved to my Lazarus installation into the > config dir below lazarus like for instance packages retrieved from > OLPM are. > > Is there a simpler way to redirect Lazarus for the package location > or do I have to this: > - Uninstall the component package > - Rebuild Lazarus without the package > - Install the package based on sources in the right place > - Rebuild Lazarus again to include the package > > It takes a really long time to build Lazarus on these machines so > I'd rather not do that if at all possible... > I have Lazarus on several machines (Windows, Linux)... AFAIK: Normally you can just open the package file in its new location. Next time when the IDE needs to be recompiled it will find the package.

If the package name is the same, yes.

Mattias

Reply by email