[fpc-pascal] Mac & WinCe

2008-08-12 Thread Paul
HI all,

I need to port a Delphi program to Mac and WinCe, but I've never used FPC.
What is the best version of FPC/Lazarus to use ?
Where can I find documentation ?
I also need a ZLibEx (very fast Zlib) compatible library for the Mac.
Is there a seperate mac-list ?

Thanks

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mac & WinCe

2008-08-12 Thread Paul

Thanks to all,

Paul



- Original Message - 
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Tuesday, August 12, 2008 4:14 PM
Subject: Re: [fpc-pascal] Mac & WinCe



For Windows CE the best is using the lastest add-on snapshots:

http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Using_the_snapshot_add-on_installer

The commonly used solution is cross-compiling from desktop windows.

There is also the stable 0.9.24 release for windows and the
corresponding add-on for wince cross-compiling, but there are *lot's*
of improvements since them, so I recomend the daily snapshots.

For Mac OS X using Lazarus I recommend FPC 2.2.2 with subversion
Lazarus 0.9.25 instead of the stable releases, because we now have a
fully functional native Carbon interface for Mac:

http://wiki.lazarus.freepascal.org/Carbon_Interface

Read the wiki. There is a lot of material there.

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Socket library for Mac OS X

2008-08-27 Thread Paul

Are there any socket library's available for Mac OSX with FPC?

I need Https communication

TIA

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-27 Thread Paul

Hi Tobias,

I already checked it, but the website says Windows and Linux only


Paul



- Original Message - 
From: "Tobias Giesen" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Wednesday, August 27, 2008 6:23 PM
Subject: [fpc-pascal] Re: Socket library for Mac OS X



Hello,

Synapse works extremely well with maybe only 1 change due to an
undefined symbol at compile time, which can be defined as 0.

http://synapse.ararat.cz/doku.php

Cheers,
Tobias

http://www.superflexible.com


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Socket library for Mac OS X

2008-08-27 Thread Paul

Thanks Damien,

never heared of it but looks good

thanks,

Paul


- Original Message - 
From: "Damien Gerard" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Wednesday, August 27, 2008 7:17 PM
Subject: Re: [fpc-pascal] Socket library for Mac OS X



Le Aug 27, 2008 à 1:06 PM, Paul a écrit :


Are there any socket library's available for Mac OSX with FPC?

I need Https communication

TIA




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-27 Thread Paul

Hi Michael,


It works on Mac OS X as well. It just needs a C compatible library.
I never used synapse before (only ICS with Delphi), so I don't know exactly 
what you mean with "a C compatible library"

Where can I find it ?

Paul


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-27 Thread Paul

I don't have a Mac yet :-(
I'm just investigating what my options are before I start the development.
I've asked some questions on Mac programmers forums, but they're all 
fanatics.

Only a Mac is good and Windows and Linux sucks.
For development, only Xcode/Cocoa is good.
When I asked them some system related questions like altering the 
screenresolution etc, no one could answer.

When I mentioned FreePascal, I received no answers at all anymore.
They live in a cocoon.

Paul

- Original Message - 
From: "Michael Van Canneyt" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Wednesday, August 27, 2008 8:17 PM
Subject: Re: [fpc-pascal] Re: Socket library for Mac OS X





On Wed, 27 Aug 2008, Paul wrote:


Hi Michael,

> It works on Mac OS X as well. It just needs a C compatible library.
I never used synapse before (only ICS with Delphi), so I don't know 
exactly

what you mean with "a C compatible library"
Where can I find it ?


It should be present on your system by default, if I understood it 
correctly.

But I'm not a Mac user, so you'd better ask this to an expert :-)

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Mac OS X api cals

2008-08-27 Thread Paul
Hi,

i want to port one of my Delphi applications to Mac OS X.
Before I start (don't even have a Mac yet), I need to know if it's possible at 
all.
It's a client side part of a remote admin program.
For this program, I need to control the system and get info about the system 
like:
- check if user has admin rights
- get a list of available screenresolutions and change it
- inject keypresses and stuff like that ...

I've asked in Mac-forums, but no one seems to be able to answer it.
When I mentioned FreePascal,  I've got no reply's at all anymore.
Talking about closed communities 

Does anyone knows where to get this information ?

TIA,

Paul

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Paul
Shure this works, but we have a secure solution for Windows that's used by 
enterprise clients.
Unlike all other programs available, we don't use a P2P connection between 
the computers.
All data goes through a central server and both the contol-console and 
client-console are https-clients connecting to the server.

This makes central management easy and is also very secure.
A few of our clients also use Mac's and they are asking us for a solution.
Also, a connection has to made possible immedialety by persons who don't 
even know what a computer exactly is..
So configuring a connection or setting up a VNC will be impossible: try 
asking it your grandma and you'll know why :-)


Paul

- Original Message - 
From: "Damien Gerard" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Thursday, August 28, 2008 12:01 AM
Subject: Re: [fpc-pascal] Mac OS X api cals



Le Aug 26, 2008 à 3:49 PM, Paul a écrit :


Hi,

i want to port one of my Delphi applications to Mac OS X.
Before I start (don't even have a Mac yet), I need to know if it's 
possible at all.

It's a client side part of a remote admin program.
For this program, I need to control the system and get info about  the 
system like:

- check if user has admin rights


It is an UNIX env. So admin rights is nearly meaningless.
However the `id` command should help you


- get a list of available screenresolutions and change it
- inject keypresses and stuff like that ...


Instead of reinventing the wheel you should use the Apple Remote
Desktop or a VNC client (I recommend you a SSH tunnel)

OS X Leopard provides a VNC Server
http://lifehacker.com/software/how-to/remote-control-leopard-with-tightvnc-319528.php

It is the *recommended* way



 I've asked in Mac-forums, but no one seems to be able to answer it.
When I mentioned FreePascal,  I've got no reply's at all anymore.
Talking about closed communities 

Does anyone knows where to get this information ?

TIA,

Paul




--
Damien Gerard
[EMAIL PROTECTED]

Si ces robots s'humanisaient, inversement les êtres humains se
robotiseraient-ils ?








___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Paul

Jonas,


http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts


thanks for these links, wonder why this site was not listed the mac 
developer forums ..


And he can of course also look at the source code of existing VNC  servers, 
e.g. http://sourceforge.net/projects/osxvnc/

see my other reply

thanks,

Paul


- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Thursday, August 28, 2008 12:11 AM
Subject: Re: [fpc-pascal] Mac OS X api cals



On 27 Aug 2008, at 23:01, Damien Gerard wrote:


Le Aug 26, 2008 à 3:49 PM, Paul a écrit :


i want to port one of my Delphi applications to Mac OS X.
Before I start (don't even have a Mac yet), I need to know if it's 
possible at all.

It's a client side part of a remote admin program.
For this program, I need to control the system and get info about  the 
system like:

- check if user has admin rights


It is an UNIX env. So admin rights is nearly meaningless.


Indeed. Use Authorization Services to query the system about whether
you currently have the rights to perform a particular action, and if
you don't to request the user to authorise you to do so (e.g. by
entering the login and password of an administrator user).

http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts

Instead of reinventing the wheel you should use the Apple Remote  Desktop 
or a VNC client (I recommend you a SSH tunnel)



And he can of course also look at the source code of existing VNC
servers, e.g. http://sourceforge.net/projects/osxvnc/

But since it's such low level stuff, it's likely to require
modifications for different OS versions and using an existing (and
nowadays system-provided) protocol is indeed probably the best way to
go.


Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-28 Thread Paul

Hi Jonas,

Probably because none of them use it. If you want help with Pascal 
programming on the Mac, this is where you need to be: 
http://lists.sonic.net/mailman/listinfo/mac-pascal


I know this list, but it's almost dead...

Paul


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Paul

Jonas,

A lot depends on who, how and where you asked. And developer.apple.com  is 
the very first site you get when googling for "mac programming" or  "apple 
programming". To be honest, I also thought you already knew  about that 
site, but simply did not know what exactly to look for  there (e.g., 
"authorization" vs "administrator rights")..


I have to admit that I don't know much about nix, but I got an answer this 
morning: I can order a Mac :-)
what I want to know is what authorization the user has and what he can and 
can not do.


It does not mean that your "client" can't simply enable a local VNC 
server, open a https tunnel to the server and simply tunnel VNC over  this 
connection. Of course, no one can stop you from reimplementing 
everything, but it's probably going to be quite a bit of work (as such 
low level things are quite platform specific).
Tunnuling over our server is impossible and rules out central 
control/management, both sides must act as https clients
It is indeed a lot of work: when I first started, I had completely written a 
P2P connection and running within 2 weeks.

Developing the same over a server took almost 3 years...
The server was the hardest part though: i has to handle a lot of sessions 
and has to run 24/7 without failure.
It's only restarted every 6 months for maintenance, mainly for the Windows 
based servers.


Paul


- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Thursday, August 28, 2008 9:29 AM
Subject: Re: [fpc-pascal] Mac OS X api cals




On 28 Aug 2008, at 08:11, Paul wrote:


http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts


thanks for these links, wonder why this site was not listed the mac 
developer forums ..


A lot depends on who, how and where you asked. And developer.apple.com  is 
the very first site you get when googling for "mac programming" or  "apple 
programming". To be honest, I also thought you already knew  about that 
site, but simply did not know what exactly to look for  there (e.g., 
"authorization" vs "administrator rights")..


And he can of course also look at the source code of existing VNC 
servers, e.g. http://sourceforge.net/projects/osxvnc/

see my other reply


It does not mean that your "client" can't simply enable a local VNC 
server, open a https tunnel to the server and simply tunnel VNC over  this 
connection. Of course, no one can stop you from reimplementing 
everything, but it's probably going to be quite a bit of work (as such 
low level things are quite platform specific).



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Paul




