Re: [Lazarus] Changed Compilers Options, Run, Build versus Build All

2008-12-11 Thread Tom Verhoeff
On Thu, Dec 11, 2008 at 11:08:27PM +0100, Mattias Gaertner wrote:
> On Thu, 11 Dec 2008 22:33:21 +0100
> Tom Verhoeff  wrote:
> 
> >[...]
> > Here is another issue.  When working on a program involving multiple
> > units, it may turn out that the "Use AnsiStrings" was not set
> > consistently.
> > 
> > Students are advised to enable this globally in the Compiler Options,
> > but they sometimes forget.  Some (given/generated) units also contain
> > their own {$H+}, others don't. 
> 
> Is this a student bug or an IDE bug?

Neither, it is a fact of life :-).  It is a consequence of the fact
that units from different authors may have been made under different
assumptions.  Some units are written with the assumption that they will
be compiled with -Sh, others do not make that assumption and include {$H+}
in the source.

> > When you change Compiler Options later, and then do Run, the relevant
> > unit may not be (re)compiled, because its source code did not change.
> > One is required to do a Build All first.  But a beginner will not be
> > aware of this.
> 
> Yes, that's why the IDE adds -B when the compiler parameters changed
> (except for search path changes). 0.9.26 has this feature. 0.9.24 not.
>  
> > Is it possible to have the IDE suggest a Build All when doing Run,
> > if the Compiler Options were changed after the previous build?
> 
> It does.
> Please provide an example, where it does not work.

Students are using 0.9.24 (mostly); the disk image with software for
their laptops is prepared in the summer.  Having them upgrade later is
a cumbersome operation (and the ones that did, because they had problems
with their Lazarus installation, were bitten by various upgrade issues).

Thanks for the explanation.  This is an incentive to consider an upgrade.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Changed Compilers Options, Run, Build versus Build All

2008-12-11 Thread Tom Verhoeff
(This accidentally got posted in another thread, and hence may have
been overlooked.  I am still interested in responses.)

On Tue, Dec 09, 2008 at 01:57:37PM +0100, Tom Verhoeff wrote:
> We use Lazarus in our first year programming education (as an experiment).
>
> There are various issues that we encounter, some small, some bigger.

Here is another issue.  When working on a program involving multiple
units, it may turn out that the "Use AnsiStrings" was not set consistently.

Students are advised to enable this globally in the Compiler Options,
but they sometimes forget.  Some (given/generated) units also contain
their own {$H+}, others don't.  This may give rise to inconsistencies
(usually flagged by the compiler, but not understood by beginners).

When you change Compiler Options later, and then do Run, the relevant
unit may not be (re)compiled, because its source code did not change.
One is required to do a Build All first.  But a beginner will not be
aware of this.

Is it possible to have the IDE suggest a Build All when doing Run,
if the Compiler Options were changed after the previous build?
Or even better have a three-way global setting:

  When doing Run and the Compiler Options changed after the previous build:

*  Always do a Build All  <-- this would be better for beginners
*  Always ask to either Build or Build All (the latter as default choice)
*  Always do a Build   <-- this seems to be the current situation

Best regards,

Tom Verhoeff
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Terminal window

2008-12-09 Thread Tom Verhoeff
On Tue, Dec 09, 2008 at 07:24:38PM -0200, Felipe Monteiro de Carvalho wrote:
> On Tue, Dec 9, 2008 at 7:07 PM, Tom Verhoeff <[EMAIL PROTECTED]> wrote:
> > And for Mac OS, in my experience.  (Hence, I find the option name 
> > misleading.)
> 
> What does it do in Mac OS?
> 
> AFAIK you are wrong. This option sets a flag in the Windows executable
> to indicate that a standard I/O terminal should be created. It is
> something about the internal working of a windows executable and does
> nothing in other platforms.

When unchecked, it used to open an xterm, in which output of write/writeln
would appear.  But this may have been in the GTK version using X11.
When I try it now, it gives an error

Debugger: Exception while creating process: Executable not found:
"xterm"

But I have a wrong path somewhere ...  Maybe someone else can try as well.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Terminal window

2008-12-09 Thread Tom Verhoeff
On Tue, Dec 09, 2008 at 05:02:38PM +0100, Mattias Gärtner wrote:
> Zitat von Tom Verhoeff <[EMAIL PROTECTED]>:
> > On Tue, Dec 09, 2008 at 04:08:36PM +0100, svaa wrote:
> > >
> > > How can I get a to have the GUI program running and a terminal window 
> > > also?
> >
> > In Project > Compiler Options > Linking: uncheck "Win32 gui application"
> > (that Win32 is a legacy name).  I believe that checkmark only
> > suppresses the terminal window (but other should be able to shed
> > more light on this).
> 
> This option has no impact on linux - it is only for windows.

