Sign in Join

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

Mailing lists / lazarus / 2003-08

Freepascal/Lazarus newbie

9 messages · 7 people ·

Reply by email Subscribe to this list Your subscription

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

Vincent Snijders
to Kim Boulton: � I've downloaded and set up Freepascal and Lazarus and have a few questions which I…
Show quoted text 16 lines
On Tue, 12 Aug 2003, Kim Boulton wrote: > > Freepascal seems to work okay though. > > My ultimate goal is to port my exisiting Delphi applications to > MacOs. I have read that Freepascal has or will have a MacOs > compiler. Am I going the best way about this? The macos compiler is currently being worked on - very actively. The PPC CPU port works on linux, I think that the Mac OS port itself is close to working. Michael.

I don't if there is a gtk for Mac OS and how stable it is. If there is no stable gtk for MacOs, then we 'll have to write a new interface(object) for it. That could take much longer (think years, looking at the win32 interface) than porting fpc to the Mac OS.

Vincent.

Reply by email

Michael Van Canneyt
to Kim Boulton: � I've downloaded and set up Freepascal and Lazarus and have a few questions which I…
Kim Boulton wrote 5 lines
Hi, I've downloaded and set up Freepascal and Lazarus and have a few questions which I can't find the answers to anywhere. Lazarus seems very unstable on Win32, I know it's under development although I don't seem to be able to use any of its components without some sort of integer or bounds error happening. Is there something I'm missing here or is that just where Lazarus 'is' at the moment.

On Win32 it is where lazarus is... Any help there is welcome.

I can't compile, the Environment Settings won't save even if I type the paths in.

This is a known problem.

The default settings in the drop list are *nix format and the path choice buttons don't work as they expect a file, not a folder path.

Unix format: this is OK, since the compiler and lazarus understand both, although it would be better if lazarus used the default directory separator for all platforms.

Show quoted text 5 lines
Freepascal seems to work okay though. My ultimate goal is to port my exisiting Delphi applications to MacOs. I have read that Freepascal has or will have a MacOs compiler. Am I going the best way about this?

The macos compiler is currently being worked on - very actively. The PPC CPU port works on linux, I think that the Mac OS port itself is close to working.

Michael.

Reply by email

Kim Boulton

Hi,
�
I've downloaded and set up Freepascal and Lazarus
and have a few questions which I can't find the answers to anywhere.
�
Lazarus seems very unstable on Win32, I know it's
under development although I don't seem to be able to�use any of its components�without some sort of integer or bounds error happening. Is there something I'm missing here or is that just where�Lazarus 'is' at the moment.
�
I can't compile,�the
Environment�Settings�won't save even if�I type the paths in. The default settings in the drop list are *nix format and the path choice buttons don't work as they expect a file, not a folder path. �
Freepascal seems to�work okay
though.
�
My ultimate goal is�to port my exisiting
Delphi�applications to�MacOs.�I have read�that Freepascal has or will have a MacOs compiler. Am I going the best way about this?
�
�
TIA
�
Kim

Reply by email

Marc Weustink
to Vincent Snijders: On Tue, 12 Aug 2003 16:19:25 +0100 It is getting better almost every day. Attached patch…
Mattias Gaertner wrote
What about his: We add a TSelectDirectoryDialog to dialogs.pp and let the interface decide what to do. Under gtk it will simply create a normal file selection dialog and under win32 it will use the dirsel dialog.

OK, this way we can hav a native dirsel dialog on each platform. And when we can use interfaces and FCP1.1 we can replace the dirsel dialog with the native win32.shellapi dirseldialog.

Marc

Reply by email

Vincent Snijders
to Kim Boulton: � I've downloaded and set up Freepascal and Lazarus and have a few questions which I…
Show quoted text 6 lines
Hi, Lazarus seems very unstable on Win32, I know it's under development although I don't seem to be able to use any of its components without some sort of integer or bounds error happening. Is there something I'm missing here or is that just where Lazarus 'is' at the moment.

It is getting better almost every day.

I can't compile, the Environment Settings won't save even if I type the paths in. The default settings in the drop list are *nix format and the path choice buttons don't work as they expect a file, not a folder path.

Attached patch allows you to specify the compiler executable and sets the default path to the fpc default on win32. I can compile simple programs now.

Problem was, that ExtractFilePath lets the directory name end with a \ and FileExists returns false. Worked on linux though.