I was not suggesting to tunnel over your server, but to your server.  Your 
server already contains a control infrastructure. If you'd go  this route, 
your server would translate your proprietary protocol into  VNC commands 
and back. Depending on the complexity of your protocol,  this may be 
easier or harder than re-implementing and maintaining your  entire client 
(which, as far as I understand, is mostly equivalent to  a VNC server but 
using a different protocol) on the Mac side.


That would be almost impossible: a session is running with 8 https clients 
communicating to the server.
The server has to have certificate that can be checked continuously at the 
certificate authority.
It's a complete different model than all existing software and is mainly 
used by large enterprise clients.
Some need a very high secutity level (banks) and we even need to write 
special servers for them.

Believe me: they won't take VNC for an answer.

Paul



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Paul




I don't see the problem if you use a good and strong VPN. If was the  case 
in my last job and we worked for a bank.


Probably not if properly setup on both sides by IT personnel.

But what if you want a 100% save connection with someone that has never seen 
a computer in Zimbabwe, completely central managed for control within 10 
seconds passing every firewall ?

Most of our clients came to us for the latter and never looked back.
If needed, our enterprise clients can lock special features or instructions 
passing the server for particular sessions, automatically and centrally 
managed..

Actions can be limited per admin console.
Vnc will work in most cases, but not as secure and certainly not thru every 
firewall without user intervention.
Also, the features you can build in if you have complete control are 
unlimited.



Paul






___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Paul



It's a special breed of client...

Michael.



No need to tell me, but they are not the only ones.
Our largest client (car manufacturer)  is even worse...


Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-28 Thread Paul

Hi Luca,

I've used ICS a lot.
It's a very good library, but only for Delphi.

Synapse doesn't work with FPC on Mac though, only on Windows and Linux.
Same for Indy.
So I'll try with lNet pointed by Damien.

thanks,

Paul


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-28 Thread Paul
I've asked the Synapse list and since Lukas is answering on the list but got 
no answer, I assumed it wouldn't work.

It's also listed on his website/l only Windows and Linux.

What has to changed to use it with Mac OS X then ?

TIA,

Paul



- Original Message - 
From: "Mattias Gaertner" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, August 28, 2008 8:31 PM
Subject: Re: [fpc-pascal] Re: Socket library for Mac OS X



On Thu, 28 Aug 2008 20:16:03 +0200
"Paul" <[EMAIL PROTECTED]> wrote:


Hi Luca,

I've used ICS a lot.
It's a very good library, but only for Delphi.

Synapse doesn't work with FPC on Mac though, only on Windows and
Linux. Same for Indy.
So I'll try with lNet pointed by Damien.


I use Synapse on Mac since two years.

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-28 Thread Paul

Ok thanks,

I'll try it also,

I'm still waiting for my Mac though, so for the moment I can't test anything 
at all :-(


Paul



- Original Message - 
From: "Mattias Gaertner" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, August 28, 2008 9:44 PM
Subject: Re: [fpc-pascal] Re: Socket library for Mac OS X



On Thu, 28 Aug 2008 20:57:22 +0200
"Paul" <[EMAIL PROTECTED]> wrote:


I've asked the Synapse list and since Lukas is answering on the list
but got no answer, I assumed it wouldn't work.


He has no Mac so he can not test it.



It's also listed on his website/l only Windows and Linux.


No one tested it yet carefully.
I only use some ftp and http things. So maybe some things don't work.



What has to changed to use it with Mac OS X then ?


Not much. It uses the FPC socket unit which exists on many platforms.
In my old version I had to replace the 'IFDEF Linux' with 'IFDEF Unix'
and to add a few 'libc' calls.
Maybe the new version has fixed that.


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Paul
However, as a bank, they only trust on themselves. And they like to  
reinvent a broken wheel :)


exactly :-)

they also like many custom features ..

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-29 Thread Paul
I used Indy also without problems, so I don't mind blocking, but it needs to 
run within a thread if you don't want the gui blocked .
Not promoting ICS here, but with ICS you can use blocking an non-blocking 
together.

That's why I mostly use ICS with Delphi.
Never used Synapse before, don't know how good it is either with SSL (which 
I always need).


but it's time to get testing : I just receive my iMac !
I'm gonna "play" with it first this weekend and then install FPC/Lazarus (at 
least try to install...)


Paul


- Original Message - 
From: "Luca Olivetti" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Friday, August 29, 2008 9:29 AM
Subject: Re: [fpc-pascal] Re: Socket library for Mac OS X



En/na Paul ha escrit:

Hi Luca,

I've used ICS a lot.
It's a very good library, but only for Delphi.


Yes, I'm not arguing that. I was only remarking that ICS uses a different 
model than indy/synapse.
See, e.g., sections "Indy is Blocking" and "Blocking is NOT Evil" in 
http://www.indyproject.org/docsite/html/IntroIndy.html


Bye
--
Luca

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Mac OS X api cals

2008-08-30 Thread Paul


Wow, exactly the things I need.
I remember that there is a tool available to convert C-headers to pascal 
(I'm not a great C-fan)

Anyone knows what it is ?
(Sorry for asking all this questions, but I've been thinking to use FPC for 
a long time, but never came to do it.

I've been reading the messages on list for a while though.
I need to install it on the Mac first, so probably, I'll be asking some more 
for the installation...)


thanks,

Paul



- Original Message - 
From: "Damien Gerard" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Friday, August 29, 2008 11:18 PM
Subject: Re: [fpc-pascal] Mac OS X api cals



Le Aug 29, 2008 à 10:55 PM, Damien Gerard a écrit :



Le Aug 28, 2008 à 10:55 PM, Paul a écrit :

However, as a bank, they only trust on themselves. And they like  to 
reinvent a broken wheel :)


exactly :-)

they also like many custom features ..



Just in case you really really want to remake the world, here is a  link 
which may help you :
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/QuartzDisplayServicesConceptual/Articles/MouseCursor.html#/ 
/apple_ref/doc/uid/TP40004269


http://developer.apple.com/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html#/
/apple_ref/c/func/CGDisplayModelNumber


--
Damien Gerard
[EMAIL PROTECTED]

Si ces robots s'humanisaient, inversement les êtres humains se
robotiseraient-ils ?








___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] FPC 2.3.1 on Mac OS X?

2008-08-30 Thread Paul

Hi,

I've read that there are some issues with FPC 2.2.0 on Mac OSX.
Is it save to install version 2.3.1 already ?

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Installing on Mac OS X

2008-08-30 Thread Paul

Hi all,

I have installed FPC 2.2.2 and Lazarus, both "Installed ok".
I'm shamed to say this, but I can't even find the applications. (first time 
apple user)  :-(
The only thing I found is in folder Developer\Documentation\Free Pascal 
Compiler\ ...pdf

Did I do something wrong ?

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-08-31 Thread Paul




You did not read the file "Getting Started.rtf" on the installation  disk 
image, nor the "Quick start - Mac OS X/Darwin" of the file  ReadMe.txt in 
the same location.




I printed an read it prior to installing.
I've asked a collegue to come and check it, but he can't get it running 
either.

We couldn't figure out the difference between methods 1 and 2.
It should be installed though: entering fpc in Terminal shows it
We're both Windows-only developers though...

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-08-31 Thread Paul

I had installed Lazarus also, but I can't find it either.
I'll need to buy a book 'using Mac OS/X' first, the doc shipped with the 
iMac are .. nothing.
Maybe there is a userguide.pdf available, but studying from a screen is not 
my kind of thing.


Paul

- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Sunday, August 31, 2008 2:15 PM
Subject: Re: [fpc-pascal] Installing on Mac OS X




On 31 Aug 2008, at 12:57, Paul wrote:

You did not read the file "Getting Started.rtf" on the  installation 
disk image, nor the "Quick start - Mac OS X/Darwin"  of the file 
ReadMe.txt in the same location.


I printed an read it prior to installing.
I've asked a collegue to come and check it, but he can't get it  running 
either.


FPC is just a compiler, like dcc.exe. "Getting it to run" involves  typing 
"fpc" followed by a source file.



We couldn't figure out the difference between methods 1 and 2.


Method 1 is what you have done. Method 2 is if you are using fink  (which 
you aren't, unless you downloaded and installed it).



It should be installed though: entering fpc in Terminal shows it


This means that you got FPC up and running.


We're both Windows-only developers though...


As for Lazarus, it is installed in a completely non-standard location  for 
a GUI app: /usr/local/share/lazarus.app (if I remember correctly).  It 
would be better if it were installed either in /Applications or / 
Developer/Applications instead, so you can find it like any other 
application. Another useful addition would be for its installer to  open 
up the containing folder after it's installed (by adding a  postflight 
script with the "open" command), so you don't have to go  hunting for it.


For help with Lazarus specifically you may want to use the Lazarus  list 
though: http://www.lazarus.freepascal.org/mailman/listinfo/ lazarus (but 
you can ask here as well).



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-08-31 Thread Paul

Ok thanks,

In the Finder, type cmd-shift-g (or menu Go and then "Go to  Folder..."), 
and type /usr/local/share/lazarus. You should find the  Lazarus 
application there. The reason that you don't find stuff  located there by 
default via the GUI (you can use an advanced search  to also search those 
locations), is that regular applications are not  supposed to be installed 
there. Only Unix-based stuff lives there  normally, and people using that 
normally use the command line.


I get an error though:
Library not loaded: /sw/lib/libglib-1.2.0.dylib
Are there any other packages to install then ?

the Unix-underpinnings of Mac OS X would certainly be useful if you  have 
no prior Linux/Unix-experience.


which I don't have at all.
I need it for just one application for the moment, maybe later others will 
follow.
But most likely, I'll need to convert that application to 
WinCE/Symbian/Linux first

The reason I want to use FPC/Lazarus.


Paul


- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Sunday, August 31, 2008 2:42 PM
Subject: Re: [fpc-pascal] Installing on Mac OS X




On 31 Aug 2008, at 13:30, Paul wrote:


I had installed Lazarus also, but I can't find it either.


In the Finder, type cmd-shift-g (or menu Go and then "Go to  Folder..."), 
and type /usr/local/share/lazarus. You should find the  Lazarus 
application there. The reason that you don't find stuff  located there by 
default via the GUI (you can use an advanced search  to also search those 
locations), is that regular applications are not  supposed to be installed 
there. Only Unix-based stuff lives there  normally, and people using that 
normally use the command line.


I'll need to buy a book 'using Mac OS/X' first, the doc shipped with  the 
iMac are .. nothing.
Maybe there is a userguide.pdf available, but studying from a screen  is 
not my kind of thing.


Such books are unlikely help you with getting Lazarus running, as  Lazarus 
does not (yet) behave like any other Mac app in many respects  (it's 
currently a hybrid combining various Windows, Unix and some Mac 
conventions in different areas). That said, a book that focusses on  the 
Unix-underpinnings of Mac OS X would certainly be useful if you  have no 
prior Linux/Unix-experience.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-08-31 Thread Paul


It's probably best to install a Lazarus snapshot from 
http://www.hu.freepascal.org/lazarus/
 instead of Lazarus 0.9.24(which you have now). They do not have any 
external dependencies anymore (and reportedly many other enhancements  as 
well).


This needs fpc and fpcsrc.
Is fpcsrc needed by default (i did not install it), so this may be the 
problem I have now ?


It's probably indeed easier first port it to WinCE (since that's done 
using the Win32 version of Lazarus) to just get used to the Lazarus  IDE 
and the FPC compiler. Next up is probably Linux since Lazarus has  existed 
for quite a bit longer there than on Mac OS X, and finally Mac  OS X.


You're right, but it's not my decision and I have to do as I'm told

Paul

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-08-31 Thread Paul
Now I get "Free Pascal compiler not found" when Lazarus starts although it 
exists.


Paul


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-09-01 Thread Paul

/usr/local/bin/ppc386
it'wasn't listed in the dropdown box.
I closed Lazarus (still open from yesterday) and now I can't find lazarus 
anymore.
I understood that I have to add the directories manually in a console 
application or terminal, a return to the DOS age.

I need to get a book using OS X first, because this leads to nowhere.
It won't be before weekend though.
Anyway, while Lazarus was open, I saw bugs in the editor: the last character 
of each line was written over the previous character.

Form = class(TFor) instead of Form=class(TForm)
en; instead of end;
Looks like a bug ..

Paul


- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Monday, September 01, 2008 11:02 AM
Subject: Re: [fpc-pascal] Installing on Mac OS X




On 31 Aug 2008, at 18:52, Paul wrote:

Now I get "Free Pascal compiler not found" when Lazarus starts  although 
it exists.


Check the "Compiler path" in Environment->Environment Options. It  should 
read something like /usr/local/bin/ppc386



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-09-01 Thread Paul

Ok Jonas,

that solved at least a few items.
Lazarus is complaining about fpcsrc files, which I didn't install.
I installed FPC2.2.2 and Lazarus only.
So I guess I have to go and install the source now.

thanks,

Paul

- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Monday, September 01, 2008 3:15 PM
Subject: Re: [fpc-pascal] Installing on Mac OS X




On 01 Sep 2008, at 13:58, Paul wrote:


/usr/local/bin/ppc386
it'wasn't listed in the dropdown box.


You can type it in. I don't know what exactly is listed in the default  
dropdown menu and why.


I closed Lazarus (still open from yesterday) and now I can't find  
lazarus anymore.


Type cmd-shift-g in the Finder. In the dialog box that appears, type / 
usr/local/share/lazarus. You'll find the application there. You can  
create an alias to it (shortcut in Windows terms) by holding down cmd  
and option (= cmd and alt) and dragging the Lazarus application icon  
anywhere you want. Then you won't have to remember its installation  
location anymore when you want to use it again.


I understood that I have to add the directories manually in a  
console application or terminal,

a return to the DOS age.


No, you don't, except if you want to the command line stuff. And DOS  
was actually a partial imitation of Unix, not the other way around.



I need to get a book using OS X first, because this leads to nowhere.


As I said, it won't help you in particular with these issues, because  
Lazarus is not behaving like an OS X app at this time.



It won't be before weekend though.
Anyway, while Lazarus was open, I saw bugs in the editor: the last  
character of each line was written over the previous character.

Form = class(TFor) instead of Form=class(TForm)
en; instead of end;
Looks like a bug ..