And for Mac OS, in my experience.  (Hence, I find the option name misleading.)

My apologies for giving bad advice concering Linux.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Terminal window

2008-12-09 Thread Tom Verhoeff
On Tue, Dec 09, 2008 at 04:08:36PM +0100, svaa wrote:
> 
> I have 0.9.26 on Ubuntu 7.10. I am writing a GUI program, since debugger 
> has problems to check the values of variables, I want to output debug 
> data with "writeln" but I  can't get a terminal with if it is not 
> console application.
> 
> How can I get a to have the GUI program running and a terminal window also?

In Project > Compiler Options > Linking: uncheck "Win32 gui application"
(that Win32 is a legacy name).  I believe that checkmark only
suppresses the terminal window (but other should be able to shed
more light on this).

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Environment options corrupted

2008-12-09 Thread Tom Verhoeff
On Tue, Dec 09, 2008 at 02:51:06PM +0100, Mattias Gärtner wrote:
> Zitat von Tom Verhoeff <[EMAIL PROTECTED]>:
> 
> > We use Lazarus in our first year programming education (as an experiment).
> >
> > There are various issues that we encounter, some small, some bigger.
> 
> OS? FPC Version? Laz Version?

Mostly Windows Vista (a few XP, a few Linux, I myself Mac OS 10.5).
Mostly Lazarus 0.9.24 (some upgraded to 0.9.26) and corresponding FPC.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Changed Compilers Options and Run (was Re: Environment options corrupted)

2008-12-09 Thread Tom Verhoeff
On Tue, Dec 09, 2008 at 01:57:37PM +0100, Tom Verhoeff wrote:
> We use Lazarus in our first year programming education (as an experiment).
> 
> There are various issues that we encounter, some small, some bigger.

Here is another issue.  When working on a program involving multiple
units, it may turn out that the "Use AnsiStrings" was not set consistently.

Students are advised to enable this globally in the Compiler Options,
but they sometimes forget.  Some (given/generated) units also contain
their own {$H+}, others don't.  This may give rise to inconsistencies
(usually flagged by the compiler, but not understood by beginners).

When you change Compiler Options later, and then do Run, the relevant
unit may not be (re)compiled, because its source code did not change.
One is required to do a Build All first.  But a beginner will not be
aware of this.

Is it possible to have the IDE suggest a Build All when doing Run,
if the Compiler Options were changed after the previous build?
Or even better have a three-way global setting:

  When doing Run and the Compiler Options changed after the previous build:

*  Always do a Build All  <-- this would be better for beginners
*  Always ask to either Build or Build All (the latter as default choice)
*  Always do a Build   <-- this seems to be the current situation

Best regards,

Tom Verhoeff
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Environment options corrupted

2008-12-09 Thread Tom Verhoeff
We use Lazarus in our first year programming education (as an experiment).

There are various issues that we encounter, some small, some bigger.

Here is one that I don't understand.  We have had a few instances
where a window consistently failed to show up:

  * Object Inspector

  * Messages

In both cases, it turned out that the saved options were to blame.
In one case, I advised to remove all user-specific Lazarus configuration
files (including environmentoptions.xml).  Restarting Lazarus, will
apparently recreate default option settings.  The window then did
show up.

In another case, I looked a little further and noticed that the window
position for the Messages window had a very large Top coordinate (as saved
in environmentoptions.xml).  So, it probably did open, but outside the
visible screen region.  I edited the options xml file, restarted Lazarus,
and the window appeared again.

As you can immagine these are quite annoying experiences (not only for
the students, but also for teachers).

Questions:

  * How can a student easily overcome this situation?
Is there e.g. a way to sanitize saved options?
Note that finding the relevant file is not trivial
(so it is harder for me explain manual santization in a FAQ).

  * How can this happen in the first place?

  * What can be done to avoid this in the future?

Our Lazarus FAQ:



Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Question about content of *.lpi file

2008-12-03 Thread Tom Verhoeff
When making available some projects for educational assignments,
I noticed some differences between very similar projects (how they
open in Lazarus, i.e. what files open in what state).

I compared their *.lpi files and saw some strange things.
I did have some struggles in getting the projects to incorporate
the intended units.

For one thing, in the Units section, there were several units
(in one case even duplicates) that were no longer used and also
were not visible in the Project Inspector (nor opened in the editor).

