Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Burkhard Carstens
Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:
 On Tue, 5 Jun 2007, Darius Blaszijk wrote:
  Hi I would like to upload a file through a web page. How can I do
  this using FPC? Is there any example available?

 The fpweb or cgiapp components can do this for you.

Michael,
is there any information about fpweb available except the sources? Any 
little example or something? I'd even buy any magazine (as long as it's 
german or english). The only thing I found so far is a mail in laz-ml 
in the middle of Regenerate Makefiles? thread ..

Now for something completely different: I don't get any mails from 
mantis since 2007-05-25 (fpc at bcsoft de). A few days ago, giantm 
tried to send me a testmail from that machine (idefix(?)), which never 
came through, but he couldn't check the maillogs there.

Last mail I got from mantis was:
Received: (qmail 25156 invoked by uid 30507); 25 May 2007 12:40:51 -
Subject: [Lazarus 0008943]: Fonts colors dont  work with buttons, box, 
ect ...


regards
 Burkhard

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


Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Michael Van Canneyt


On Wed, 6 Jun 2007, Burkhard Carstens wrote:

 Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:
  On Tue, 5 Jun 2007, Darius Blaszijk wrote:
   Hi I would like to upload a file through a web page. How can I do
   this using FPC? Is there any example available?
 
  The fpweb or cgiapp components can do this for you.
 
 Michael,
 is there any information about fpweb available except the sources? Any 
 little example or something? I'd even buy any magazine (as long as it's 
 german or english). The only thing I found so far is a mail in laz-ml 
 in the middle of Regenerate Makefiles? thread ..

Sent a mail in private with 2 articles.

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


Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Burkhard Carstens
Am Mittwoch, 6. Juni 2007 14:38 schrieb Michael Van Canneyt:
 On Wed, 6 Jun 2007, Burkhard Carstens wrote:
  Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:
   On Tue, 5 Jun 2007, Darius Blaszijk wrote:
Hi I would like to upload a file through a web page. How can I
do this using FPC? Is there any example available?
  
   The fpweb or cgiapp components can do this for you.
 
  Michael,
  is there any information about fpweb available except the sources?
  Any little example or something? I'd even buy any magazine (as long
  as it's german or english). The only thing I found so far is a mail
  in laz-ml in the middle of Regenerate Makefiles? thread ..

 Sent a mail in private with 2 articles.

Thanks!!!

Burkhard

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


Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Joao Morais

Michael Van Canneyt wrote:


On Wed, 6 Jun 2007, Burkhard Carstens wrote:


Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:

On Tue, 5 Jun 2007, Darius Blaszijk wrote:

Hi I would like to upload a file through a web page. How can I do
this using FPC? Is there any example available?

The fpweb or cgiapp components can do this for you.

Michael,
is there any information about fpweb available except the sources? Any 
little example or something? I'd even buy any magazine (as long as it's 
german or english). The only thing I found so far is a mail in laz-ml 
in the middle of Regenerate Makefiles? thread ..


Sent a mail in private with 2 articles.


Hmmm... what about a link?

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


Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Michael Van Canneyt


On Wed, 6 Jun 2007, Joao Morais wrote:

 Michael Van Canneyt wrote:
  
  On Wed, 6 Jun 2007, Burkhard Carstens wrote:
  
   Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:
On Tue, 5 Jun 2007, Darius Blaszijk wrote:
 Hi I would like to upload a file through a web page. How can I do
 this using FPC? Is there any example available?
The fpweb or cgiapp components can do this for you.
   Michael,
   is there any information about fpweb available except the sources? Any
   little example or something? I'd even buy any magazine (as long as it's
   german or english). The only thing I found so far is a mail in laz-ml in
   the middle of Regenerate Makefiles? thread ..
  
  Sent a mail in private with 2 articles.
 
 Hmmm... what about a link?

Can't do, because I'm not allowed to distribute it publicly, so it's only
on request.

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


[fpc-pascal] FPC Linux Developers wanted

2007-06-06 Thread Graeme Geldenhuys

