Install the latest build of Indy 10 on Delphi 2009 [duplicate]
Asked Answered
T

4

5

Is there a step-by-step guide for updating the Indy 10 components in Delphi 2009?

I've read the uninstalling thread and have the latest build (IndyTiburon.zip). However there appears to be no installation instructions.

If you have accomplished this, please share the details.

Edit: I have managed to get the packages installed by messing with the "requires" section in dclIndyProtocols120 and dclIndyCore120.

Essentially removed all Indy package dependencies from "requires" section and just used the Library path resolve things. Added ..\Lib\Core, ..\Lib\System and ..\Lib\Protocols to the Lib path. Had to leave dclIndyProtocols120 in requires for dclIndyCore120 as it wont install without this.

All 3 packages compiled (including IndySystem120) and seems to be working okay now.

This should be easier for D2009 users. I had to update to resolve an SMTP bug in Indy (see link).

Thurmanthurmann answered 31/5, 2009 at 5:21 Comment(1)
Found my issues to be in the uninstallation of the default Indy 10 files. This needs to be very thorough. Once completed, the updated components install without issue by compiling System120, Core120 and Protocols120 and installing Core and Protocols. However - this really shouldn't be this difficult. D2009 needs a better process here to update default components; especially when bugs are discovered in the delivered code.Thurmanthurmann
P
1

On this question there is a more satisfying answer.

Publius answered 9/7, 2010 at 12:46 Comment(0)
S
0

For all versions before D2009 you can use a Fulldx.bat script to recompile the packages and then just open the BPL files in (for example Indy-10.5.5\D6\dclIndyCore60.bpl and Indy-10.5.5\D6\dclIndyProtocols60.bpl) in the Delphi 2009 IDE packages dialog. Now with Delphi 2009, the FullD12.bat is there but it is not doing anything.

My simple solution is to create Indy components at run time only. I add the Indy Tiburon Core, System and Protocols to the projects search path, and also use Apache Ant with a build script to run the compiler for the final build.

Spragens answered 31/5, 2009 at 7:17 Comment(3)
Yes,FullD12.bat does nothing. I've opened and compiled IndySystem120.dpk okay, but that's a far as I get. IndyCore120 wont compile and complains that IndySystem120 cannot be found.Thurmanthurmann
makeD12.proj in the Lib directory looks interesting, but I get error messages if I run it in the RAD command line window. However, it contains references to the neccessary packages - you could try to build these in the same order: System\IndySystem120, Core\IndyCore120, Core\dclIndyCore120, Protocols\IndyProtocols120, Protocols\dclIndyProtocols120Spragens
@Gerard, in the IndyCore120 file, look for required, and change the path for the required IndySystem120 to where it's located.Middendorf
B
0

One IIRC needs to compile system core and protocols in that order.

Moreover a package is a .BPL and a .DCP. So you probably would have to copy the .bpl and the .dcp to that directory in a normal case. The .BPL is what programs need to run, but to compile something that uses the .BPL (statically) you also needs the .dcp.

But that doesn't work for the Indy caseafaik because it also needs includefiles, so you need to add all their paths to the library path.

IIRC is that Delphi (at least the versions that I know) don't add directories to paths when installed, and one must always add paths to directories with .dcp or .dcu's manually.

(contrary to Lazarus that builds a list of dirs from the installed packages. But partially that is maybe also a fix for not having something akin .dcp yet, and in generally be more source oriented)

Note that I don't have D2009, it is just experience from general manual Indy compilation.

Brunk answered 31/5, 2009 at 10:9 Comment(2)
Indy works fine in Delphi 2009 with only the dcu path (<myIndyTiburon>\D12) in the library path here. I add Indy to the source path only if I build using a build script, to avoid the risk of out-of-date dcu's.Spragens
Give all packages the same dcu target dir to avoid that.Brunk
I
0

Maybe a simple method for anyone looking 10 years later... (tested under Delphi XE5):

  1. Download the latest Version from https://indy.fulgan.com/ZIP/.

  2. Extract the ZIP-archive into a folder of your choosing (I made a folder "Delphi Lib" under my Documents).

  3. Throw out all Indy .dcu Files (Indy[...].dcu and Id[...].dcu) from your Delphi installation (for Example: C:\Program Files (x86)\Embarcadero\RAD Studio\12.0 (The last folders name may vary on your installation))
  4. Open Delphi and go to Tools -> Options. Get to the "Library"-Listing and add the following folders of your newly downloaded Indy: /lib/Core/, /lib/System, /lib/Protocols.

As always: Help yourself and make backups before deleting anything. You do not want to reinstall your comlete Delphi because you threw away a file you should've kept...

Introduce answered 18/7, 2019 at 14:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.