I would like to tidy up these project files to ensure that the
students get "clean" projects (cursor at beginning, files opened
in a standard order, no unnecessary files mentioned, etc.).

How can I find out about what information is where in *.lpi?

 says there are n units in the project

Each unit is described by a  block, with some attributes, e.g.:













I think the "invisible" units did not have a IsPartOfProject tag set.
Why are they there (not because they were open in the editor, because
they are no longer reopened?  I some cases I saw paths like
..\ProjectFolder\main.pas, which would much better be just main.pas.
This cannot easily be corrected in the Project Inspector.

I conjecture the following meanings:

  Loaded: whether the editor opens this file when opening the project
  EditorIndex: in what tab position the opened file occurs
  TopLine: what line number appears at the top of the screen
  CursorPos: position of cursor
  UsageCount: ??? << please explain

There is plenty of room for making a mess of it (especially if
you edit this manually).  Is there an easy way to write a small
utility (even better: integrate this into Lazarus) to "clean up"
a project: remove unused units, reset cursor to top of file, etc.

Also, it appears there is some additional history information (e.g.
JumpHistory) in the *.lpi file which you may not want to leak when making
the project available to others.  What is this for?

What is the Debugging section for?  It has and Exceptions section.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where does Lazarus store/look for global settings/options?

2008-11-24 Thread Tom Verhoeff
On Mon, Nov 24, 2008 at 08:03:18PM +0100, Mattias Gaertner wrote:
> On Mon, 24 Nov 2008 18:04:38 +0100 Tom Verhoeff <[EMAIL PROTECTED]> wrote:
> 
> > Where do they go under Windows and Linux?
> 
> Linux, BSD, Solaris: $HOME/.lazarus
> 
> Windows: depends on the installation. I'm not sure if GetAppConfigDir
> depends on windows version. Maybe Vincent can tell.
> 
> You can see the config directory, when starting the IDE on the console.

Is it searched in only one location, or is there a sequence of locations
that is tried?

Thanks once more,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where does Lazarus store/look for global settings/options?

2008-11-24 Thread Tom Verhoeff
On Mon, Nov 24, 2008 at 11:38:54AM +0100, Mattias Gaertner wrote:
> On Sat, 22 Nov 2008 19:51:10 +0100
> Tom Verhoeff <[EMAIL PROTECTED]> wrote:
> 
> > On my Mac, they appear to be stored in several XML files located
> > in ~/.lazarus/
> 
> Yes.
> (There are some ideas to change this to a more mac like directory.)

Where do they go under Windows and Linux?

> > If I find out, where would be an appropriate place to document
> > this in the wiki?  It is something to put in IDE documentation,
> > but I had also hoped to find it under development documentation.
> 
> IMO it should go to development documentation, because these files are
> almost only edited by the IDE itself. I never edited them myself
> manually.
> I would even say: If you need to edit/inspect them, then you found a
> bug.

OK, I'll see if I can find some time to add the information.

For the plain user, it is still useful to know where Lazarus stores
options and settings (e.g. for backup, permission issues).  Internal
details should indeed go into developer documentation.

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Where does Lazarus store/look for global settings/options?

2008-11-22 Thread Tom Verhoeff
I was unable to find (in the wiki/FAQ) where Lazarus stores its global
settings/options (the ones that are not project-specific and don't go
into *.lpi).

Where does Lazarus look for these options, in what order?
This is most likely platform dependent.

On my Mac, they appear to be stored in several XML files located
in ~/.lazarus/

If I find out, where would be an appropriate place to document
this in the wiki?  It is something to put in IDE documentation,
but I had also hoped to find it under development documentation.

To get some more detailed picture, can someone comment on each of
the following files/directories that I find in ~/.lazarus/

bin/
cleandirectorydialog.xml
codeexploreroptions.xml
compilertest.pasShould I put something in this? (it is empty)
editoroptions.xml   Environment > Editor options ...
environmentoptions.xml  Environment > Environment options ...
helpoptions.xml Help > Configure help ...
idemake.cfg
includelinks.xml
inputhistory.xml
lazarus.dci Environment > Code templates ...
lib/
miscellaneousoptions.xml
packagefiles.xmlPackages > Configure installed packages ...
projectsessions/
protocol.xml
staticpackages.inc
templates/  Tools > Project templates options

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Extending the editor's hinting functionality

2008-10-02 Thread Tom Verhoeff
I would like to throw up a suggestion for extending the editor's hinting
functionality.

We use Lazarus in a first-year introductory programming course.
One of the rules in our coding standard is that every variable
declaration needs to be accompanied by an explanatory comment.

It would be nice if the editor could show the comment associated with the
variable's declaration when you enter/point at an occurrence of that variable.

This resembles the functionality where you get the routine prototype
when entering/pointing at a routine invocation.

Of course, this could apply to other names as well (constants, types,
routines).  In fact, for routines, the prototype only shows you the
_syntactic_ specifics of that routine.  _Semantic_ specifics are typically
addressed in a comment.

It might be necessary to use a special marker (cf. Javadoc) to
help the editor recognize such comments-to-be-used-for-hinting.

This functionality would further increase the value of adding comments
to definitions and declarations.

By the way, I hired a student (Thorstin Crijns) to do some work on
improving Lazarus for educational use.  This should benefit all Lazarus
users, both aspiring beginners and experienced users.

You'll be hearing more from Thorstin in the future.

I have asked him to start with the built-in help facility and
documentation.  Other items on the list are the built-in debugger support,
and template support.  Editor features could be another thing, but he
will need more help there.

Best regards,

    Tom Verhoeff
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Question about debug evaluate/modify window

2008-10-02 Thread Tom Verhoeff
This repeats my earlier question, for which I got no replies yet, but
I would still be interested in a response (it is relevant for use
of Lazarus in our introductory programming course):

(3) The debug window to evaluate/modify expressions/variables seems
to have some limitations.  I would like to have some confirmation
that this is "on purpose" and not a bug for 0.9.24:

(3a) The expression syntax is rather restrictive, e.g. 1+2 evaluates
 fine, but 1 + 2 (i.e. with spaces) does not.  Some operators
 (notably div and mod) are not known.  Can and will this be
 extended?

(3b) The modify facility does not work at all.  Is it planned
 to be make this work?

Best regards,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

- End forwarded message -

-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

- End forwarded message -

-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Debug: evaluate/modify window not working well

2008-09-19 Thread Tom Verhoeff
I would still be interested in a response to:

(3) The debug window to evaluate/modify expressions/variables seems
to have some limitations.  I would like to have some confirmation
that this is "on purpose" and not a bug for 0.9.24:

(3a) The expression syntax is rather restrictive, e.g. 1+2 evaluates
 fine, but 1 + 2 (i.e. with spaces) does not.  Some operators
 (notably div and mod) are not known.  Can and will this be
 extended?

(3b) The modify facility does not work at all.  Is it planned
 to be make this work?

Thanks for your feedback,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

- End forwarded message -

-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] How to install local copy of RTL/FCL/LCL documentation (from CCR)?