Hi everybody,

I'm not sure if I'm allowed to post this here If not, I will not
do it again!

I have a friend in the UK that needs some FPC Linux developers. They
prefer UK-based (boss is really not keen on remote working)
developers, but might accept remote working at a pinch if nothing else
is available.

Details of the job is below.  You can contact Andrew Denton (adenton
at q-systems dot com) directly for more details.

Regards,
 - Graeme -


 Original Message 
Subject: FPC Linux Developers
Date: Wed, 6 Jun 2007 14:51:35 +0100
From: Andrew Denton [EMAIL PROTECTED]
To: Graeme Guldenhuys [EMAIL PROTECTED]

Hi Graeme,

This Linux project looks like it's going to be much more work than anyone
thought and we're going to need to get some outside help in. Do you know of
anyone specialising in Free Pascal, Linux  QT development that could hire
us a body or two?

We're developing a replacement for our stand alone ticket printer and it's
going to be x86 Linux/touch screen based all booting from flash (no internal
hard drive). The boss also wants the option to be able to use the device as
a standard touch screen terminal, so we'll initially need to develop a
framework that provides the common services, then the ticket printer
software (then maybe some other stuff afterwards).

Take care,

Andy
Andrew Denton
Product Development Manager
Q-Systems (International) Ltd
T: +44 870 873 0200
F: +44 870 873 0210

I want to move to Theory...Everything works in Theory
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC Linux Developers wanted

2007-06-06 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
 Hi everybody,
 
 I'm not sure if I'm allowed to post this here If not, I will not
 do it again!

Why shouldn't it be allowed? It's FPC related and job offers always show
that FPC is mature ;)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC Linux Developers wanted

2007-06-06 Thread Graeme Geldenhuys

On 06/06/07, Florian Klaempfl [EMAIL PROTECTED] wrote:


Why shouldn't it be allowed? It's FPC related and job offers always show
that FPC is mature ;)


:-)  True, but some mailing list don't like job posts.



--
Graeme Geldenhuys

General error, hit any user to continue.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC Linux Developers wanted

2007-06-06 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
 On 06/06/07, Florian Klaempfl [EMAIL PROTECTED] wrote:

 Why shouldn't it be allowed? It's FPC related and job offers always show
 that FPC is mature ;)
 
 :-)  True, but some mailing list don't like job posts.

Well, if you look for a cleaning lady or if the job posts exceed more
than one a day, we'll rethink about it.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Burkhard Carstens
Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:
 On Tue, 5 Jun 2007, Darius Blaszijk wrote:
  Hi I would like to upload a file through a web page. How can I do
  this using FPC? Is there any example available?

 The fpweb or cgiapp components can do this for you.

The README.TXT in lazarus/components/fpweb/ states:
fpWeb does not work with fpc 2.0.4.
It needs at least 2.3.x.

Is 2.3.x still minimum, or could it work with 2.1.4/2.1.5, too?

I've been able to install the weblaz package in lazarus with fpc-2.1.5, 
but I can't compile an apache module due to missing fpApache unit. 

fpApache seems to be missing in packages/fcl-web/Makefile.fpc in 
fixes_2_2 as well as in trunk.
Simply adding fpApache to the Makefile.fpc (and doing the fpcmake -Tall) 
doesn't solve it: can't find unit httpd used by fpApache.
Here I'm loosing it. From the buildlog I can see, that there is no 
-Fu{fpcsrc}/packages/base/httpd/ when compiling fpApache, even though 
httpd-1.3 -2.0 and 2.2 are compiled before. 

any hints?

regards
 Burkhard

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


Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Michael Van Canneyt


On Wed, 6 Jun 2007, Burkhard Carstens wrote:

 Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:
  On Tue, 5 Jun 2007, Darius Blaszijk wrote:
   Hi I would like to upload a file through a web page. How can I do
   this using FPC? Is there any example available?
 
  The fpweb or cgiapp components can do this for you.
 
 The README.TXT in lazarus/components/fpweb/ states:
 fpWeb does not work with fpc 2.0.4.
 It needs at least 2.3.x.
 
 Is 2.3.x still minimum, or could it work with 2.1.4/2.1.5, too?

