Recent

Author Topic: Lnet, Indy new versions ?  (Read 11524 times)

mirce.vladimirov

  • Sr. Member
  • ****
  • Posts: 268
Lnet, Indy new versions ?
« on: September 29, 2015, 02:51:16 pm »
I got Lnet 0.6.5 released in March 2011 on http://sourceforge.net/projects/lazarus-ccr/files/lNet/ and Indy indy4lazarus-20040117 on  http://sourceforge.net/projects/indy4lazarus/?source=typ_redirect.
I wanted to test Indy. Tried to install but diferent kind of errors reported about comment on leve13 in IdWinSock2.pas then i removed those extra "{" and tried to install again but then another error was reported about "asm found instead of begin", something like that. It was too much work for me, I know there are alternatives in FreePascal/Lazarus.
So i dumped the Indy4Laz and I turned on to Lnet 0.6.5, initially had a little problem but few people on this forum helped me out and i finally managed to programaticaly download stuf via Lnet's FTP and I thought everything was fine, But nope, I bumped into a bug described at http://forum.lazarus.freepascal.org/index.php/topic,12422.msg63878.html#msg63878 where Lnet's author Almindor (highest respect for his work on Lnet) says he was going to fix that bug for the next release and that gave me hope that there are probably later versions of both Indy4Lazarus and Lnet but it is mabe me that cant google it out.

So, does anybody knows, are there later stabile versions than these ?

P.S. I know about Synapse, it's really great, powerful yet simple to use, but it's not supported for WinCE/WindowsMobile/WindowsEmbeded.

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Lnet, Indy new versions ?
« Reply #1 on: September 29, 2015, 02:55:54 pm »
Current version of Indy:   http://indy.fulgan.com/ (in zip directory)

Indy forum:   http://forums2.atozed.com/
« Last Edit: September 29, 2015, 02:57:30 pm by ChrisF »

derek.john.evans

  • Guest
Re: Lnet, Indy new versions ?
« Reply #2 on: September 29, 2015, 03:30:36 pm »
I don't even try to install the fulgan Indy version. Its too problematic.

Just add these 3 folders to your project path:
Code: [Select]
indy\Lib\Protocols;
indy\Lib\System;
indy\Lib\Core;

And then create your Indy components in code. Its a far more powerful way to get full control over Indy.

Or, the other option, is to get the Indy version released with CodeTyphon.

(07-07-2015 ver 10.6.2.10  SVN Rev 5284) from the CodeTyphon libraries:
http://www.pilotlogic.com/codetyphon/current/src/typhon_src.7z

Copy the folder pl_Indy to your components folder.

Open the package, and you need to replace the requirement "bs_ideintf" with "ideintf".

It will then compile and install into Lazarus, and you will have a bunch of pretty new component tabs.

Even though I have the Typhon version installed, I only use it to find components and units. I still create the components via code.
« Last Edit: September 29, 2015, 03:32:28 pm by Geepster »

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Lnet, Indy new versions ?
« Reply #3 on: September 29, 2015, 03:43:48 pm »
I don't even try to install the fulgan Indy version. Its too problematic.   [...]

I don't agree. The current versions of the fulgan Indy release are less "problematic".

Currently, the only remaining trouble concerning the installation is the necessity to compile the package twice before installing it and rebuilding the IDE.

And it's not really necessary to add the Indy paths in the project (if Indy controls are not used, I mean): adding the indylaz package in the concerned project dependencies is much more simple and portable, IMHO.
« Last Edit: September 29, 2015, 03:49:05 pm by ChrisF »

derek.john.evans

  • Guest
Re: Lnet, Indy new versions ?
« Reply #4 on: September 29, 2015, 03:49:06 pm »
Currently, the only remaining trouble concerning the installation is the necessity to compile the package twice before installing it and rebuilding the IDE.

I'll try that next time I install. Thanks for the info.

derek.john.evans

  • Guest
Re: Lnet, Indy new versions ?
« Reply #5 on: September 29, 2015, 04:04:52 pm »
Currently, the only remaining trouble concerning the installation is the necessity to compile the package twice before installing it and rebuilding the IDE.

I'll try that next time I install. Thanks for the info.

Tried it. Grrrrr. Missing files. I tried the instructions from here:
http://wiki.freepascal.org/Indy_with_Lazarus

Obviously it is possible, but I prefer the 3 project path method, or Typhon library method.

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Lnet, Indy new versions ?
« Reply #6 on: September 29, 2015, 05:27:57 pm »
Well, I don't intend to force anybody to use a given method to install Indy. But I think it would be easier, especially for people who are not "experts", to just use the standard package released by default for Indy.

Apparently, the standard package is working for some other people, including me (see the last page of  this topic http://forum.lazarus.freepascal.org/index.php/topic,20782.45.html, for instance).

But I'm afraid the wiki is a bit outdated.

Could you please post the error message you've got (i.e. what file is missing) ? It would interesting to know which problem you've encountered, in order to see if this issue could be fixed.

For instance, as an illustration here are my own -standard- steps to install Indy (fulgan current package):

- unzip the whole package (though only a few directories are needed, indeed),
- open the Indy package (indylaz.lpk) in the Lazarus IDE,
- compile it.,
- compile it once again. This is the only remaining issue concerning the installation; and the second compilation is extremely fast as it's not really a "compilation",
- use -> install,
- rebuild the Lazarus IDE.

It's OK for me, without any directory manipulations nor any file changes or updates.

There are still a few issues for Indy but they are not really concerning the installation:

- as spotted by GetMem, there is a problem with the TIdSync unit (if you are using it of course),
- the by-default icons installed in the Lazarus IDE are the 16 color ones: they are a bit "weird" (at least IMHO). But .lrs files with the 256 color ones are available (they must be replaced before the package compilation step).

derek.john.evans

  • Guest
Re: Lnet, Indy new versions ?
« Reply #7 on: September 29, 2015, 05:57:47 pm »
WinXP LAZ1.5 FPC3.0
Unzipped into C:\components\Indy10_5304\

indysystemlaz.lpk seems to be missing (apart from the builder template)

I'm unsure what the package builder stuff does. It seems like the packages don't refer to the filenames in the directory structure, or, maybe paths have to be set, or, I don't know.

Would be nice if this was cleared up.

**EDIT**

I tried the package from here which compiled.
http://forum.lazarus.freepascal.org/index.php/topic,20782.msg178828.html#msg178828

So, I guess, the Indy guys need to update their package.

« Last Edit: September 29, 2015, 06:28:02 pm by Geepster »

balazsszekely

  • Guest
Re: Lnet, Indy new versions ?
« Reply #8 on: September 29, 2015, 06:48:58 pm »
@Geepster

1. Create a folder inside "$(LazarusDir)/Components",  Indy10.6.2.0 for example.
2. Unzip "Indy10_5304.zip\Lib\Core" , "Indy10_5304.zip\Lib\Protocols", "Indy10_5304.zip\Lib\System" and "Indy10_5304.zip\Lib\indylaz.lpk"   to Indy10.6.2.0.
3. Open indylaz.lpk, compile twice, then install.
4. You have the latest version of indy

« Last Edit: September 29, 2015, 07:00:24 pm by GetMem »

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Lnet, Indy new versions ?
« Reply #9 on: September 29, 2015, 07:18:50 pm »
@Geepster:

Did you use the .lpk files into the \Builder(\Package Generator\LazTemplates) directory ? (Edit: Or have you used the "all files in one directory method" of the Wiki with the current .lpk file ?)

If yes, it's the reason of your troubles: this directory is not to be used for.

In fact, and as also indicated by GetMem, only -a part- of the files and subdirectories of the \Lib directory must be used.

I've made a test using the standard (i.e. fulgan) \Lib\indylaz.lpk file with a configuration similar to yours (WinXP with trunk versions of FPC and Lazarus) and it's OK for me.


Anyway, there is an additional problem with the trunk versions of Lazarus.

When you modify the "Set UTF-8 in RTL" option, the Indy package is compiled with some other parts of the LCL; which is really a problem at this step, because of the current remaining issue (i.e. the reason to compile Indy twice during the installation of the package).


*** Edit***

BTW, by curiosity I've just had a quick glance at the Code Typhon version of Indy.

Apparently they have provided a fix for the remaining issue (in ctinfo.txt):
Quote
NOTE: IdStream.pas: spilt to IdStream_int.inc, IdStream_imp.inc and add to IdGlobal.pas

And they are also installing the 256 colors icons by default.
« Last Edit: September 29, 2015, 07:35:25 pm by ChrisF »

Graeme

  • Hero Member
  • *****
  • Posts: 1496
    • Graeme on the web
Re: Lnet, Indy new versions ?
« Reply #10 on: September 30, 2015, 10:32:30 am »
Obviously it is possible, but I prefer the 3 project path method
I haven't tried the latest Indy, but in general I fully agree with what you said. These days I have more issues with Lazarus Packages than ever before. Due to that I now rather opt to use Path Macros and specify the paths in new project templates - pretty much like MSEide does as standard for years. This method just works, and no more fighting with Laz Packages, and I get more optimised compiled units and executables in the end.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1496
    • Graeme on the web
Re: Lnet, Indy new versions ?
« Reply #11 on: September 30, 2015, 10:35:11 am »
steps to install Indy (fulgan current package):

This is the first time I hear the term "fulgan". Would you mind explaining what that is? Is it the official Indy or a fork?
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

mirce.vladimirov

  • Sr. Member
  • ****
  • Posts: 268
Re: Lnet, Indy new versions ?
« Reply #12 on: September 30, 2015, 10:48:09 am »
Current version of Indy:   http://indy.fulgan.com/ (in zip directory)

Indy forum:   http://forums2.atozed.com/

@graeme

This was a few posts back.

Graeme

  • Hero Member
  • *****
  • Posts: 1496
    • Graeme on the web
Re: Lnet, Indy new versions ?
« Reply #13 on: September 30, 2015, 12:13:41 pm »
Indy forum:   http://forums2.atozed.com/

This was a few posts back.

Thanks.  Umm.... Forums.... What happened to the NNTP newsgroups?  atozedsoftware.infy.fpc etc.  If they dropped NNTP, that is a real shame too.... I hate web forums!
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Thaddy

  • Hero Member
  • *****
  • Posts: 18792
  • Glad to be alive.
Re: Lnet, Indy new versions ?
« Reply #14 on: September 30, 2015, 02:46:40 pm »
Indy forum:   http://forums2.atozed.com/

This was a few posts back.

Thanks.  Umm.... Forums.... What happened to the NNTP newsgroups?  atozedsoftware.infy.fpc etc.  If they dropped NNTP, that is a real shame too.... I hate web forums!

NNTP has no authentication mechanism since it is derived from old spec SMTP, making it very, very vulnerable to spoofing and spamming.

Hence nobody wants to, or should, use it.
It has passed its sell-by date.

(This time I leave out what some consider Indy bashing since it is not relevant)
« Last Edit: September 30, 2015, 02:49:35 pm by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

 

TinyPortal © 2005-2018