2008-09-16 Thread Tom Verhoeff
How can one install a local copy of the documentation for RTL/FCL/LCL
in a form that is now on-line available at



How up to date is that documentation?

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dear developers, we need your help before releasing 0.9.26

2008-09-07 Thread Tom Verhoeff
On Fri, Sep 05, 2008 at 11:06:39AM +0800, Paul Ishenin wrote:
> 
> Lazarus 0.9.26 is coming. We have made all the main changes we wanted to
> make. We spent the last couple of days on bug fixing. We have fixed many
> issues, but we are not sure we have fixed all regressions. It would be 
> sad to release a version, that you cannot use.

We use Lazarus 0.9.24 (mostly under Windows Vista) in our first-year
programming education.  It replaces Delphi 7, which we used in previous
years, but which is no longer available to us.

There have been a number of problems, which are quite upsetting for
beginning users.

Some of the issues have been hard to pinpoint exactly.

I have made a FAQ for our students to assist them in getting to grips
with some problems.  See



It would be most helpful if the next Lazarus release behaves "more
predictably".  I have not yet tested 0.9.25 (for lack of time; I will
see if I can find someone to do this for me).

However, here are some of these issues:

 1.  When the Environment > Environment options ... > Window >
 "Hide IDE windows on run" is checked, it would still be convenient
 (and expected) to get those windows back when single stepping through
 a program.

 2.  When running a program that produces a run-time error, a dialog
 window comes up stating that it cannot find system.inc (or such) and
 asks if you wish to look for it.  (This happens in a default installation
 of the 0.9.24 release; apparently some path is not properly set;
 the FPC sources have been installed and are available.)

 3.  All too often Run fails (could be a Vista problem), and if one
 does not reset the debugger, the program will hang altogether.

 Resetting the debugger after each run (even if the program
 was confirmed by the IDE to be stopped) is needed (and enough) to
 guarantee "proper" operation.  But this is quite cumbersome.

 It is not clear to me what is happening here.  At this moment we
 work with console applications (no GUI).  When a program is run,
 it can happen that the command window opens, but no output appears,
 and the program seems stuck.

 4.  Similar to 2. above, the first Step Over will ask you to locate
 system.inc.  Step Over should not dive into system to stop there.

 Actually, I would not expect the first Step Into to dive in the
 system routines and attempt to stop there, either.

 Step Out would also be useful.

 5.  While stepping through a program, pointing at a variable in
 the Source Editor will not work reliably to show the variable's value.
 For some occurences of the variable it works, for others not.
 And for another variable it works for all occurrences (as expected).
 Using the Watch List is a workaround, but not convenient.

 6.  A few of the (around 80) Lazarus installations fail to work
 reliably.  Even reinstallation did not help.  Could this be
 a Vista-related problem?

 7.  Not easily solvable in the short term: the help system is
 too incomplete and erratic in coverage and requires web access
 in the default configuration.
 N.B. Our students will not have web access when doing an exam for
 this course!

