Sign in Join

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

Mailing lists / lazarus / 2008-06

Using internet componets with Lazarus.

21 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

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

Paul Linehan

Hi all,

Have just downloaded lazarus and am playing around with it. I'm the type of person who needs a project to keep me focused so what I'd like to do is to
write a newsreader with Lazarus (yawn.. yes I know there are 40 million newsreaders out there, but it's something that I want to do!).

So, my question is, where is the best place to
get internet components for Lazarus? On searching, I see that there are two possibilities

1) ICS

and

2) Indy

Has anyone used these successfully with Lazarus?

If so, how do I go about the download and install
process, preferably with a sample project or
two to get started on - hint. really really simple, plain step by step instructions appreciated.

I am currently running Windows XP Pro, but I plan
to make the move to Linux soon.

TIA for any help, references, suggestions &c.

Rgs.

Paul...

Tel: (00 353) 86 864 5772

_____________________________________________________________________________ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

Reply by email

Ales Katona
to Paul Linehan

You can also try lNet ( http://wiki.freepascal.org/lNet ) which tries to be lightweight and extra-portable. (I'm the author so beware my bias :D)

There's also Synapse ( http://synapse.ararat.cz/doku.php ) which isn't as portable, but perhaps more tried.

Indy works in Linux/fpc now too AFAIK, but ICS is windows only from what I understand.

As for "style" comparison, lNet is mostly like ICS (event based, non-blocking), whereas Indy is "heavyweight" (threads, blocking IIRC) but has most components. Synapse is "non-visual" (no components to "click" on form IIRC).

Ales

Reply by email

Michael Van Canneyt
to Paul Linehan: Have just downloaded lazarus and am playing around with it. I'm the type of person who…
Paul Linehan wrote 24 lines
Hi all, Have just downloaded lazarus and am playing around with it. I'm the type of person who needs a project to keep me focused so what I'd like to do is to write a newsreader with Lazarus (yawn.. yes I know there are 40 million newsreaders out there, but it's something that I want to do!). So, my question is, where is the best place to get internet components for Lazarus? On searching, I see that there are two possibilities 1) ICS and 2) Indy Has anyone used these successfully with Lazarus?

I have used Indy. Just install the indy4lazarus package, I think you can find it on the lazarus-ccr site.

There is also Synapse, which is IMHO easier to use than Indy, on the other hand, it is possible that Indy has a ready-to-use NNTP protocol component, though.

Michael.

Reply by email

Zaher Dirkey
to Paul Linehan: Have just downloaded lazarus and am playing around with it. I'm the type of person who…

3 - Synapse http://synapse.ararat.cz/doku.php

Paul Linehan wrote 57 lines
Hi all, Have just downloaded lazarus and am playing around with it. I'm the type of person who needs a project to keep me focused so what I'd like to do is to write a newsreader with Lazarus (yawn.. yes I know there are 40 million newsreaders out there, but it's something that I want to do!). So, my question is, where is the best place to get internet components for Lazarus? On searching, I see that there are two possibilities 1) ICS and 2) Indy Has anyone used these successfully with Lazarus? If so, how do I go about the download and install process, preferably with a sample project or two to get started on - hint. really really simple, plain step by step instructions appreciated. I am currently running Windows XP Pro, but I plan to make the move to Linux soon. TIA for any help, references, suggestions &c. Rgs. Paul... Tel: (00 353) 86 864 5772 _____________________________________________________________________________ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Zaher Dirkey

Reply by email

Marco van de Voort
to Paul Linehan: Have just downloaded lazarus and am playing around with it. I'm the type of person who…
Paul Linehan wrote 6 lines
Have just downloaded lazarus and am playing around with it. I'm the type of person who needs a project to keep me focused so what I'd like to do is to write a newsreader with Lazarus (yawn.. yes I know there are 40 million newsreaders out there, but it's something that I want to do!).

Search for "openXP", they had a pretty complex BBS/email/nntp app at some point. It was console based though.

Show quoted text 12 lines
So, my question is, where is the best place to get internet components for Lazarus? On searching, I see that there are two possibilities 1) ICS and 2) Indy Has anyone used these successfully with Lazarus?

Indy 10 works and is fairly platform independant. ICS is windows only by design (though an attempt was made to emulate that on Kylix. I never bothered)

I used ICS, Indy9 and Indy10 with Lazarus. The wiki has details about Indy10 somewhere with an archive pointing to my site.

If so, how do I go about the download and install process, preferably with a sample project or two to get started on - hint. really really simple, plain step by step instructions appreciated.

Well, that's the main problem with Indy10, examples are pretty worthless.

I am currently running Windows XP Pro, but I plan to make the move to Linux soon.

Then ICS is out of the question.

Reply by email

Osvaldo TCF
to Jon Bertrand

Hi, i have:
-Ubuntu 8.04
-fpc fixes 2.2.3 from subversion
-lazarus r15400
-http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_2/install from subversion: root repository: http://svn.freepascal.org/svn/fpcbuild

How can:
-create all packages for installation on others ubuntu machines, all needed packages for cross compile: linux -> win32

-crosscompile linux -> win32

I have did download information for cross compile 2.0.4 and read a wiki page.

Thanks.

Reply by email

Mattias Gaertner
to Osvaldo TCF
Show quoted text 11 lines
Hi, i have: -Ubuntu 8.04 -fpc fixes 2.2.3 from subversion -lazarus r15400 -http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_2/install from subversion: root repository: http://svn.freepascal.org/svn/fpcbuild How can: -create all packages for installation on others ubuntu machines, all needed packages for cross compile: linux -> win32

Please define 'create all packages'.
Many packages can be cross compiled without any specials. Packages using external libraries need the cross compiled libraries.

-crosscompile linux -> win32

Did you install the fpc-crosswin32 package?

I have did download information for cross compile 2.0.4 and read a wiki page.

The cross compilation steps have not changed much since then.

Mattias

Reply by email

Osvaldo TCF
to Mattias Gaertner
?Please define 'create all packages'.

Create debian packages fpc, fpc-src and lazarus from my local subversion is done.
I want create fpc-crosswin32 debian pacages from my local subversion, without internet connection.

?Did you install the fpc-crosswin32 package?

No, how can do that?

Please, more one, how can i do win32 setup from my local subversion without internet conection?

I am a studant and install fpc and lazarus on several machines (ubuntu and windows) on my school!

Thanks.

Mattias Gaertner wrote 35 lines
On Mon, 30 Jun 2008 16:22:27 -0300 Osvaldo TCF wrote: > Hi, i have: > -Ubuntu 8.04 > -fpc fixes 2.2.3 from subversion > -lazarus r15400 > -http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_2/install > from subversion: root repository: > http://svn.freepascal.org/svn/fpcbuild > > How can: > -create all packages for installation on others ubuntu machines, all > needed packages for cross compile: linux -> win32 Many packages can be cross compiled without any specials. Packages using external libraries need the cross compiled libraries. > -crosscompile linux -> win32 Did you install the fpc-crosswin32 package? > I have did download information for cross compile 2.0.4 and read a > wiki page. The cross compilation steps have not changed much since then. Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gärtner
to Osvaldo TCF

Zitat von Osvaldo TCF :

Show quoted text 5 lines
> ???Please define 'create all packages'. Create debian packages fpc, fpc-src and lazarus from my local subversion is done. I want create fpc-crosswin32 debian pacages from my local subversion, without internet connection.

I don't know the minimum set of packages. But here is the list of packages that I install:
apt-get install build-essential fakeroot libgpmg1-dev

build-essential is a meta package installing all kinds of developer tools/sources.
And you need the binutils sources from
http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.gz. Download it to ~/freepascal/download/, because the script searches it there.

> ???Did you install the fpc-crosswin32 package? No, how can do that?

It's available on the lazarus sourceforge page. But only for the 0.9.24 release.

Please, more one, how can i do win32 setup from my local subversion without internet conection?

Do you mean for cross compiling from linux to win32?

I am a studant and install fpc and lazarus on several machines (ubuntu and windows) on my school!

Mattias

Reply by email

Osvaldo TCF
to Mattias Gärtner

?

It's available on the lazarus sourceforge page. But only for the 0.9.24 release.

How can i create it for svn release?

?

And you need the binutils sources from http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.gz. Download it to

can i use the binutils source package from ubuntu repository?

?Do you mean for cross compiling from linux to win32?

Can i Create a lazarus and fpc install for win32 from my local subversion?

Thanks.

Mattias G?rtner wrote 38 lines
Zitat von Osvaldo TCF : > > ???Please define 'create all packages'. > Create debian packages fpc, fpc-src and lazarus from my local subversion > is done. > I want create fpc-crosswin32 debian pacages from my local subversion, > without internet connection. I don't know the minimum set of packages. But here is the list of packages that I install: apt-get install build-essential fakeroot libgpmg1-dev build-essential is a meta package installing all kinds of developer tools/sources. ~/freepascal/download/, because the script searches it there. > > ???Did you install the fpc-crosswin32 package? > No, how can do that? > Please, more one, how can i do win32 setup from my local subversion > without internet conection? > I am a studant and install fpc and lazarus on several machines (ubuntu > and windows) on my school! Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gärtner
to Osvaldo TCF

Zitat von Osvaldo TCF :

Show quoted text 6 lines
??? > > It's available on the lazarus sourceforge page. But only for the 0.9.24 release. > How can i create it for svn release?

see lazarus/tools/install/cross_unix/HowToCreate_fpc_crosswin32_deb.txt

Show quoted text 5 lines
??? > And you need the binutils sources from > http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.gz. Download it to can i use the binutils source package from ubuntu repository?

I don't know. Maybe.

> ???Do you mean for cross compiling from linux to win32? Can i Create a lazarus and fpc install for win32 from my local subversion?

Do you mean this
http://wiki.lazarus.freepascal.org/Getting_Lazarus#Development_versions_from_SVN ?

Mattias

Reply by email

Osvaldo TCF
to Mattias Gärtner

?

I see this. But i want to create windows (32) lazarus/fpc install (for distribuition) from my debian subversion repository, without a windows machine. Is it possible?

Thanks.

Mattias G?rtner wrote 33 lines
Zitat von Osvaldo TCF : > ??? > > > > It's available on the lazarus sourceforge page. But only for the 0.9.24 > release. > > > How can i create it for svn release? see lazarus/tools/install/cross_unix/HowToCreate_fpc_crosswin32_deb.txt > ??? > > And you need the binutils sources from > > http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.gz. Download it to > > can i use the binutils source package from ubuntu repository? I don't know. Maybe. > > ???Do you mean for cross compiling from linux to win32? > > Can i Create a lazarus and fpc install for win32 from my local subversion? Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Osvaldo TCF
There is a way to create a debian package from local subversion for a past revision, in this case the revision 15400 ?

cd lazarus
svn up -r 15400.
cd tools/install
./create_lazarus_deb.sh

Mattias

Reply by email

Osvaldo TCF
to Mattias Gärtner: Zitat von Osvaldo TCF : see lazarus/tools/install/cross_unix/HowToCreate_fpc_crosswin32_de…

The tree of directories is:

--|~
|--|freepascal
|--|install (fpc install)
|--|binutils (uncompressed binutils source)
|--|download (nothing to download)
|--|fpc (fpc from svn export)

in ~/pascal-src/subversion/export/teste/tools/install/cross_unix $: /subversion/export/teste/tools/install/cross_unix ./create_linux_cross_win32_deb.sh buildcrossfpc buildcrosswin32deb

...
+ cat buildcrosssnaphot
+ sed -e 's#^CROSSTOOLSROOT=.*
$#CROSSTOOLSROOT=/home/eu/freepascal/binutils/cross/#' -e 's#^FPCSVN=.* $#FPCSVN=/home/eu/freepascal/fpc#' -e 's#^FPCCVS=.* $#FPCCVS=/home/eu/freepascal/fpc#' -e 's#^TARGETS_OS=.* $#TARGETS_OS=win32#' -e 's#^TARGETS_CPU=.*$#TARGETS_CPU=i386#' -e 's#^MOS=cygwin$#MOS=mingw32#'
+ echo 'building cross fpc for target i386-win32
in /home/eu/freepascal/bintuils/cross/destination/' building cross fpc for target i386-win32
in /home/eu/freepascal/bintuils/cross/destination/
+ echo 'see logs in /home/eu/freepascal/bintuils/cross/logs/' see logs in /home/eu/freepascal/bintuils/cross/logs/
+ sh buildcrosssnapshot.sh
HOST platform is unknown-linux
Building i386-win32
cant find binutils-i686-win32 for FPC-i386-win32
...

where is it: binutils-i686-win32

...
+ mkdir -p /tmp/fpc_build/usr/bin/
+ MyIntel=i686
+ for Target in '$Targets'
++ echo i386-win32
++ sed -e 's#^\(.*\)-.*$#\1#'
+ TargetCPU=i386
++ echo i386-win32
++ sed -e 's#^.*-\(.*\)$#\1#'
+ TargetOS=win32
+ BinUtilsCPU=i386
+ BinUtilsOS=win32
+ '[' win32 = win32 ']'
+ BinUtilsOS=mingw32
+ BinUtilsCPU=i686
+ BinUtilsDir=/home/eu/freepascal/binutils/cross/bin/
+ BinUtilsPrefix=i686-mingw32-
+ cd /home/eu/freepascal/binutils/cross/bin/
./create_linux_cross_win32_deb.sh: line 160: cd: /home/eu/freepascal/binutils/cross/bin/: file or directory not found

Reply by email

Mattias Gaertner
to Osvaldo TCF
Show quoted text 12 lines
The tree of directories is: --|~ |--|freepascal |--|install (fpc install) |--|binutils (uncompressed binutils source) |--|download (nothing to download) |--|fpc (fpc from svn export) in ~/pascal-src/subversion/export/teste/tools/install/cross_unix $: /subversion/export/teste/tools/install/cross_unix ./create_linux_cross_win32_deb.sh buildcrossfpc buildcrosswin32deb

Have you executed before:

./create_linux_cross_win32_deb.sh buildbinutils

?

Show quoted text 44 lines
... + cat buildcrosssnaphot + sed -e 's#^CROSSTOOLSROOT=.* $#CROSSTOOLSROOT=/home/eu/freepascal/binutils/cross/#' -e 's#^FPCSVN=.* $#FPCSVN=/home/eu/freepascal/fpc#' -e 's#^FPCCVS=.* $#FPCCVS=/home/eu/freepascal/fpc#' -e 's#^TARGETS_OS=.* $#TARGETS_OS=win32#' -e 's#^TARGETS_CPU=.*$#TARGETS_CPU=i386#' -e 's#^MOS=cygwin$#MOS=mingw32#' + echo 'building cross fpc for target i386-win32 in /home/eu/freepascal/bintuils/cross/destination/' building cross fpc for target i386-win32 in /home/eu/freepascal/bintuils/cross/destination/ + echo 'see logs in /home/eu/freepascal/bintuils/cross/logs/' see logs in /home/eu/freepascal/bintuils/cross/logs/ + sh buildcrosssnapshot.sh HOST platform is unknown-linux Building i386-win32 cant find binutils-i686-win32 for FPC-i386-win32 ... where is it: binutils-i686-win32 ... + mkdir -p /tmp/fpc_build/usr/bin/ + MyIntel=i686 + for Target in '$Targets' ++ echo i386-win32 ++ sed -e 's#^\(.*\)-.*$#\1#' + TargetCPU=i386 ++ echo i386-win32 ++ sed -e 's#^.*-\(.*\)$#\1#' + TargetOS=win32 + BinUtilsCPU=i386 + BinUtilsOS=win32 + '[' win32 = win32 ']' + BinUtilsOS=mingw32 + BinUtilsCPU=i686 + BinUtilsDir=/home/eu/freepascal/binutils/cross/bin/ + BinUtilsPrefix=i686-mingw32- + cd /home/eu/freepascal/binutils/cross/bin/ ./create_linux_cross_win32_deb.sh: line 160: cd: /home/eu/freepascal/binutils/cross/bin/: file or directory not found

Mattias

Reply by email

Osvaldo TCF
to Mattias Gaertner: On Thu, 03 Jul 2008 15:28:55 -0300 Have you executed before:…

Thanks Mattias.
All is good now.

Mattias Gaertner wrote 72 lines
On Thu, 03 Jul 2008 15:28:55 -0300 Osvaldo TCF wrote: > The tree of directories is: > > --|~ > |--|freepascal > |--|install (fpc install) > |--|binutils (uncompressed binutils source) > |--|download (nothing to download) > |--|fpc (fpc from svn export) > > in ~/pascal-src/subversion/export/teste/tools/install/cross_unix > $: /subversion/export/teste/tools/install/cross_unix ./create_linux_cross_win32_deb.sh > buildcrossfpc buildcrosswin32deb Have you executed before: ./create_linux_cross_win32_deb.sh buildbinutils ? > > ... > + cat buildcrosssnaphot > + sed -e 's#^CROSSTOOLSROOT=.* > $#CROSSTOOLSROOT=/home/eu/freepascal/binutils/cross/#' -e > 's#^FPCSVN=.* $#FPCSVN=/home/eu/freepascal/fpc#' -e 's#^FPCCVS=.* > $#FPCCVS=/home/eu/freepascal/fpc#' -e 's#^TARGETS_OS=.* > $#TARGETS_OS=win32#' -e 's#^TARGETS_CPU=.*$#TARGETS_CPU=i386#' -e > 's#^MOS=cygwin$#MOS=mingw32#' > + echo 'building cross fpc for target i386-win32 > in /home/eu/freepascal/bintuils/cross/destination/' > building cross fpc for target i386-win32 > in /home/eu/freepascal/bintuils/cross/destination/ > + echo 'see logs in /home/eu/freepascal/bintuils/cross/logs/' > see logs in /home/eu/freepascal/bintuils/cross/logs/ > + sh buildcrosssnapshot.sh > HOST platform is unknown-linux > Building i386-win32 > cant find binutils-i686-win32 for FPC-i386-win32 > ... > > where is it: binutils-i686-win32 > > ... > + mkdir -p /tmp/fpc_build/usr/bin/ > + MyIntel=i686 > + for Target in '$Targets' > ++ echo i386-win32 > ++ sed -e 's#^\(.*\)-.*$#\1#' > + TargetCPU=i386 > ++ echo i386-win32 > ++ sed -e 's#^.*-\(.*\)$#\1#' > + TargetOS=win32 > + BinUtilsCPU=i386 > + BinUtilsOS=win32 > + '[' win32 = win32 ']' > + BinUtilsOS=mingw32 > + BinUtilsCPU=i686 > + BinUtilsDir=/home/eu/freepascal/binutils/cross/bin/ > + BinUtilsPrefix=i686-mingw32- > + cd /home/eu/freepascal/binutils/cross/bin/ > ./create_linux_cross_win32_deb.sh: line 160: > cd: /home/eu/freepascal/binutils/cross/bin/: file or directory not > found Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Osvaldo TCF: When i cross-compile, from linux (ubuntu) to windows, a have this on messages window:…
Show quoted text 7 lines
When i cross-compile, from linux (ubuntu) to windows, a have this on messages window: dedux.lpr(21,1) Error: resource compiler not found, switching to external mode dedux.lpr(21,1) Error: Can't open object file: ../ppu/fpc-res.or dedux.lpr(21,1) Fatal: There were 2 errors compiling module, stopping

FPC version?
Do you use the fpc-crosswin32 package?
Does this happen even with small program without forms? Does this happen with a new standard application?

Mattias

Reply by email

Osvaldo TCF
to Mattias Gaertner

This occour with TRxDBGrid.
But now, it is not fail.

All is good.

?

FPC version?

2.2.3

Do you use the fpc-crosswin32 package?

yes, package created by me.

Does this happen even with small program without forms?

No. Projects with rxnew in project.lpr

Does this happen with a new standard application?

No.

Thanks.

Mattias Gaertner wrote 18 lines
On Fri, 04 Jul 2008 09:50:27 -0300 Osvaldo TCF wrote: > When i cross-compile, from linux (ubuntu) to windows, a have this on > messages window: > > dedux.lpr(21,1) Error: resource compiler not found, switching to > external mode > dedux.lpr(21,1) Error: Can't open object file: ../ppu/fpc-res.or > dedux.lpr(21,1) Fatal: There were 2 errors compiling module, stopping Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email