Sign in Join

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

Mailing lists / lazarus / 2011-05

Build Mode: Packages vs Project

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

My one project uses 5 packages. If I want to create a release version, must I set the Project + the 5 packages all to "release build profile" and then recompile each one?

Or is it sufficient to only change the Project's build mode to "release"? [leaving the 5 package's compiler settings as-is]

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 8 lines
Hi, My one project uses 5 packages. If I want to create a release version, must I set the Project + the 5 packages all to "release build profile" and then recompile each one? Or is it sufficient to only change the Project's build mode to "release"? [leaving the 5 package's compiler settings as-is]

There are several possibilities.
You can define a macro which is appended to all your packages and/or you can define for each package its own release mode.

http://wiki.lazarus.freepascal.org/Macros_and_Conditionals#A_release.2Fdebug_mode_for_your_project_and_all_your_packages

You need a current svn version for this.

Mattias

Reply by email

Prado, Renato R.P.
to Mattias Gaertner

Hello all,

Lazarus newbie here, Delphi experienced though...

I ran some tests and the "Strip Symbols from Executable" option in the IDE does not seem to have any effect (Win32, 0.9.30), is this option broken in the current release?

I know about strip (CLI) and upx, and both work, my question is related to the IDE only. I searched the bug tracker without success

Thanks in advance,
Renato

Reply by email

Prado, Renato R.P.
to Prado, Renato R.P.

I am facing a strange problem with Lazarus' multithreading examples: take for example the multithreadingexample1, when I run it it halts when I move the mouse over the application's form with a 'External:SIGSEGV'. In the assembler window I can see the execution point at a "repnz scas %es:(%edi),%al" instruction.

I'm running under win32, 0.9.30.

Did anyone run into that?

Reply by email

Joost van der Sluis
to Prado, Renato R.P.: Lazarus newbie here, Delphi experienced though... I ran some tests and the "Strip Symbols…
Renato wrote
I ran some tests and the "Strip Symbols from Executable" option in the IDE does not seem to have any effect (Win32, 0.9.30), is this option broken in the current release?

I'm not sure if I remember correctly, but when you specify that you want to add debug-information to your application, the strip option is ignored, because we got too much bug reports 'debugging does not work'.

Joost.

Reply by email

zeljko
to Joost van der Sluis
Joost van der Sluis wrote 8 lines
On Tue, 2011-05-24 at 15:23 -0400, Prado, Renato (R.P.) wrote: > I ran some tests and the "Strip Symbols from Executable" option in the > IDE does not seem to have any effect (Win32, 0.9.30), is this option > broken in the current release? I'm not sure if I remember correctly, but when you specify that you want to add debug-information to your application, the strip option is ignored, because we got too much bug reports 'debugging does not work'.

And that's ok IMO. Maybe we should add an warning/information dialog when both options are on.

zeljko

Reply by email

Graeme Geldenhuys
to zeljko
zeljko wrote
And that's ok IMO. Maybe we should add an warning/information dialog when both options are on.

No, simply disable the "strip symbols" option in the dialog when "debug info" is enabled. Seeing that they are both exclusive, the obvious choice would be to create two radio buttons in the dialog.

No fancy warnings are required, just a small redesign of the dialog in question should suffice.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email