There are further issues, but these were attracting most attention.

Feedback would be appreciated.

Best regards,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 0.9.25 snapshot 20080831 for Mac OS X fails to run (solved?)

2008-09-01 Thread Tom Verhoeff
On Mon, Sep 01, 2008 at 07:44:25PM +0200, Mattias Gaertner wrote:
> On Mon, 1 Sep 2008 15:55:33 +0200
> Tom Verhoeff <[EMAIL PROTECTED]> wrote:
> 
> > On Sun, Aug 31, 2008 at 11:15:05PM +0200, Mattias Gaertner wrote:
> >[...]
> > Using util /usr/bin/ld
> > An error occurred while linking 
> > Error: Error while linking.
> 
> Nothing else?
> Normally the linker writes some more information.

Nothing else!  It goes on with Fatal: There were 1 errors ...

> > This is the command that Lazarus issues:
> > 
> > ppc386 -Sca -MObjFPC -CirotR -O1 -gl -k-dylib_file
> > -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
> > -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file'
> > -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
> > -WG -vewnhiut -l -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/
> > -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/carbon/
> > -Fu/usr/local/share/lazarus/packager/units/i386-darwin/ -Fu. -oHello
> > -dLCL -dLCLcarbon hello.lpr
> > 
> > (By the way, is there a simple way to get at that command and be able
> > to copy it to the clipboard?)
> 
> See
> http://wiki.lazarus.freepascal.org/IDE_tricks#Getting_the_compiler_command_line_parameters_created_by_the_IDE

In the Carbon version for Mac OS X, you cannot copy (command-C) the
contents of the Show Options window.  You can see the options and
retype them.  But *.compiled is indeed the place to look.

By the way, I probably deleted some "older" (?) files from the directory,
and now the compile is successful!

Then I still needed to set Project Options > Application,
Use Application Bundle... (is that really needed?)

And it runs :-)

Thanks for the help.  Now onto something bigger.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 0.9.25 snapshot 20080831 for Mac OS X fails to run

2008-09-01 Thread Tom Verhoeff
On Sun, Aug 31, 2008 at 11:15:05PM +0200, Mattias Gaertner wrote:
> On Sun, 31 Aug 2008 21:47:21 +0200
> Tom Verhoeff <[EMAIL PROTECTED]> wrote:
> 
> > I installed Lazarus 0.9.25 for Carbon on Mac OS X 10.5.2 (Intel
> > machine). I downloaded today's snapshot from
> > <http://www.hu.freepascal.org/lazarus/>, i.e. 20080831; including FPC
> > and its sources (version 2.2.2), in the order FPC, FPC sources,
> > Lazarus.
> > 
> > And though Lazarus starts up, it does not work properly.  Its main
> > menu bar never appears, its icon does nog show up in the dock, its
> > windows do not respond to mouse clicks, except for clicking some of
> > the icons on them (like Open ...).  I did manage to open an existing
> > hello project, but running it failed with a complaint near 'uses ...
> > Interfaces'.
> 
> You must start the bundle (lazarus icon in finder), or the executable in
> the bundle (/usr/.../lazarus.app/Contents/MacOS/lazarus), but
> not the executable outside the bundle.

I deleted both lazarus and fpcsrc, and reinstalled fpc, fpcsrc, and lazarus.
(I don't know what to delete to uninstal fpc; anyway, the 2.2.2
i386 compiler works outside Lazarus.)

Starting the executable /usr/.../lazarus.app/Contents/MacOS/lazarus
on the command-line was still not succesful.

But doing 'open lazarus.app' in /usr/local/share/lazarus did work.
I got the menus, and the windows now responded normally.

