Sign in Join

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

Mailing lists / lazarus / 2008-10

How to avoid mixing components/lcl from various lazarus versions?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Luca Olivetti

I have some additional components installed.
Some of them are outside of the lazarus tree (no problem with those), and some of them are provided with lazarus but not installed by default. When I build the ide, I use lazbuild to have all my components installed e.g.:

make clean bigide LCL_PLATFORM=gtk2 && ./lazbuild -B --build-ide= --widgetset=gtk2

The problem is that lazbuild uses files ~/.lazarus directory, and there the paths for all components are absolute and point to the previous lazarus directory, so if I do the above I end up mixing components (and, yes, even the lcl) from the new and the previously compiled lazarus. Now I edit all files under ~/.lazarus to replace the old path with the new one, but sometimes I forget to do it.
Is there a simpler and/or more automated way?
Do I really need to edit all files or is it enough to edit idemake.cfg?

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007

Reply by email

Mattias Gaertner
to Luca Olivetti
Show quoted text 19 lines
I have some additional components installed. Some of them are outside of the lazarus tree (no problem with those), and some of them are provided with lazarus but not installed by default. When I build the ide, I use lazbuild to have all my components installed e.g.: make clean bigide LCL_PLATFORM=gtk2 && ./lazbuild -B --build-ide= --widgetset=gtk2 The problem is that lazbuild uses files ~/.lazarus directory, and there the paths for all components are absolute and point to the previous lazarus directory, so if I do the above I end up mixing components (and, yes, even the lcl) from the new and the previously compiled lazarus. Now I edit all files under ~/.lazarus to replace the old path with the new one, but sometimes I forget to do it. Is there a simpler and/or more automated way? Do I really need to edit all files or is it enough to edit idemake.cfg?

You can use a second config directory. The --pcp option tells the IDE and lazbuild what config directory to use. Default is $HOME/.lazarus.

Make a copy of your .lazarus (e.g. .lazarus2)
Change the paths in .lazarus2. For example via the ide:

./lazarus --pcp=~/.lazarus2

Then you can rebuild the IDE with:

./lazbuild --pcp=~/.lazarus2 -B --build-ide=

The widgetset gtk2 is the default since 0.9.27 so you don't need to give that option.

Mattias

Reply by email

Luca Olivetti
to Mattias Gaertner

En/na Mattias Gaertner ha escrit:

You can use a second config directory. The --pcp option tells the IDE and lazbuild what config directory to use. Default is $HOME/.lazarus.

Yes, but that doesn't really solve the issue: I'd like to keep the same settings (preferences, installed packages, etc.), I just want to use the components and lcl bundled with the copy of lazarus I'm compiling/using. Maybe is there a way to use relative paths instead of absolute ones? (again, just for the components under the lazarus directory, the rest are fine as they are).

Show quoted text 12 lines
Make a copy of your .lazarus (e.g. .lazarus2) Change the paths in .lazarus2. For example via the ide: ./lazarus --pcp=~/.lazarus2 Then you can rebuild the IDE with: ./lazbuild --pcp=~/.lazarus2 -B --build-ide= The widgetset gtk2 is the default since 0.9.27 so you don't need to give that option.

Old habits die hard :-)

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007

Reply by email