Shouldn't we use dirsel dialog (recently introduced for find in files) for selecting the directories? You can't select a folder in an open file dialog on windows, I think.

Vincent.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gz00032.gz
Type: application/octet-stream
Size: 575 bytes
Desc: "ofd.patch.gz"
Url : http://localhost/pipermail/lazarus/attachments/20030813/552e1d8c/gz00032.obj

Reply by email

Mattias Gaertner
to Kim Boulton: � I've downloaded and set up Freepascal and Lazarus and have a few questions which I…
Show quoted text 25 lines
On Tue, 12 Aug 2003 16:19:25 +0100 "Kim Boulton" wrote: > Hi, > > Lazarus seems very unstable on Win32, I know it's under development > although I don't seem to be able to use any of its components without > some sort of integer or bounds error happening. Is there something I'm > missing here or is that just where Lazarus 'is' at the moment. It is getting better almost every day. > I can't compile, the Environment Settings won't save even if I type > the paths in. The default settings in the drop list are *nix format > and the path choice buttons don't work as they expect a file, not a > folder path. Attached patch allows you to specify the compiler executable and sets the default path to the fpc default on win32. I can compile simple programs now. Problem was, that ExtractFilePath lets the directory name end with a \ and FileExists returns false. Worked on linux though. Shouldn't we use dirsel dialog (recently introduced for find in files) for selecting the directories? You can't select a folder in an open file dialog on windows, I think.

The dirsel dialog does not support tab and other nice features of the normal gtk file selection dialog.

What about his:
We add a TSelectDirectoryDialog to dialogs.pp and let the interface decide what to do. Under gtk it will simply create a normal file selection dialog and under win32 it will use the dirsel dialog.
After this we can replace the opendialogs in the IDE very easily.

Mattias

Reply by email

Kim Boulton
to Kim Boulton: � I've downloaded and set up Freepascal and Lazarus and have a few questions which I…

Okay,

What's a gtk?

Is there any tutorial or any information to get me started on this bearing in mind I have very little experience of Linux and have only had MacOsX installed for a few days. It all looks very confusing at the moment.

I just want to port my Delphi applications to MacOs X without having to rewrite them from scratch in C.

TIA

Kim

Show quoted text 12 lines
I don't if there is a gtk for Mac OS and how stable it is. If there is no stable gtk for MacOs, then we 'll have to write a new interface(object) for it. That could take much longer (think years, looking at the win32 interface) than porting fpc to the Mac OS. Vincent. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Marius Popa Adrian
to Kim Boulton: � I've downloaded and set up Freepascal and Lazarus and have a few questions which I…
Show quoted text 24 lines
Okay, What's a gtk? Is there any tutorial or any information to get me started on this bearing in mind I have very little experience of Linux and have only had MacOsX installed for a few days. It all looks very confusing at the moment. I just want to port my Delphi applications to MacOs X without having to rewrite them from scratch in C. TIA Kim > > I don't if there is a gtk for Mac OS and how stable it is. If there is > no stable gtk for MacOs, then we 'll have to write a new > interface(object) for it. That could take much longer (think years, > looking at the win32 interface) than porting fpc to the Mac OS. > > Vincent.

Gtk is
as for installing it on macosx i think
you need to install XFree and then gnome (uses gtk libs)

http://mrcla.com/XonX/
http://fink.sourceforge.net/pdb/section.php/gnome
http://fink.sourceforge.net/pdb/package.php/gtk+2

So you have lazarus(lcl)->gtk->Xfree
Don't ask me how to do these 'coze touched the macosx only once (at a friend)

In the future (1-2 years) you need to use native controls so you can delete XFree and gtk from equation.

Reply by email

Marco van de Voort
to Marius Popa Adrian
Show quoted text 13 lines
On Wed, 20 Aug 2003 18:11:32 +0100 "Kim Boulton" wrote: you need to install XFree and then gnome (uses gtk libs) http://mrcla.com/XonX/ http://fink.sourceforge.net/pdb/section.php/gnome http://fink.sourceforge.net/pdb/package.php/gtk+2 So you have lazarus(lcl)->gtk->Xfree Don't ask me how to do these 'coze touched the macosx only once (at a friend) In the future (1-2 years) you need to use native controls so you can delete XFree and gtk from equation.

But Mac OS X won't work yet. FPC doesn't fully work on Mac OS X yet (though the base system works under ppc now)

Reply by email