When compiling a simple GUI hello program, it all works until

...
Using util /usr/bin/ld
An error occurred while linking 
Error: Error while linking.

I checked /etc/fpc.cfg, and it looks OK.

This is the command that Lazarus issues:

ppc386 -Sca -MObjFPC -CirotR -O1 -gl -k-dylib_file 
-k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
 -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file' 
-k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
 -WG -vewnhiut -l -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/ 
-Fu/usr/local/share/lazarus/lcl/units/i386-darwin/carbon/ 
-Fu/usr/local/share/lazarus/packager/units/i386-darwin/ -Fu. -oHello -dLCL 
-dLCLcarbon hello.lpr

(By the way, is there a simple way to get at that command and be able
to copy it to the clipboard?)

So close and yet so far away :-)

Thanks for further advice,

Tom
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus 0.9.25 snapshot 20080831 for Mac OS X fails to run

2008-08-31 Thread Tom Verhoeff
I installed Lazarus 0.9.25 for Carbon on Mac OS X 10.5.2 (Intel machine).
I downloaded today's snapshot from ,
i.e. 20080831; including FPC and its sources (version 2.2.2),
in the order FPC, FPC sources, Lazarus.

And though Lazarus starts up, it does not work properly.  Its main menu
bar never appears, its icon does nog show up in the dock, its windows
do not respond to mouse clicks, except for clicking some of the icons
on them (like Open ...).  I did manage to open an existing hello project,
but running it failed with a complaint near 'uses ... Interfaces'.

All Lazarus windows do open, it writes out a long list of debug info
lines on the terminal, it does show up under 'top' in a terminal window,
and in the Activity Monitor it is listed under the inactive processes.

What could be wrong here?

How I am supposed to start this Carbon version?  I just ran it
from /usr/local/bin in a terminal window.  I also tried with 'open lazarus'.

What happened to an earlier installed version (I had a working
0.9.24 for powerpc installed)?  It probably got overwritten; is that
problametic for the new 0.9.25?

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Renaming files within a project after creation

2008-08-22 Thread Tom Verhoeff
What is a simple way to rename files within a project (after creation).

There are several cases:

  *  The .lpi file
  *  The .lpr main program
  *  A .pas unit without form
  *  A .pas unit with .lfm form

When creating a project (e.g. by Project > Project Save As ...),
you can easily change some of the file names.

What about changing it afterwards?  Issue: consistency.
Some files may use others (either in a uses clause or via an include).
The renaming should be carried out consistently throughout the
project.  Note that the .lpi file also contains file names.

Any suggestions?

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-22 Thread Tom Verhoeff
On Fri, Aug 22, 2008 at 01:40:34PM +0200, Michael Van Canneyt wrote:
> > > 
> > > No. Any substitution must be marked as such. There are no 'special'
> > > cases, but if you want to send some patches to handle this, let me know.
> > 
> > What you mention concerns substitutions _inside_ the (text) files.  What I
> > was aiming at is substitutions of the _names_ of files being copied.
> > Assuming we have in project.ini:
> > 
> > [Project]
> > Name=Special
> > Author=Tom
> > Description=A special FreePascal program.
> > Recurse=0
> > Exclude=.lrs
> > 
> > [Variables]
> > special=Example
> > 
> > Using the template below on the left creating a new project with
> > project name 'my_new_proj' in directory 'My New Project', you get 
> > the instance on the right:
> > 
> > Template dirTransformation  Instantiated dir
> > --  
> > project.ini not copied
> > project.lpi substituted my_new_proj.lpi
> > project.lpr substituted my_new_proj.lpr
> > main.passubstituted main.pas
> > main.dfmsubstituted main.dfm
> > main.lrscopied as ismain.lrs
> > aux.pas substituted aux.pas
> > 
> > where 'substituted' means that in the contents of the file,
> > the following substitutions are carried through while copying:
> > 
> > $(ProjName) ->  my_new_proj
> > $(ProjDir)  ->  My New Project
> > $(special)  ->  Example
> > 
> > In the README for components/projecttemplates is says:
> > 
> > During the copy, the package will scan the file/directory names and the 
> > contents of the files for variable substitution: $(VARNAME) will be 
> > replaced by the value of a variable $(VARNAME).
> > 
> > This suggests that substitutions are also done for file names (as
> > well as the file contents).  But how should one name the files,
> > to get their names substituted?  Should they rather be called
> > 
> > $(ProjName).lpi
> > $(ProjName).lpr
> > 
> > This is rather awkward for a file name.  Please confirm.
> 
> I admit it is rather awkward, but it is currently so :-)
> 
> Maybe we should introduce a variable 'ProjectFileName' in project.ini, 
> which tells the templating engine which file is the project file.
> While copying files, it checks for variations of this filename 
> (stripping extension), and if it matches, the ProjName is substituted.
> 
> What do you think ? It should be very easy to add; 15 minutes tops.