It could, except the apache support.

 
 I've been able to install the weblaz package in lazarus with fpc-2.1.5, 
 but I can't compile an apache module due to missing fpApache unit. 
 
 fpApache seems to be missing in packages/fcl-web/Makefile.fpc in 
 fixes_2_2 as well as in trunk.
 Simply adding fpApache to the Makefile.fpc (and doing the fpcmake -Tall) 
 doesn't solve it: can't find unit httpd used by fpApache.
 Here I'm loosing it. From the buildlog I can see, that there is no 
 -Fu{fpcsrc}/packages/base/httpd/ when compiling fpApache, even though 
 httpd-1.3 -2.0 and 2.2 are compiled before. 
 
 any hints?

Hm. As far as I know, it should build - it builds here.
The problem may be that your fpcmake is outdated. I think peter or me did
some fixes in fpcmake.

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


Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Burkhard Carstens
Am Mittwoch, 6. Juni 2007 18:07 schrieb Michael Van Canneyt:
 On Wed, 6 Jun 2007, Burkhard Carstens wrote:
  Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:
   On Tue, 5 Jun 2007, Darius Blaszijk wrote:
Hi I would like to upload a file through a web page. How can I
do this using FPC? Is there any example available?
  
   The fpweb or cgiapp components can do this for you.
 
  The README.TXT in lazarus/components/fpweb/ states:
  fpWeb does not work with fpc 2.0.4.
  It needs at least 2.3.x.
 
  Is 2.3.x still minimum, or could it work with 2.1.4/2.1.5, too?

 It could, except the apache support.

:-) Ok, then I'll skip the apache support for now and start playing with 
the cgi stuff. seems to be easy portable later.

  I've been able to install the weblaz package in lazarus with
  fpc-2.1.5, but I can't compile an apache module due to missing
  fpApache unit.
 
  fpApache seems to be missing in packages/fcl-web/Makefile.fpc in
  fixes_2_2 as well as in trunk.
  Simply adding fpApache to the Makefile.fpc (and doing the fpcmake
  -Tall) doesn't solve it: can't find unit httpd used by fpApache.
  Here I'm loosing it. From the buildlog I can see, that there is no
  -Fu{fpcsrc}/packages/base/httpd/ when compiling fpApache, even
  though httpd-1.3 -2.0 and 2.2 are compiled before.
 
  any hints?

 Hm. As far as I know, it should build - it builds here.
 The problem may be that your fpcmake is outdated. I think peter or me
 did some fixes in fpcmake.

fpcmake -V says 2.0.0 from today. It's from fixes_2_2 svnrev 7559.
I didn't experiment with fpc-trunk, cause currently it seems too hot. 
However, I checked it out and searched all Makefiles as well as *.fpc 
and there is absolutely no appearance of fpapache .. so I don't 
understand why/how it should be compiled.

regards
  Burkhard


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


Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Darius Blaszijk
Thanks to all for their help. For now I will stick to psp because I need 
it to work with 2.0.4.


Darius

Michael Van Canneyt wrote:

On Tue, 5 Jun 2007, Darius Blaszijk wrote:

  

Hi I would like to upload a file through a web page. How can I do this using
FPC? Is there any example available?



The fpweb or cgiapp components can do this for you.

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] FPC only 32 bits?

2007-06-06 Thread Francisco Reyes

Henry Vermaak writes:


-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl


To which directory do I point it to?
find . -name crt*
shows me that the only compiled rtl are in rtl/units/i386-freebsd

Was the cross compile supposed to do the rtl in a different directory?



you will also want to tell ppcrossx64 what your binutils prefix is by
using -XPx86_64-freebsd-.  also make sure that the compiler can find
your binutils (put it on the path).



Ok.

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


Re: [fpc-pascal] FPC only 32 bits?