It's because Lazarus by default selects a variable rather than a fixed  
width font, and its editor cannot deal with that (at least the Carbon  
one can't). I believe this was fixed in more recent versions, but if  
you first started an older version it probably stored the font name in  
the preferences.


To change it to a properly displayed font, go to Environment->Editor  
Options, click on the Display tab and set it to Monaco (if you type  
the name in manually, make sure you capitalise it like that). There  
does not yet appear to be an option to disable anti-aliasing though.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-09-01 Thread Paul

Ok,

placing it all in the /Developer/ folder seems more logical to me.
FPC should do the same imho (for Mac OS X).
Are you writing this installer or is this a joint effort ?

Paul

- Original Message - 
From: "Mattias Gärtner" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Monday, September 01, 2008 4:00 PM
Subject: Re: [fpc-pascal] Installing on Mac OS X



Zitat von Paul <[EMAIL PROTECTED]>:


Ok Jonas,

that solved at least a few items.
Lazarus is complaining about fpcsrc files, which I didn't install.
I installed FPC2.2.2 and Lazarus only.
So I guess I have to go and install the source now.


FYI:
I want to improve a few things in the lazarus installer to make paths and
defaults more convenient. I hope to find some time this week.


Mattias

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-09-01 Thread Paul

Ok,

but I give it up for the moment.
I can't find any files at all, just downloaded fpcsrc, but I can't find it 
anywhere.

Cant find it Mac help also.
I need a book first ...
So it's something for next week

thanks,

Paul


- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Monday, September 01, 2008 4:40 PM
Subject: Re: [fpc-pascal] Installing on Mac OS X




On 01 Sep 2008, at 15:32, Paul wrote:


placing it all in the /Developer/ folder seems more logical to me.
FPC should do the same imho (for Mac OS X).


FPC is a unix command line application. Those belong under /usr/local/ 
(it's the reason of existence for that hierarchy). Putting it under / 
Developer would not make it any easier to use, since /Developer (or / 
Developer/fpc/usr/bin or so) is not in the default command line path 
either, and there is not a single double-clickable application in the  Mac 
OS X FPC distribution (well, none that does anything useful when  you 
execute it like that anyway).



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-09-01 Thread Paul

thanks Jonas,

but this works only when you know were to find it.
I can't find them with Finder and that's where I should find it.
It's too irritating for me now, and therefore I need to learn Mac OS X 
first.
I know myself, and if it gets too irritating, changes are that I will stop 
for good with the Mac.

And since documentation shipped with the iMac is zero, I need a book first.

Paul


- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Monday, September 01, 2008 5:12 PM
Subject: Re: [fpc-pascal] Installing on Mac OS X




On 01 Sep 2008, at 16:00, Paul wrote:


but I give it up for the moment.
I can't find any files at all, just downloaded fpcsrc, but I can't  find 
it anywhere.


What can you not find? The downloaded file, or the files it installed? 
The downloaded file is probably in the downloads folder in your home 
directory (or in Safari, choose Window->Downloads and click on the 
magnifying glass next to the file).


The files it installed are again somewhere under /usr/local, probably.  In 
the installer, you can choose File->Show Files to see where it puts 
everything (ignore the "." at the start of the path names).



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul

I want to uninstall and reinstall fpc and lazurus.
My current installation is useless.
I found the steps on Wiki, but I used the docs on Wiki to install them and 
it totally went wrong.


thanks,

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul


- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Tuesday, September 02, 2008 11:08 AM
Subject: Re: [fpc-pascal] Best method to uninstall fpc and lazarus




On 02 Sep 2008, at 09:05, Paul wrote:


I want to uninstall and reinstall fpc and lazurus.
My current installation is useless.
I found the steps on Wiki, but I used the docs on Wiki to install  them 
and it totally went wrong.


The uninstall steps on the wiki at 
http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal 
are correct. I just went over them and changed them so they are by 
default for FPC 2.2.2. Make sure you also remove the .lazarus  directory 
in your home directory as described at the end. I guess most  of your 
problems are related to that one in fact.


When you install next time, I would recommend not to install Lazarus 
0.9.24 first and to go directly with 0.9.25. As for FPC itself, please 
use the official installer from http://www.freepascal.org and not the  one 
from http://www.hu.freepascal.org/lazarus, because I believe that  at one 
point in time the latter did not create a default FPC  configuration file 
(I don't know whether this has been fixed in the  mean time).


This means that it only works (worked) if you previously already 
installed an FPC release and did not remove its configuration file  (but 
you will remove it by performing the uninstallation steps  above).  The 
reason is that FPC configuration files are most of the  time compatible 
between different versions, because all paths include  variables which are 
replaced with the currently used FPC version.


It's no problem to use the fpcsrc package from that page (or to  install 
the fpc-2.2.2 package from that page over an existing install  of FPC).



Jonas

PS: uninstalling stuff uninstalled using the default Mac OS X  installer 
/is/ unnecessarily hard and non-intuitive at this point. I  have no idea 
why after all this time Apple still have not added a  simple uninstall 
option. The only upside to this is that developers  shy away as much as 
possible from using an installer, and instead opt  (where possible) for 
drag-n-drop installations (whereby "uninstall" is  reduced to "delete this 
folder").

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul
The uninstall steps on the wiki at 
http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal


rm -fv $bin/ppcppc  shows "permission denied"
Didn't test all subsequent items


Paul

- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Tuesday, September 02, 2008 11:08 AM
Subject: Re: [fpc-pascal] Best method to uninstall fpc and lazarus




On 02 Sep 2008, at 09:05, Paul wrote:


I want to uninstall and reinstall fpc and lazurus.
My current installation is useless.
I found the steps on Wiki, but I used the docs on Wiki to install  them 
and it totally went wrong.


The uninstall steps on the wiki at 
http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal 
are correct. I just went over them and changed them so they are by 
default for FPC 2.2.2. Make sure you also remove the .lazarus  directory 
in your home directory as described at the end. I guess most  of your 
problems are related to that one in fact.


When you install next time, I would recommend not to install Lazarus 
0.9.24 first and to go directly with 0.9.25. As for FPC itself, please 
use the official installer from http://www.freepascal.org and not the  one 
from http://www.hu.freepascal.org/lazarus, because I believe that  at one 
point in time the latter did not create a default FPC  configuration file 
(I don't know whether this has been fixed in the  mean time).


This means that it only works (worked) if you previously already 
installed an FPC release and did not remove its configuration file  (but 
you will remove it by performing the uninstallation steps  above).  The 
reason is that FPC configuration files are most of the  time compatible 
between different versions, because all paths include  variables which are 
replaced with the currently used FPC version.


It's no problem to use the fpcsrc package from that page (or to  install 
the fpc-2.2.2 package from that page over an existing install  of FPC).



Jonas

PS: uninstalling stuff uninstalled using the default Mac OS X  installer 
/is/ unnecessarily hard and non-intuitive at this point. I  have no idea 
why after all this time Apple still have not added a  simple uninstall 
option. The only upside to this is that developers  shy away as much as 
possible from using an installer, and instead opt  (where possible) for 
drag-n-drop installations (whereby "uninstall" is  reduced to "delete this 
folder").

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-09-02 Thread Paul

Finder. I find that *very* annoying too. Use the command line to find
what you need. I think it's located in /Application/Utilities/Terminal
or something similar


Yes, as I mentionted before, it feels like returning to the DOS age.
If and only if I get FPC /lazarus running, I hope it's the only application 
I have to write for the mac...


Paul


- Original Message - 
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Tuesday, September 02, 2008 12:55 PM
Subject: Re: [fpc-pascal] Installing on Mac OS X



On Mon, Sep 1, 2008 at 12:26 PM, Paul <[EMAIL PROTECTED]> wrote:

I can't find them with Finder and that's where I should find it.
It's too irritating for me now, and therefore I need to learn Mac OS X
first.


Yes, they hide the unix directories, so you can't see them with
Finder. I find that *very* annoying too. Use the command line to find
what you need. I think it's located in /Application/Utilities/Terminal
or something similar

then navigate using unix commands:

cd /usr/local/share/
ls -l

I not a big fan of this approach which treats the users as idiots.
There are some ideas here about how to show the unix directories in
finder. I never tested them myself, but certainly will:

http://forums.appleinsider.com/showthread.php?t=35034

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-09-02 Thread Paul

The terminal is an excelent tool once you learn how to use it.


So is cmd on Windows, but it's all but user friendly and there should be 
more user friendly solutions anno 2008 imho

But his is OT here.

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul


The uninstall steps on the wiki at 
http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal


I'm getting doubts about the Mac now, it opens perfectly with IE on Windows, 
but gives a blank text on Safari, only the menu on the right side is 
visible.

I will type them manually.
I have no intention to connect the Mac with my network anymore.

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul




"You can copy and save the commands below to file uninstallLaz.sh and  
run it if you need to uninstall Lazarus and Free Pascal. You can  
usually install newer versions of Lazarus and Free Pascal over older  
versions, but as with most software it's not a bad idea to clean out  
everything before you install a newer version. This list of commands  
should also give you a sense of where the various pieces of Lazarus  
and Free Pascal are located."


[ commands ]

To run this script, change to the directory where it's stored and enter:

 chmod +x uninstallLaz.sh
 sudo ./uninstallLaz.sh

Then enter your password when prompted.




Just did this, no error reported  but Lazarus still starts up ...

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul




sudo rm -f /usr/local/bin/ppcppc


what to use for:
rm -r $share/lazarus ...
rm -r $lib/fpc
rm -r $receipts/lazarus-*.pkg ... ?

Paul



--
Damien Gerard
[EMAIL PROTECTED]

Si ces robots s'humanisaient, inversement les êtres humains se
robotiseraient-ils ?








___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul
However, as already said, all is explained here 
http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal


I have a printed copy here and have executed all commands manually.(no 
errors displayed)


Still, Lazarus starts,  except it cant find fpc






___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul



Use spotlight (Cmd+Space) to find lazarus, tell us where you found it
and delete it.

Mattias


Seems nothing was deleted at all , including fpc ... :-(
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul

Yes, and entered them each seperately in terminal also.

Paul

- Original Message - 
From: "Mattias Gaertner" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, September 02, 2008 4:48 PM
Subject: Re: [fpc-pascal] Best method to uninstall fpc and lazarus



On Tue, 2 Sep 2008 16:29:49 +0200
"Paul" <[EMAIL PROTECTED]> wrote:



> Use spotlight (Cmd+Space) to find lazarus, tell us where you found
> it and delete it.
> 
> Mattias


Seems nothing was deleted at all , including fpc ... :-(


Have you put all commands into a script and executed the script?

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul
I can't post them anymore, I closed all applications and switched of  the 
computer (incl power - had to move the pc)
I didn't any errors though and needed to enter my password each time. 
(luckely,  I left it empty for the moment)

I also removed many of the files manually, but propably not all.
I will search for other files also (config's ..)

Anyways, I still don't know where it went wrong: all I did was install 
fpc2.2.2 with the dmg and the same with Lazarus (snapshot)

I did not install the source files then, maybe that's a problem.
None of the fpc folders were listed in the Lazarus environment settings.

Paul

- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Tuesday, September 02, 2008 5:35 PM
Subject: Re: [fpc-pascal] Best method to uninstall fpc and lazarus




On 02 Sep 2008, at 16:31, Mattias Gaertner wrote:


On Tue, 2 Sep 2008 17:13:11 +0200
"Paul" <[EMAIL PROTECTED]> wrote:


Yes, and entered them each seperately in terminal also.


The commands do not work in terminal (because the variables are not
assigned with export). They work only in a script.


No, that should also work in terminal:

firefly:~ jmaebe$ a=5
firefly:~ jmaebe$ echo $a
5
firefly:~ jmaebe$

The reason it won't work in terminal is because the sudo's are missing 
(but then you should get "permission denied" errors, even with rm -f  --  
except if the directories don't exist because you entered a wrong  path, 
in which case nothing will be printed).



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Paul
That is pretty strange, because "sudo" caches the password (or 
credentials) for about 5 minutes.


I've typed all commands within 5 minutes and had to enter the password for 
each command.


Installing FPC and Lazarus is the only thing I have installed on the iMac 
(just have it a few days)



Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing on Mac OS X

2008-09-03 Thread Paul

I removed all files (that I could find) and reinstalled fpc-fpcsrc-lazarus.
I downloaded the files from www.hu.freepascal.org/lazarus
According to the docs in 
http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips, I should now be 
able to start lazarus by clicking on the lazarus icon in the application 
folder.

I can't fond it though, also not with spotlight.
Where can I find this ?

OT: is it normal that new windows are hidden behind others?
When downloading the packages from this site (very slow), I was under the 
impression that nothing happened at all: the progress window is always 
hidden.
The same with starting a new instance of Finder: click and search to find 
the new instance under other windows.


Paul





___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Exe size

2008-09-04 Thread Paul


I'm testing with FPC/Lazrus on Windows now, but a simple program results in 
11.5 MB size.
I have enabled -Xs, -CX, -Og, -O2 in the project->compiler options 
(Lazarus), but the size is still the same.

Anything else I should do?

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
I've read that, but isn't it suppose to work within the ide instead of 
always start the cmd prompt and type in this ?

(or use a batch)
Will this work for WinCE also, cause this what I actually want to do?

Paul


- Original Message - 
From: "Michael Fuchs" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Thursday, September 04, 2008 3:07 PM
Subject: Re: [fpc-pascal] Exe size



Michael Fuchs schrieb:

I'm testing with FPC/Lazrus on Windows now, but a simple program results 
in 11.5 MB size.
I have enabled -Xs, -CX, -Og, -O2 in the project->compiler options 
(Lazarus), but the size is still the same.

Anything else I should do?


Use
strip --strip-all $PROGRAMNAME.exe
after the compiling.


And if you want to shrink it more, try UPX.
http://upx.sourceforge.net/

mfg
Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul

I have to use:

C:\FPC\2.2.2\bin\i386-win32\strip.exe --strip-all 
D:\FreePascal\Projects\Test\Project1.exe,

anything else fails.

In my Dutch version here, after compling is on the top position in that 
compiler tab which is in fact before compling

Probably a translation bug.

After compling, I got "Oeps - debugger crash".

Ayway, the size was still 1116 kb for and empty program (button and a label) 
and the limit for my full program (Delphi) is 1 Mb

There's still a long way to go ..
For Windows, it's not a problem (Delphi program), but I want it for WinCE 
and I have the same restrictions there.



Paul



- Original Message - 
From: "Michael Fuchs" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Thursday, September 04, 2008 3:20 PM
Subject: Re: [fpc-pascal] Exe size



Paul schrieb:
I've read that, but isn't it suppose to work within the ide instead of 
always start the cmd prompt and type in this ?

(or use a batch)


Project -> Compilersettings -> [Last Tab] -> Execute after
(I hope this is right, i've only the german version here).


Will this work for WinCE also, cause this what I actually want to do?


Don't know.

hth
Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
Actually 1,16 MMb with  1 button and 1 label and a debugger crash as a bonus 
:-)


Paul


- Original Message - 
From: "Florian Klaempfl" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Thursday, September 04, 2008 4:39 PM
Subject: Re: [fpc-pascal] Exe size



Paul schrieb:

I have to use:

C:\FPC\2.2.2\bin\i386-win32\strip.exe --strip-all
D:\FreePascal\Projects\Test\Project1.exe,
anything else fails.

In my Dutch version here, after compling is on the top position in that
compiler tab which is in fact before compling
Probably a translation bug.

After compling, I got "Oeps - debugger crash".

Ayway, the size was still 1116 kb for and empty program (button and a
label) and the limit for my full program (Delphi) is 1 Mb


So you get a 2 MB if you add two buttons and labels?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
You cannot have both: a small size without debug info *and* a working 
debugger.


I do not need a working debugger.

B: an executable that has a small size and can be released: disable all 
debugging options (-g, -gl, -gh) and enable string (-Xs) in the linking 
tab.


I've done that and also (-Og, -O2 ), same result (also the debugger crash)

Paul

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul

http://wiki.freepascal.org/Size_Matters

Pretty normal for a lazarus app. If you want minimal size, see the winapi
demo in the examples.


I have this doc printed and it wont be a problen on Windows for which I have 
the Delphi program.
I have not installed the WinCe version or crosscompiler, but it's the same 
there: if the size is always the same, I can't use FPC/Lazarus.


UPX is not an option, because our package is already packed with the exe, 
dll's and other files and the package has to be < 1Mb

To have this, the program itself can have a max size of 1 MB.


Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul


- Original Message - 
From: "Vincent Snijders" <[EMAIL PROTECTED]>
OK, you have a small size and a debuger crash. The debugger crash is ok, 
because you "do not need a working debugger".



Indeed, only needed for testing but annoying though

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul


- Original Message - 
From: "Graeme Geldenhuys" <[EMAIL PROTECTED]>


Alternatively, write your WinCE program in pure assembly language.
You should get fully function GUI apps at around 20-60 Kbytes.  :-)

LOL, I don't think so: my Delphi program has only very basic GUI (fi chat) 
which is rarely used, it's mostly running without GUI,

It has a pretty lage source code

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul


If I understand correcly, it's the lcl that adds a huge part to the exe.
Since I only use 1 small form, I could create it with api calls.
But FPC for WinCE uses a crosscompiler, how do I have to implement this ?
Are Windows api calls translated to ARM-calls ?

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul

Hi Tomas,

If you use a (cross-)compiler for ARM target processor, the generated 
binary will be indeed an ARM binary, of course (ready to run on an 
ARM under the selected target OS - WinCE in your case). If targetting 
WinCE OS, you can only use WinCE RTL and/or other units prepared for 
that target, so if the particular API isn't supported for WinCE (as 
opposed to other WinXX platforms), it simply won't compile.




This is bad news for me, I need control over the computer.
The Windows version of the program uses a lot of api calls.
Seems my only option is use Visual Studio :-(

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-05 Thread Paul


- Original Message - 
From: "Marco van de Voort" <[EMAIL PROTECTED]>

Note that wince's api is a subset of winapi. And that VS will suffer from
that also.


I know, but for a remote support system, I need to control the computer.
For CE, it wil be very basic though.

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-06 Thread Paul

Hi Tomas,


Similarly to Felipe, I don't understand why this should be a bad news for
you or why this should mean that Visual Studio gave you something not
available with FPC (or what that "something" was in that case)... It looks
as if I either don't understand what you meant with the statement above,
or that I didn't express myself clearly and you understood me differently
(and that Marco's additional explanation regarding relation between Win32
and WinCE API hasn't helped to clarify that either).


It's clear that I can't call an api that doesn't exist on a specific 
platform.

I don't know how the crosscompiler works, maybe that's confusing me.
If I use KOL, will all the api calls be translated to arm or do I have to 
use ARM api's directly ?


thanks,

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-08 Thread Paul

Hi Tomas,


I don't know much about KOL, but if I understand it correctly, it's a
framework (GUI library if you like) allowing the programmer to use
Pascal classes for the various GUI elements. Implementation of these
classes uses then the native API calls provided by the particular
platform (Win32 or WinCE in your case). In other words, if using KOL,
you don't use the API calls directly at all. In any case, you don't
need to care about whether the API calls are running on an x86 or ARM
CPU, this is the job of FPC to generate proper binary code for the
requested CPU (see notes about cross-compilation above).



thanks for your explanation, but that's not what I needed to know

I know KOL uses api calls (used it years ago), but I prefer to create my 
forms, buttons etc. directly with api calls myself to keep the exe size as 
small as possible.
My problem is: how should I write api call's for a different target platform 
, how are they interpreted by the crosscompiler, C-style or pascal-style...?


thanks,

Paul

PS: my Mac installation keeps giving me a headache.
After removing and installing, adding all folders manually, I got it running 
and could even run a small program.
Next day, I get a OS-message that Lazarus is not a regular mac application 
and is now blocked (OS X 10.5)


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Exe size

2008-09-08 Thread Paul
"U kunt het programma lazarus.app niet openen, omdat het niet wordt 
ondersteund door deze architecture"

translated:
"You can't  open program lazarus.app, because it's not supported by this 
architecture"



Paul

- Original Message - 
From: "Jonas Maebe" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Monday, September 08, 2008 9:48 AM
Subject: Re: [fpc-pascal] Exe size




On 08 Sep 2008, at 08:34, Paul wrote:

After removing and installing, adding all folders manually, I got it 
running and could even run a small program.
Next day, I get a OS-message that Lazarus is not a regular mac 
application and is now blocked (OS X 10.5)


Can you please give the exact error message you get (in Dutch is ok), 
because I've never heard of any error message stating "This  application 
is not a regular Mac OS X application and is now blocked"  or similar.


Please be more specific, because otherwise it is very hard to help.  For 
an interesting essay on this, see 
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Install FPC/Lazarus for Win CE

2008-09-10 Thread Paul

Hi,

I want to install FPC/Lazarus for Win CE, and since I have still problems 
with it on the iMac, I want to be sure I'm doing it right the first time.

I've printed info found on wiki.
on 
http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Using_the_snapshot_add-on_installer,

I read :
<
Using the stable add-on installer
With the first stable release of Free Pascal for Windows CE the installation 
of a WinCE development environment was never easier.

Step-by-step guide:
Install the latest Lazarus on Windows normally from SourceForge: 
http://sourceforge.net/project/showfiles.php?group_id=89339
Download and install the add-on installer for the same Lazarus version you 
just downloaded. It's on the same Source Forge Download page.



only I can't find the add-on there.

Does anyone know where I can find a complete install description that is up 
to date ?


thanks,

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Install FPC/Lazarus for Win CE

2008-09-10 Thread Paul



The best solution is using the snapshots:

http://www.hu.freepascal.org/lazarus/

You need to install:

Lazarus - full - fpc 2.2.2  win32
Lazarus-0.9.25-16519-fpc-2.2.2-20080910-win32.exe

and

Lazarus - fpc 2.2.2 win32 -> arm wince
Lazarus-0.9.25-fpc-2.2.2-20080908-cross-arm-wince-win32.exe


Need to install all 4 packages in this order ?



since I have still problems with it on the iMac


Are you using Windows in you iMac? You need to use Windows as a
development operating system to develop for Windows CE.


No, installed FPC/Lazarus on my iMac, but there are problems with it.
Appearantly, I'm not the only one, I've seen problems with it on the 
mac-pascal list too.
On Mac OS X 10.5, I can't start Lazarus (OS-error : You can't start 
lazzarus.app - it's  not supported by this architecture)


That's the reason I want to know exactly what steps to perform before I 
start.
You can find a lot of info on the net about installing, but they don't 
always say the same or are not complete/updated etc.


Paul


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Install FPC/Lazarus for Win CE

2008-09-10 Thread Paul



I for one can not get Lazarus to run on 10.4.11 G5 Quad. Followed all
installation instructions - no launch. I don't care to download the 
source and compile, I expect the easy installation to work (funny Mac 
user).



although not as it should, I'm happy I'm not the only one ...
I spent a few days trying to get it running.
When I finally got it running, I could run some small test programs until I 
closed Lazarus.app.

The next morning, I got the OS error message...


I'll wait for the dmg release.


I'll try that one too, but it won't be ready for at least 2 months

Paul

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Install FPC/Lazarus for Win CE

2008-09-10 Thread Paul

2 packages in this order.


I installed both packages, but I can't find anything of the crosscompiler.
I've set the LCL Widget to WinCe, but can't comple anything.

Paul

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Install FPC/Lazarus for Win CE

2008-09-10 Thread Paul

Target operating system: wince
Target architecture: arm


I can't find these 2, are these to be set in lazarus or fpc?
Do I have to set arm if the target is a intel processor ?

Paul

- Original Message - 
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Wednesday, September 10, 2008 6:35 PM
Subject: Re: [fpc-pascal] Install FPC/Lazarus for Win CE



On Wed, Sep 10, 2008 at 1:15 PM, Paul <[EMAIL PROTECTED]> wrote:
I installed both packages, but I can't find anything of the 
crosscompiler.

I've set the LCL Widget to WinCe, but can't comple anything.


You need to set 3 things:

Widgetset: wince
Target operating system: wince
Target architecture: arm

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Install FPC/Lazarus for Win CE

2008-09-10 Thread Paul

In Lazarus. Menu Project --> Compiler Options --> Code tab


thanks.

That's wrong: the i386 compiler knows also i386-wince. Only the rtl and 
packages need to be compiled.

Are they available somewhere (compiled) or do I need to do that ?

Isn't WinCE x86 just a subset of Win32 ?

Paul




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul

Hi,

where can I find a list of available api calls for WinCE/Arm ?
I need to make a screenshot, set the cursor postion and inject keypresses.

thanks,

Paul 
___

fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
Found some in InterfaceBase; docs are very hard to find for a starter though 
.

Why doesn't  TBitmap.Create  exist in WinCE?
I'm trying to take a screenshot..

Paul



- Original Message - 
From: "Paul" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Saturday, September 13, 2008 4:50 PM
Subject: [fpc-pascal] WinCE api calls info



Hi,

where can I find a list of available api calls for WinCE/Arm ?
I need to make a screenshot, set the cursor postion and inject keypresses.

thanks,

Paul ___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul



http://lazarus-ccr.sourceforge.net/docs/lcl/

thanks for this link.


Why doesn't  TBitmap.Create  exist in WinCE?

Of course it exists. It's in the Graphics unit and it is part of
Lazarus. You need to install Lazarus to use it, not just Free Pascal.


is installed this way.


http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Taking_a_screenshot_of_the_screen

I already found this and wanted to use it.
Unfortunalety, TBitmap.create is not recognized by the lazarus IDE (WinCE)


Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul



Is the Graphics unit in your uses clause?


yes,  it is


TBitmap works in Windows CE, so there is something wrong with your code.

var bmp: TBitmap;
begin
   bmp:= TBitmap.Create;

what's wrong with this?

thanks,

Paul


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul


- Original Message - 
From: "Mattias Gaertner" <[EMAIL PROTECTED]>

Mouse.CursorPos.X := 80;
Mouse.CursorPos.Y := 80;


this is accepted in the IDE


Mouse.CursorPos:=Point(80,80);

this isn't accepted

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul


- Original Message - 
From: "Mattias Gaertner" <[EMAIL PROTECTED]>



What error do you get?
unit1.pas Fatal: syntax error ")" exptected but "," found  (in point 
(80,80));


Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul

Cursorpos solved.

I had units InterfaceBase, LCLIntf, LCLType still in the uses clause.

Paul

I has unuts 
- Original Message - 
From: "Mattias Gaertner" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, September 13, 2008 10:57 PM
Subject: Re: [fpc-pascal] WinCE api calls info



On Sat, 13 Sep 2008 22:44:43 +0200
"Paul" <[EMAIL PROTECTED]> wrote:



- Original Message - 
From: "Mattias Gaertner" <[EMAIL PROTECTED]>

>> Mouse.CursorPos.X := 80;
>> Mouse.CursorPos.Y := 80;

this is accepted in the IDE


Yes, because it is syntactically correct. But it only changes some
temporary stack variables. Nothing will happen.



> Mouse.CursorPos:=Point(80,80);
this isn't accepted


What error do you get?

procedure TMainForm.Button1Click(Sender: TObject);
begin
 Mouse.CursorPos:=Point(80,80);
end;


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul


- Original Message - 
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Saturday, September 13, 2008 11:01 PM
Subject: Re: [fpc-pascal] WinCE api calls info



Please copy here your entire unit.



{$mode objfpc}{$H+}

{.$smartlink on}
{.$DEFINE RELEASE}
{.$FPC_LINK_SMART}

interface

uses
 Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, 
StdCtrls,

 ExtCtrls, windows;

type

 { TForm1 }

 TForm1 = class(TForm)
   Button1: TButton;
   Button2: TButton;
   Image1: TImage;
   Label1: TLabel;
   procedure Button1Click(Sender: TObject);
   procedure Button2Click(Sender: TObject);
 private
   { private declarations }
 public
   { public declarations }
 end;

var
 Form1: TForm1;

implementation

{ TForm1 }


procedure captureScreen;
var
 MyBitmap: TBitmap;
 ScreenDC: HDC;
begin
 MyBitmap := TBitmap.create;
 ScreenDC := GetDC(0);
 MyBitmap.LoadFromDevice(ScreenDC);
 ReleaseDC(ScreenDC);
end;



procedure TForm1.Button2Click(Sender: TObject);
begin
Mouse.CursorPos:= point(10, 10);
//  WidgetSet.setcursorpos(10, 10);  //  uses InterfaceBase
end;


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul

There are conflicts :
when I remove Windows from the uses clause, then TBitmap.create is OK.
But then HDC is not anymore

Paul

- Original Message - 
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Saturday, September 13, 2008 11:01 PM
Subject: Re: [fpc-pascal] WinCE api calls info



Please copy here your entire unit.

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul

Already done,


uses
 Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, 
StdCtrls,

 ExtCtrls, windows;


procedure captureScreen;
var
 MyBitmap: Graphics.TBitmap;
 ScreenDC: HDC;
begin
 MyBitmap := Graphics.TBitmap.Create;
 try
   Mybitmap.Canvas.CopyMode:= cmSrcInvert;   //OK
   ScreenDC := GetDC(0);
   MyBitmap.LoadFromDevice(ScreenDC);
  .
 finally
   ReleaseDC(ScreenDC);  <-- error wrong number of parameters
 end;
end;

I haven't found what the parameters have to be this way

Paul



- Original Message - 
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Sunday, September 14, 2008 12:11 AM
Subject: Re: [fpc-pascal] WinCE api calls info



On Sat, Sep 13, 2008 at 6:17 PM, Paul <[EMAIL PROTECTED]> wrote:

when I remove Windows from the uses clause, then TBitmap.create is OK.
But then HDC is not anymore


Try specifing Graphics.TBitmap

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] WinCE simulate touchscreen click

2008-09-14 Thread Paul


I'm trying to simulate a click on the screen.
I thought I could use mouse_event, but when I call mouse_event from a 
button, the button begins to flip (black-white-black...)


Anyone knows how ?

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can't resize form in WinCE

2008-09-16 Thread Paul


Hi Felipe,

I have a printed copy of this document and already have used all available 
borderstyles without success.

(I'm using an emulator)


Paul


- Original Message - 
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Tuesday, September 16, 2008 4:56 PM
Subject: Re: [fpc-pascal] Can't resize form in WinCE



Hello,

The behavior is documented here:

http://wiki.freepascal.org/Windows_CE_Development_Notes#Positioning_and_size_of_Dialogs_and_Forms

In short, set the BorderStyle to bsDialog, but you really should read
this wiki page to better understand Windows CE development.

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can't resize form in WinCE

2008-09-16 Thread Paul

version 0.9.24


- Original Message - 
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Tuesday, September 16, 2008 6:55 PM
Subject: Re: [fpc-pascal] Can't resize form in WinCE



Which version of Lazarus are you using? You should use a snapshot, or
the upcoming 0.9.26

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can't resize form in WinCE

2008-09-17 Thread Paul

Installed these packages

Lazarus-0.9.25-16602-fpc-2.2.2-20080916-win32.exe
Lazarus-0.9.25-16602-fpc-2.2.2-20080916-cross-arm-wince-win32.exe

If I try to compile the project, this error pops up: 
FATAL: Can't find unit interfaces used by project 1


in project file at line:
uses
 {$IFDEF UNIX}{$IFDEF UseCThreads}

what went wrong here ?

thanks,

Paul


- Original Message - 
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Tuesday, September 16, 2008 7:50 PM
Subject: Re: [fpc-pascal] Can't resize form in WinCE



On Tue, Sep 16, 2008 at 2:38 PM, Paul <[EMAIL PROTECTED]> wrote:

version 0.9.24


Try updating then.

Which means at the moment using a snapshot (you need to install both
lazarus for win32 and then the wince addon on top of. You can have
multiple versions of Lazarus installed in your system).

Or very soon using 0.9.26

Usually the latest stable is a very good choice, but with Lazarus
0.9.24 it was the first release with Windows CE support, so many
things weren't finished yet. The current support in 0.9.25 is much
better, and *a lot* has been improved, and the documentation has been
updated for those changes.

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can't resize form in WinCE

2008-09-17 Thread Paul
- Original Message - 
From: "Vincent Snijders" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Wednesday, September 17, 2008 2:16 PM
Subject: Re: [fpc-pascal] Can't resize form in WinCE



No idea. Please paste the compiler options in an email:
Project -> Compiler Options -> Show Options.

Vincent




This is the config file:



 
   
   
   
 
 
 
   
   
 
 
 
   
   
 
 
 
 
   
   
 
   
   

 
   
   
 
   
 
   
   
 
   
   
   
   
 
 
   
   
   
   
   
   
   
   
   
   
   
 
   
   
 
 
   
   
   
 
   
   
 
   
 
   
   
 
 
   
   
 
   
 
   
 
   
   
 
   
 
 
   
 
   
   
 
 
   
   
 
   
   
 
   
 
 
   
 
   
 


Paul


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Next stabel installation for WinCE ?

2008-09-18 Thread Paul

When will there we a new stable installation release for WinCE ?

For the moment, I've given up FPC/Lazarus and ordered VS2008.

I removed the current installation and installed FPC/Lazarus again with:
Lazarus-0.9.25-16602-fpc-2.2.2-20080916-win32.exe and
Lazarus-0.9.25-16602-fpc-2.2.2-20080916-cross-arm-wince-win32.exe

and also with:

Lazarus-0.9.25-16602-fpc-2.2.3-20080916-win32.exe and
Lazarus-0.9.25-16630-fpc-2.2.3-20080918-cross-arm-wince-win32.exe


I have set
Widgetset to wince
Target operating system to wince
Target architecture to arm

I can't even compile an empty project (empty form)

I hope the next release will solve the problems.

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Next stabel installation for WinCE ?

2008-09-18 Thread Paul



It will depend on you luck a bit, but if you had followed mattias
advices you would have made it work.


Maybe, but in both installed versions, I can even find folder
c:\lazarus\fpc\2.2.2\units\arm-wince\wince\
The \wince\ subfolder doesn't exist.

So I can only assume that both install packages fail.

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Suspected Strange Error in FPC

2005-09-15 Thread paul
I have a heads up report which I have to make in this form because it's
not repeatable.  I am sometimes getting errors that, when I try
creating sample programs to repeat them, first I will get a problem,
then sometimes if I add comments, all of a sudden the problem vanishes
and I get clean compiles that do work.  I'm not sure exactly what is
happening, because sometimes I can get the problem to repeat itself
consistently, but then I check to see and the problem is no longer
present.

I was trying to produce a reproducible bug and in 4 cases, the bug would
disappear and the (sample) programs would then compile correctly.

So there is something which, at the moment, I can't quite put my finger
on. 

Where the issue is, is in another program I'm trying to compile and
getting spurious errors.  

I have a relatively large program (7028 lines) which is comiing up as
being too short; FPC thinks when the program reaches END. that there
should still be more code present.

This program compiles successfully with the Australian Atomic Energy
Commission (AAEC) Pascal Compiler for the IBM 370 Mainframe.  Which it
should, as it turns out, the program *IS* the AAEC Pascal compiler. 
(It's obviously a much simpler version of Pascal than that supported by
Free Pascal.)

I've tracked the problem down to one specific nested procedure in that
if I put a BEGIN END; BEGIN END. before this one procedure it does a
clean compile.  Putting them after this one procedure causes the
compiler to think the program is too short.  I put count marks on all
of the BEGIN END pairs and it balances correctly.  So I can't quite
figure out what is wrong.

Perhaps the program is exceeding the maximum number of nested
procedures.

I've been doing a translation on it to try and compile it on FPC to see
how it would work.  (Also to give me ideas on how to port FPC over to
the IBM 370 which is my eventual intent.)  AAEC seems to do a bang-up
job of putting stress on FPC in ways I haven't seen before and allowing
me to discover just how strong the FPC compiler is, in the ways it
enforces strict type checking and other issues and to a degree may make
programs more documenting.

I get wierd errors in different ways that aren't always consistent. 
When trying to isolate the problems, in some cases I can repeat the
problem and other times I can't.  Currently the only one I am
consistently getting is that FPC thinks the AAEC Compiler source is too
short, and it also (sometimes) doesn't like a pointer issue, but when I
try reproducing the pointer problem as another program, first it gave
an error the same way, then it stopped giving errors and reported the
small program as compiling correctly.  I'm not sure if there is an
issue with the IDE that is used under Windows.

It could be that there is a problem with the size of the generated
program.  But it does use lots of procedures so it shouldn't create a
very large procedure. 

I suspect there could be a problem with comments in programs, especially
the use of the old fashioned  (* and  *) format.  Sometimes the use of a
construct such as  () or something similar may cause
spurious errors, but sometimes it doesn't have a problem and I'm not
sure why.  There may be a problem with the * character embedded in a (*
style comment.

I know this is a bit of a frustrating (pseudo-) bug report, but it's a
frustrating problem which isn't consistent.  The problem could also be
that the generated program is exceeding some limit in FPC in different
ways and causing spurious errors as a result.

I think the next step is to take this program and break it into units,
which might help solve the problem.  If I can better isolate the issue
and get a repeatable condition I'll report it once I can get the error
to manifest itself.


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Examples of FPC good practice

2005-09-15 Thread paul
I would like to point out some places where I think FPC has done an
excellent job of continuing the spirit of what Pascal was and should
be: a programming language which provides better "safety" in the
creation of computer programs.  By "safety" I mean that more potential
errors are either prevented or cannot occur in the first place.  Buffer
overflows, spam, viruses are the results of the lack or inadequacy of
safety in program development.  

I hadn't even thought about it until now, but a Pascal program that is
compiled with run-time checks (which is the default) will not have a
buffer overflow problem, because attempting to access an array outside
of the appropriate bounds isn't just a bad practice, it causes a
program error and unless it's in a TRY/FINALLY block, the program will
crash instead of doing something it shouldn't.

Now, there are ways to get around this, but you would have to be aware
that is exactly what you're trying to do.  

Here is an example of one really good feature:

In the AAEC Pascal compiler (which, like FPC is written to be
self-compilable), it defines a construct for defining relocations of
addresses.   (Numbers on each line are from the source.)  These are
defined as follows:

TYPE
(*0221*)RLDDATA = RECORD
(*0222*)RELPOS : INTEGER;
(*0223*)FLAGADDRESS : INTEGER
(*0224*)  END;
(*0225*)
(*0226*)
(*0227*)RLDBUF = RECORD
(*0228*)   PRELUDE : ALFA;
(*0229*)   BYTES   : INTEGER;
(*0230*)   DUMMY   : PACKED ARRAY (. 1..4 .) OF CHAR;
(*0231*)   RLDITEMS: ARRAY (. 1..7 .) OF RLDDATA;
(*0232*)   SEQNOS  : ALFA
(*0233*) END;

VAR
(*0401*)RLD : RLDBUF;   (* MAIN RLD BUFFER *)


Now, to set the value it uses a 'value' clause, like this:

(*0468*)VALUE 
(*0537*)RLD := (# ' RLD',0,'',0,0,0,0,0,0,0,0,0,0,0,0,0,0,' 
  '#);

FPC requires the setting of the value to be done like this:

(*0468*)CONST
(*0537*)  RLD : RLDBUF =
 (prelude:' RLD';bytes: 0; dummy: '';
 rlditems:((relpos: 0;flagaddress: 0),
   (relpos: 0;flagaddress: 0),
   (relpos: 0;flagaddress: 0),
   (relpos: 0;flagaddress: 0),
   (relpos: 0;flagaddress: 0),
   (relpos: 0;flagaddress: 0),
   (relpos: 0;flagaddress: 0));
   seqnos:'');

(I've spread the one line across many lines to improve readability.) 
Here, what each value is becomes mandatorily documented, making a big
win for readability and correctness, since you can't accidentally
assign a value wrongly; you have to explicitly name the fields of the
record to assign values to them.  

One thing I do like AAEC doing is the use of a 'VALUE' clause in order
to separate immutable constants versus compile-time initialized data. 
I also like the use of := to indicate it is an assignment, and the use
of (# and #) to make explicit that this is a compile-time
initialization of a variable.  (The (# and #) construct is only used
for value entries.)  This might be something to consider as an option.

So each has some potential advantages.  FPC does what it does to be
compatible with Turbo Pascal.   I personally like the way FPC requires
explicit naming of record fields for assignment, I think it's a good
idea.

Paul Robinson
Robinson Telephone Company
Arlington VA


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Unicode support

2012-05-17 Thread Paul Ishenin

17.05.12 2:51, Andrew Brunner wrote:

I wanted to ask what the present state of unicode support is now.


Compiler supports AnsiStrings with codepage information and converts 
them between ansistrings and between other string types with implicit 
codepage conversion. RawByteString and UTF8String are both supported by 
compiler too.


For 2 byte encodings compiler has WideString and UnicodeString types.

RTL has only basic support for codepage aware strings and unicodestring 
type. Most of the code still works with AnsiString.

 > I'm running into problems with some various strings.  Sometimes when a

string contains a unicode character postgresql won't allow the
insert/update.  Also, some MP3 tags contain UTF16, UTF16BE and I really
don't know of the best practice on how to handle multi-byte characters
in code.


It is difficult to say what is wrong - we don't see the code.


Anyone want to comment on direction of FPC for Unicode... Ie I think the
string field should be able to re-map to UTF8.  Is that something that
can be done?


What string field? Of what class? If you are about string type itself 
you can use {$H+}, {$codepage UTF-8} and 
SetMultiByteConversionCodePage(CP_UTF8) if you want to have string type 
to be utf8 string in your project.



What can I do to support unicode in the serving of
pages/files/documents/music without having to have encoding aware code.


What you want is probably UnicodeString RTL which is not available at 
the moment.


Best regards,
Paul Ishenin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc

2012-05-25 Thread Paul Breneman

I've recently added new releases for Linux and ARM Linux on this page:
  http://www.turbocontrol.com/easyfpgui.htm

Also a few new releases on this page (including a note on how I recently 
got ppcarm 2.6.0 working for console programs on my Android phone):

  http://www.turbocontrol.com/helloworld.htm


Paul Breneman wrote on 4-Jan-2012:
Since the earlier release on 23-Dec-2011 the file mentioned below has 
been updated to FPC 2.6.0 and the serial debug terminal example also has 
some improvements made.



Paul Breneman wrote on 23-Dec-2011:
I have posted a 3.9 MB zip file that has a minimal distribution of the 
FPC 2.4.4 compiler as well as the new fpGUI v0.8 source code on this 
page:

  http://www.turbocontrol.com/easyfpgui.htm

I've also included (Synapse) SynaSer source and a serial debug 
terminal program I've been working on.  Also new is the option of 
compiling the new (alpha?) fpGUI IDE.


No installation is needed! Just extract the zip into a new folder. 
Open a command prompt in the root folder of what was extracted. Then 
type "compile dbgterm" and when that finishes (give it some time) type 
"cd bin" and then "dbgterm" and you should be up and running the new 
serial debug terminal.  It really is that easy thanks to the Free 
Pascal and other teams!

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] ..installing XCode ...make sure not to deselect UNIX development support - TOO LATE

2012-07-09 Thread Paul McCombie
 - I had already installed XCode 4.3 on my Mac before attempting to 
install fpc, and had deselected UNIX development support.


I have attempted to completely remove 4.3 and installed 4.2.  fpc 
appeared to install OK, and the firemonkey installation which I wanted 
it for.  I have transferred a firemonkey project to my mac, but when I 
open it the pas files are not recognised, and selecting one results in a 
'no editor' message.  So I presume that fpc has not installed 
correectly, despite the 'installation successful' message.


I have installed 4.3, and the command line tools, but that leaves me in 
the same situation.  I have never seen the 'deselect UNIX' option again, 
despite removing bot 4.3 and 4.2.


Can anyone advise me of a way to recover this situation so that I can 
use fpc with xcode and firemonkey please?


Thank you!

Paul.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] virtual class var?

2012-08-06 Thread Paul Ishenin

07.08.12, 8:18, Andrew Haines wrote:

Hi, is it possible to have a virtual class variable? I want to have a
pointer available per class that can be a different value.
Something like this:

   TA = class
 class var Foo: TObject; virtual;
   end;

   TB = class(TA)
 class var Foo: TSpecialObject; override;
   end;


Class variable is stored the same way as a regular variable and has the 
only difference is that it can be accessible with the class name prefix. 
The thing you need requires different implementation - something like 
storing a virtual class variable in VMT. There is no implementation for 
that.


Best regards,
Paul Ishenin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] virtual class var?

2012-08-06 Thread Paul Ishenin

07.08.12, 11:24, Andrew Haines wrote:

What is the current implementation?

I would guess that class vars are stored in the vmt already...


No, class var and regular variable has no difference except the scope. 
It is a static variable which is shared between all instances and 
descendants - so why should it be stored in vmt or near it?


Best regards,
Paul Ishenin

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Compiling on Raspberry Pi

2012-08-07 Thread Paul Breneman

Hi Koenraad,


I recently recieved my Raspberry PI. That's an arm-linux device.
I downloaded the easyfpgui-package from 
http://www.turbocontrol.com/easyfpgui.htm.
I can't compile the dbgterm, I get errors on baudrates that seem 
undefined. In the sources these baudrates are enclosed in IFDEF's. How 
can I know what constants are defined, is there an easy way ? Of course 
I could write a pascal-program with just writeln's enclosed in an IFDEF 
of each possible constant. But where does fpc get the values of these 
constants from ?


The rest of the apps compile fine although I had no possibility to test 
them since I don't yet have a suitable video-cable.


Someone has already reported: "At least the helloworld and memotest seem 
to compile and run OK."

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=11622&p=127349#p127349

You might want to copy the two files in the SynaSerFromSynapse40 folder 
to the root folder and remove "synafpc" from the interface uses list in 
both units.  That might get things to compile for you.


I'll have to use QEmu and try compiling DbgTerm as that is how I tested 
things as I don't have a Raspberry Pi (yet).


Please report back here if/when you get further.  Thanks!

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: [Lazarus] Any FPC/Lazarus success stories on Nokia N9?

2012-08-25 Thread Paul Breneman

zeljko wrote:

On Saturday 25 of August 2012 14:30:12 Reinier Olislagers wrote:

Hi FPC & Lazarus lists (crossposted),

Just wondering if anybody has compiled FPC, Lazarus, or fpgui
applications on Nokia's N9 smartphone.


I've successfully built bindings and qtlcl apps for n9 (I guess that Joost 
also was succesfull). It works, but normal qtlcl app cannot change orientation 
so it's always horizontal.

If you want to create really fancy n9 apps you need QtCreator (Nokia SDK).
Besides that, N9 is normal linux machine (eg. X11) with arm processor (no need 
for QTOPIA defines in bindings like N900 needs).
P.S: There's guy on #lazarus-ide irc channel nick = trx. 
He created complete api to work with nokia ui's,so you can create same app 
like with QtCreator (under Lazarus)  ask him for more details.


zeljko


You might find stuff that works on the N9 as part of this project:
  http://www.turbocontrol.com/monitor.htm

It should be easy to try the ARM Linux 1.1 MB zip to directly compile on 
the N9:

  http://www.turbocontrol.com/helloworld.htm

If that works then try a 3.2 MB zip to compile a GUI program using fpGUI:
  http://www.turbocontrol.com/easyfpgui.htm
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: [Lazarus] Any FPC/Lazarus success stories on Nokia N9?

2012-08-26 Thread Paul Breneman

zeljko wrote:

On Saturday 25 of August 2012 14:30:12 Reinier Olislagers wrote:

Hi FPC & Lazarus lists (crossposted),

Just wondering if anybody has compiled FPC, Lazarus, or fpgui
applications on Nokia's N9 smartphone.


I've successfully built bindings and qtlcl apps for n9 (I guess that Joost 
also was succesfull). It works, but normal qtlcl app cannot change orientation 
so it's always horizontal.

If you want to create really fancy n9 apps you need QtCreator (Nokia SDK).
Besides that, N9 is normal linux machine (eg. X11) with arm processor (no need 
for QTOPIA defines in bindings like N900 needs).
P.S: There's guy on #lazarus-ide irc channel nick = trx. 
He created complete api to work with nokia ui's,so you can create same app 
like with QtCreator (under Lazarus)  ask him for more details.


zeljko


You might find stuff that works on the N9 as part of this project:
  http://www.turbocontrol.com/monitor.htm

It should be easy to try the ARM Linux 1.1 MB zip to directly compile on 
the N9:

  http://www.turbocontrol.com/helloworld.htm

If that works then try a 3.2 MB zip to compile a GUI program using fpGUI:
  http://www.turbocontrol.com/easyfpgui.htm
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-13 Thread Paul Breneman

Graeme Geldenhuys wrote:

Hi,

I received my Raspberry Pi today, and had a bit of a play. I'm using the 
Debian 6 OS with my Pi. I downloaded the FPC+fpGUI ARM archive (only a 
3.5MB download), packaged by Paul Breneman.


  http://www.turbocontrol.com/easyfpgui.htm

[Awesome work there, Paul. You can get much easier than than. Just 
unpack and you are ready to work.]


It works fantastically well. I could compile all the fpGUI demos without 
me having to do anything extra in fpGUI. How cool is that! :-)


All I had to do to get my projects to link successfully, was to install 
a few missing packages, which were not included with the Debian 6 distro 
for the Pi.


  sudo apt-get update
  sudo apt-get install libX11-dev libXft-dev

I'll have to speak to somebody to see if they could include it as 
standard - after all, the Pi is meant for developers to play with. If 
anybody has contacts, please let me know.


Hi Graeme, I got my RPi a couple of days ago so we are on the same page! 
 :)  Thanks for all your great work with fpGUI!


I used this *very* easy method to load Debian on my RPi:
  http://www.berryterminal.com/doku.php/berryboot

I even compiled and ran the more complex fpGUI apps like the GUI Forms 
Designer, DocView (help viewer), and Maximus (a sample fpGUI IDE). Even 
FPTest (my Free Pascal Unit Testing project works).


DbgTerm doesn't compile so I hope to update SynaSer for that ASAP.

We (our company) have some big plans for the Raspberry Pi, with a 
potentially huge deployment. The first tests with this device is very 
promising.


Kudos must also go to the FPC team, for supporting ARM so well!

Maybe with the Raspberry Pi and Free Pascal, we can get Object Pascal 
back on the map, and in the hands of young developers. After all, Pascal 
was initially designed as a teaching language - easy to learn, read and 
write.


I have the separate pieces on the educational project page and hope to 
write a tutorial soon so a 12-year-old could spend less than $100 (US) 
and program an embedded RPi to monitor house temperatures and send 
emails and text messages (daily or more often if temps out of range).


I also think we should take advantage of the RPi educational 
opportunities.  If someday we can get a phone with native Linux that too 
will hopefully be easy to program like the RPi.


www.TurboControl.com/monitor.htm

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-15 Thread Paul Breneman

Three minimal FPC and fpGUI distros were just updated on this page:
  http://www.turbocontrol.com/easyfpgui.htm

The serial debug terminal (uses SynaSer part of Synapse) now compiles 
and the RPi works with my Gearmo USB to serial adapters (that use FTDI 
chipsets).


Should be fun to see what embedded projects the RPi can be used in...  :)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Seems Delphi is moving to Java-style primitive types

2012-10-17 Thread Paul Ishenin

17.10.12, 17:00, Graeme Geldenhuys пишет:


Well, kind-of... I don't know if C# also supports this (like Java). It
probably does, because for the last few years, Delphi has just been
copying whatever is in C#. [sad]

...

Interesting.


This was already discussed here or fpc-devel list.

Best regards,
Paul Ishenin

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Paul Breneman

luciano de souza wrote:

Among its hundreds of units, the Freepascal always keeps surprises for
us. FPHTTPClient was a pleasant surprise.
The talk has followed freely and perhaps my question has been skipped:
is there Freepascal native routines to deal with SMTP protocol? In
other words, is there a native way to send an e-mail with Freepascal?


Here is the most simple way I know of (but I'd be glad to learn of a 
more simple way):

  http://www.turbocontrol.com/easyemail.htm

--
Regards,
Paul Breneman
www.dbReplication.com - VCL database replication components
www.TurboControl.com - Hardware and software development services
- Educational programming project for environment monitoring
- Information on using FreePascal for embedded systems
- Support information for the TurboPower open source libraries
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Class procedural type

2012-12-17 Thread Paul Ishenin

18.12.12, 5:26, Ewald пишет:


Suppose TTestClass contains `AField: Integer; static;`, then the following 
would be right if I understand you correctly?

Class Procedure TTestClass.AMethod; static;  // I don't know if `static` should 
be in the implementation as well, but I'll soon figure out :-)
Begin
AField:= 0; //Wrong? My guess is it would fail to compile 
in this case, but I haven't got a compiler at hand now.

TTestClass.AField:= 0;  //Right?
End;


Both calls will work. AMethod still belongs to class, so it first 
searches identifier in that class.


Best regards,
Paul Ishenin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Strings - suggestions

2012-12-22 Thread Paul Ishenin

22.12.12, 22:58, Martin Schreiber пишет:


That was so in the beginning but Delphi later changed it. So a Delphi
UnicodeString variable currently allways is utf-16 encoded.


The same in FPC.

Best regards,
Paul Ishenin

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


  1   2   3   4   5   >