I think that foremost it should be clear to the user what the
rules of the game are.  I begin to understand it.  Thanks.

The way it is now is quite flexible, but a bit awkward when
it comes to file name substitution.  For file names, the most
important case is the name of the main program (.lpi, .lpr).

Since project.ini seems to be treated specially anyway (it is
not copied), it makes sense to treat project.* also specially
and substitute $(ProjName) for 'project'.  I will then add an
example...

(I'll start a new thread on renaming files within a project,
after creation.)

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-22 Thread Tom Verhoeff
On Fri, Aug 22, 2008 at 09:25:23AM +0200, Michael Van Canneyt wrote:
> > 
> >  7. It is not clear to me what the requirements are for naming files
> > in the template, and how these names get changed when the template
> > is instantiated.  Should I put files like project.ini, project.lpi,
> > project.pas, unit1.pas in the template directory, and will
> > project.{lpi,pas} be renamed depending on the name chosen by
> > the user when instantiating the template?  That is, are there
> > more substitutions than just for the occurrences of $(varname)
> > in non-Exluded files, viz. file name changes?
> 
> No. Any substitution must be marked as such. There are no 'special'
> cases, but if you want to send some patches to handle this, let me know.

What you mention concerns substitutions _inside_ the (text) files.  What I
was aiming at is substitutions of the _names_ of files being copied.
Assuming we have in project.ini:

[Project]
Name=Special
Author=Tom
Description=A special FreePascal program.
Recurse=0
Exclude=.lrs

[Variables]
special=Example

Using the template below on the left creating a new project with
project name 'my_new_proj' in directory 'My New Project', you get 
the instance on the right:

Template dirTransformation  Instantiated dir
--  
project.ini not copied
project.lpi substituted my_new_proj.lpi
project.lpr substituted my_new_proj.lpr
main.passubstituted main.pas
main.dfmsubstituted main.dfm
main.lrscopied as ismain.lrs
aux.pas substituted aux.pas

where 'substituted' means that in the contents of the file,
the following substitutions are carried through while copying:

$(ProjName) ->  my_new_proj
$(ProjDir)  ->  My New Project
$(special)  ->  Example

In the README for components/projecttemplates is says:

During the copy, the package will scan the file/directory names and the 
contents of the files for variable substitution: $(VARNAME) will be 
replaced by the value of a variable $(VARNAME).

This suggests that substitutions are also done for file names (as
well as the file contents).  But how should one name the files,
to get their names substituted?  Should they rather be called

$(ProjName).lpi
$(ProjName).lpr

This is rather awkward for a file name.  Please confirm.

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-20 Thread Tom Verhoeff
On Wed, Aug 20, 2008 at 12:43:31PM +0200, Graeme Geldenhuys wrote:
> On 8/19/08, Tom Verhoeff <[EMAIL PROTECTED]> wrote:
> >
> >   1. What is the default location for the project templates?
> 
> Under my system (Linux) in was $HOME/.lazarus/templates/

Under Windows (which I use rarely, but our students do), it is

C:\lazarus\templates

where Lazarus itself is installed in C:\lazarus\.  The ...\templates
directory does not even exist.

> >From this I gather it defaults to wherever the Lazarus settings folder
> is plus the templates directory.  ...

Apparently not on Windows.

> >   6. When creating a New Project from a template, a dialog window appears
> > to set the project name and the directory name, and also to
> >  set additional variables.
> 
> Oh, and on my system the label captions don't fit and even if I resize
> the dialog, only the edit boxes resize, the captions always stay
> partially visible. Lazarus compiled with GTK1.

Same on Windows and Mac.

> >   7. It is not clear to me what the requirements are for naming files
> > in the template, and how these names get changed when the template
> >  is instantiated.  Should I put files like project.ini, project.lpi,
> >  project.pas, unit1.pas in the template directory,
> 
> Yes

Is this a yes to that they need to be named project.lpi, or could
it also be demo.lpi?

> > and will
> >  project.{lpi,pas} be renamed depending on the name chosen by
> >  the user when instantiating the template?
> 
> Good question!  I was wondering the same thing and it seems it doesn't
> rename the files. They are copied as-is. Which makes we wonder what
> the Project Name variable is used for?