2007-06-06 Thread Francisco Reyes

Henry Vermaak writes:


either change fpc.cfg, or pass the options to ppcrossx64.  the
relevant lines in fpc.cfg are:


Where do I put that file?
I only see one file in /usr/local/etc that was installed from the port.
The other 2 I see are in fpcbuild instead of the fpc directory.

Do I create the file in /usr/local/etc in my amd64 machine? 
___

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


Re: [fpc-pascal] FPC only 32 bits?

2007-06-06 Thread Francisco Reyes

Henry Vermaak writes:


usually fpc.cfg is configured to find the units, but because you
installed the compiled units in a different folder, you will need to
either change fpc.cfg


How do I tell the compiler where to look for the fpc.cfg?
I copied the fpc.cfg from my i386 machine, made the change and tried. Didn't 
help. Put it in the same place I have it in the i386 architecture. 
/usr/local/etc/


On the command line I added -Fupath and found the diretory.

Now I have a different problem.
PPU Loading /data/fpc/rtl/units/i386-freebsd/system.ppu
PPU is compiled for another processor

How do I compile the units for AMD64?
Do I need to cross compile them or can I compile them with this compiler in 
the AMD64.



you will also want to tell ppcrossx64 what your binutils prefix is by
using -XPx86_64-freebsd-.


Was there a dash at the end there or is that a typo?



 also make sure that the compiler can find
your binutils (put it on the path).


I don't see a directory by that name. Is the directory called something 
other than binutils?


Originally I embarked on this cross compile because I was told that the 
freebsd port did not support AMD64 because of some problems. Is what I have 
done so far further than previously achieved? Just wondering if this that I 
am trying is of any help at all. 

The person that reported the issue with the amd64 port was Marco van de 
Voort, in this same thread.


In particular he wrote.


It is possible to create a binary for amd64, but that binary doesn't work,
and I don't know why. FreeBSD keeps complaining it can't execute it.

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


Re: [fpc-pascal] FPC only 32 bits?

2007-06-06 Thread Francisco Reyes

Henry Vermaak writes:


you will also want to tell ppcrossx64 what your binutils prefix is by
using -XPx86_64-freebsd-.  also make sure that the compiler can find
your binutils (put it on the path).


Based on some searching it seems I need to build the rtl in the AMD64 
machine. After some inspection of the Makefile it seemed like I needed to 
point to variables: 
FPC

BINUTILSPREFIX

From what I can tell BINUTILSPREFIX needs to point to among other things 

where the assember is so I set those to variables to:
setenv FPC /data/fpc/compiler/ppcrossx64
setenv BINUTILSPREFIX /usr/bin/

Now when I try to run gmake on the rtl directory I get:
gmake[1]: Entering directory `/data/fpc/rtl/freebsd'
gmake[1]: *** No rule to make target `x86_64/cprt0.as', needed by `cprt0.o'. 
Stop.

gmake[1]: Leaving directory `/data/fpc/rtl/freebsd'
gmake: *** [freebsd_all] Error 2

Don't think I can go any further without help. :-(

Also how do I tell gmake that I am doing freebsd only?
gmake -C freebsd all ?

That is what I see after typing gmake in the rtl directory.   
___

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


Re: [fpc-pascal] FPC only 32 bits?

2007-06-06 Thread Pete Cervasio
On Wednesday 06 June 2007 18:26:15 Francisco Reyes wrote:
 Henry Vermaak writes:
   also make sure that the compiler can find
  your binutils (put it on the path).

 I don't see a directory by that name. Is the directory called something
 other than binutils?

I don't think I can help with the rest of your cross-compiling adventure, but 
maybe I can help with an brief explanation of binutils.  The binutils package 
is the set of GNU binary utilities.  This includes the assembler (as), 
linker (ld) and other utilities for working with binary program files.  In 
order to make files that will run on 64 bit freebsd, you'll want to find (or 
build) a binutils package that works with binaries for 64 bit freebsd.

I hope this is helpful.

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