Sign in Join

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

Mailing lists / lazarus / 2011-10

Configure build Lazarus

14 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Bart

Hi,

This seems to have changed:

Tools -> Options -> Configure build Lazarus.

Select profile: Build LCL
Click Build

Expected result: only LCL is rebuilt (as it was in r3180) Observed result: IDE is rebuilt

Lazarus r33046

I use Build LCL if I only want to rebuild the LCL, for example with some custom define.

Is the new behaviour by design or is it a bug?

Bart

Reply by email

Martin
to Bart
Bart wrote 13 lines
Select profile: Build LCL Click Build Expected result: only LCL is rebuilt (as it was in r3180) Observed result: IDE is rebuilt Lazarus r33046 I use Build LCL if I only want to rebuild the LCL, for example with some custom define. Is the new behaviour by design or is it a bug?

Design.

Just go to packages menu, open loaded packages "LCL", and rebuild from there

Reply by email

Juha Manninen
to Bart: This seems to have changed: Tools -> Options -> Configure build Lazarus. Select profile:…

2011/10/24 Bart

Show quoted text 17 lines
This seems to have changed: Tools -> Options -> Configure build Lazarus. Select profile: Build LCL Click Build Expected result: only LCL is rebuilt (as it was in r3180) Observed result: IDE is rebuilt Lazarus r33046 I use Build LCL if I only want to rebuild the LCL, for example with some custom define. Is the new behaviour by design or is it a bug?

Right, there are old build profiles left in your local configuration. I think they should be cleaned somehow automatically.

The build now works correctly (at least nobody complained). It is only possible to build IDE from that dialog. LCL will be built automatically if needed, like for any application using LCL. Thus a profile: "Build LCL" is obsolete and you should delete it. You can even delete file "miscellaneousoptions.xml" in your local config dir. Then start Lazarus and you get new default build profiles.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111024/2754af6c/attachment-0001.html>

Reply by email

Martin
to Bart: I don't like that :-( That does not work for me, due to this bug:…
Bart wrote 6 lines
> Just go to packages menu, open loaded packages "LCL", and rebuild from there That does not work for me, due to this bug: http://bugs.freepascal.org/view.php?id=19820 So, basically I'm screwed ;-)

open the package from disk, like any other package (LCL is now exactly like any other package)

Ok, the bug stops you from editing anything in the package option dilaog. But the package does obbey the options from "Tools" > "config build Laz"

So edit the options in "config build laz", as you would have in the past. "Save" the changes, open the package, click build.

Not ideal. but it's just till the bug is fixed

Reply by email

Juha Manninen
to Bart: This seems to have changed: Tools -> Options -> Configure build Lazarus. Select profile:…
I use Build LCL if I only want to rebuild the LCL, for example with some custom define.

Bart, when you add a custom define then LCL is built automatically. If you don't change anything then it is not built.
It is automatic, you don't need to pay attention to it.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111024/5ea77da8/attachment.html>

Reply by email

Bart
to Juha Manninen: 2011/10/24 Bart Right, there are old build profiles left in your local configuration. I…

Hi Juha,

The build now works correctly (at least nobody complained).

Well, i did, didn't I ;-)

It is only possible to build IDE from that dialog. LCL will be built automatically if needed, like for any application using LCL.

When investigating bug, I often rebuild the LCL with some particular define. If I change some LCL file and rebuild the app, how can I pass a new define to the LCL then (like -dVerboseStretchCopyArea )?

Show quoted text 6 lines
Right, there are old build profiles left in your local configuration. I think they should be cleaned somehow automatically. Thus a profile: "Build LCL" is obsolete and you should delete it. You can even delete file "miscellaneousoptions.xml" in your local config dir. Then start Lazarus and you get new default build profiles.

I'll do that then.

Bart

Reply by email

cobines
to Juha Manninen: Bart, when you add a custom define then LCL is built automatically. If you don't change…

2011/10/24 Juha Manninen :

Bart, when you add a?custom define then LCL is built automatically. If you don't change anything then it is not built. It is automatic, you don't need to pay attention to it. Juha

If you add a define in Configure Build Lazarus Dialog then packages with $(IDEBuildOptions) are not rebuilt until you restart IDE.

But if you add the define in lcl.lpk then it rebuilds.

cobines

Reply by email

Mattias Gaertner
to cobines
Show quoted text 8 lines
2011/10/24 Juha Manninen : > Bart, when you add a?custom define then LCL is built automatically. If you > don't change anything then it is not built. > It is automatic, you don't need to pay attention to it. > Juha If you add a define in Configure Build Lazarus Dialog then packages with $(IDEBuildOptions) are not rebuilt until you restart IDE.

Huh?
I do it this every day. I don't need to restart.
Maybe you have some old settings that interfere.
Stop the IDE, delete the miscellaneousoptions.xml file and try again.

But if you add the define in lcl.lpk then it rebuilds.

Mattias

Reply by email

cobines
to Mattias Gaertner

2011/10/24 Mattias Gaertner :

Show quoted text 9 lines
On Mon, 24 Oct 2011 16:20:36 +0200 cobines wrote: > If you add a define in Configure Build Lazarus Dialog then packages > with $(IDEBuildOptions) are not rebuilt until you restart IDE. Huh? I do it this every day. I don't need to restart. Maybe you have some old settings that interfere. Stop the IDE, delete the miscellaneousoptions.xml file and try again.

I have deleted it, didn't help.
I found it is enough to press OK in project options:

I start IDE and build a LCL-dependent project. In Configure Build Lazarus I add "-qq" (illegal option). Rebuild project - builds fine.

Restart IDE, open project, build project:
"Error: Illegal parameter: -qq"

I remove the "-qq", rebuild project :
"Error: Illegal parameter: -qq"
I open project options, don't change anything, press OK. Rebuild project - packages are rebuilt, project builds fine.

cobines

Reply by email

Mattias Gaertner
to cobines
Show quoted text 17 lines
2011/10/24 Mattias Gaertner : > On Mon, 24 Oct 2011 16:20:36 +0200 > cobines wrote: >> If you add a define in Configure Build Lazarus Dialog then packages >> with $(IDEBuildOptions) are not rebuilt until you restart IDE. > > Huh? > I do it this every day. I don't need to restart. > Maybe you have some old settings that interfere. > Stop the IDE, delete the miscellaneousoptions.xml file and try again. I have deleted it, didn't help. I found it is enough to press OK in project options: I start IDE and build a LCL-dependent project. In Configure Build Lazarus I add "-qq" (illegal option). Rebuild project - builds fine.

Fixed in svn trunk.

Show quoted text 7 lines
Restart IDE, open project, build project: "Error: Illegal parameter: -qq" I remove the "-qq", rebuild project : "Error: Illegal parameter: -qq" I open project options, don't change anything, press OK. Rebuild project - packages are rebuilt, project builds fine.

Mattias

Reply by email

Martin
to Mattias Gaertner: On Mon, 24 Oct 2011 16:20:36 +0200 Huh? I do it this every day. I don't need to restart.…
Mattias Gaertner wrote 15 lines
On Mon, 24 Oct 2011 16:20:36 +0200 cobines wrote: > 2011/10/24 Juha Manninen: >> Bart, when you add a custom define then LCL is built automatically. If you >> don't change anything then it is not built. >> It is automatic, you don't need to pay attention to it. >> Juha > If you add a define in Configure Build Lazarus Dialog then packages > with $(IDEBuildOptions) are not rebuilt until you restart IDE. Huh? I do it this every day. I don't need to restart. Maybe you have some old settings that interfere. Stop the IDE, delete the miscellaneousoptions.xml file and try again.

Actually, I can confirm that they do not always.

I opened the "config build laz" dialog, and checked one of the defines in the list (one that wasn't checked before).
"save settings"
ctrl-f9 to rebuild my project

LCL was not rebuild, despite settings had changed

Reply by email

Mattias Gaertner
to Martin
Show quoted text 9 lines
[...] Actually, I can confirm that they do not always. I opened the "config build laz" dialog, and checked one of the defines in the list (one that wasn't checked before). "save settings" ctrl-f9 to rebuild my project LCL was not rebuild, despite settings had changed

Have you tried 33068?

Mattias

Reply by email

cobines
to Mattias Gaertner: On Mon, 24 Oct 2011 17:09:40 +0200 Fixed in svn trunk. Mattias

2011/10/24 Mattias Gaertner :

Show quoted text 22 lines
On Mon, 24 Oct 2011 17:09:40 +0200 cobines wrote: > 2011/10/24 Mattias Gaertner : > > On Mon, 24 Oct 2011 16:20:36 +0200 > > cobines wrote: > >> If you add a define in Configure Build Lazarus Dialog then packages > >> with $(IDEBuildOptions) are not rebuilt until you restart IDE. > > > > Huh? > > I do it this every day. I don't need to restart. > > Maybe you have some old settings that interfere. > > Stop the IDE, delete the miscellaneousoptions.xml file and try again. > > I have deleted it, didn't help. > I found it is enough to press OK in project options: > > > I start IDE and build a LCL-dependent project. In Configure Build > Lazarus I add "-qq" (illegal option). Rebuild project - builds fine. Fixed in svn trunk.

Thanks! Works now.

cobines

Reply by email