That is exactly what I want to understand.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-19 Thread Tom Verhoeff
On Mon, Aug 18, 2008 at 05:32:17PM +0200, Michael Van Canneyt wrote:
> 
> On Mon, 18 Aug 2008, Tom Verhoeff wrote:
> 
> > Where can one find the article?  Or is this the same as the README.txt
> > in components/projecttemplates?
> 
> It's at home, I'll send it in private. I'm not allowed to publish
> everything.
> 
> The article explains how to add custom objects to the file|New dialog, and
> uses the templates package as an example.

I would appreciate receiving the article.

I am working on a sample, but I am not yet satisfied with my understanding.

Note that I will be using Lazarus this year in our first-year
programming education.  Others will view this as a test case for Lazarus.

I have a few more questions/remarks:

 1. What is the default location for the project templates?

I know the user can change it.  However, in my case, the
users are novice students.  I would like to have the least hassle
in giving them a template.  So if I can avoid the need for them
to set options, that would be preferred.  I still need to see to it
that the template gets copied to the appropriate location.

 2. I have some improvements for the README.txt in components/projecttemplates/
Can I mail a new version to you?

 3. Why are the "built-in" 'New Project' options, such as Custom Program,
not handled via the template mechanism?  An example template would
be helpful.

 4. Tools > Project template options opens a dialog window titled
Project template settings.  Naming is incosistent (options vs. settings).

 5. Do released (stable) builds of Lazarus always include
the projects templates package?  Version 0.9.24 does.
That way, the user (our students) need not be bothered with
package installation.

 6. When creating a New Project from a template, a dialog window appears
to set the project name and the directory name, and also to
set additional variables.

When I tried this, even though my template did not contain additional
variables, the dialog says "This project contains additional
variables. ...", but the list below it is empty.  Is this is a bug?
Anyway, it is confusing (especially to novices; maybe templates
are not what I want to use after all).

 7. It is not clear to me what the requirements are for naming files
in the template, and how these names get changed when the template
is instantiated.  Should I put files like project.ini, project.lpi,
project.pas, unit1.pas in the template directory, and will
project.{lpi,pas} be renamed depending on the name chosen by
the user when instantiating the template?  That is, are there
more substitutions than just for the occurrences of $(varname)
in non-Exluded files, viz. file name changes?

 8. On a quite different note, it is somewhat of a hassle that Lazarus
insists on opening a project.  Actually, after some pushing, it will
open a "plain" Pascal program file and run it.

It would be helpful to simplify this.  I want to minimize the
threshold for newcomers.  My course starts off with bare console
applications, contained in a single file (program ... begin ... end.)
Now, they are forced to create projects (though that has some
advantage, in that it saves options etc.)

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Tom Verhoeff
On Mon, Aug 18, 2008 at 04:03:39PM +0200, Michael Van Canneyt wrote:
> 
> On Mon, 18 Aug 2008, Tom Verhoeff wrote:
> 
> > How can you add your own template to be available for use when creating
> > a new project?
> > 
> > I would like to include a variation on Custom Program.
> 
> I have an article describing this, or you can use the project templates
> (which is actually what the article describes)

Where can one find the article?  Or is this the same as the README.txt
in components/projecttemplates?

Thanks for the pointers,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Tom Verhoeff
How can you add your own template to be available for use when creating
a new project?

I would like to include a variation on Custom Program.

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Updating on Mac from PPC to Intel, GTK/Carbon problems

2008-08-14 Thread Tom Verhoeff
I am trying to update my Lazarus installation on Mac OS X.

I used to have a PPC Mac running Mac OS X 10.3.9 (Panther) with Lazarus
0.9.22 and FPC 2.0.4.  That worked fine.

It also kept on working after transferring the installation to my new
Intel Mac running 10.5.2 (Leopard, through Rosetta I assume).

Now, I want to upgrade to Lazarus 0.9.24 with FPC 2.2.0 on Intel.

The problem seems to be that I need a new GTK installation
as well.  Fink does not seem to have been updated since 2005.
Can I have both PPC and Intel versions of the GTK libraries?

How can I make Fink get the Intel versions, preferably still keeping
the PPC versions?  Fink Commander does not seem to be aware
of processor architecture issues.

Fortunately, installing PPC version of Lazarus 0.9.24 works with GTK,
BUT it fails to make a Carbon app ("Error: Error while linking", because
some symbols are not found; I did
pass to the linker: -dylib_file 
'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib').
Could it be that using Carbon this way requires Intel rather than PPC?

The wiki pages do not address these issues further.  Advice appreciated,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus