Recent

Author Topic: Installing Indy into Lazarus... almost got it but...  (Read 6328 times)

MISV

  • Hero Member
  • *****
  • Posts: 783
Installing Indy into Lazarus... almost got it but...
« on: July 31, 2014, 07:07:09 pm »
Running on Windows / newest Lazarus:

I downloaded the last version from fulgan into a new folder.

  • I opened indylaz.lpk in Lazaruz
  • Clicked options
  • In "compiler opions | paths" I added "Core;Design;FCL;Protocols;System;SuperCore"

Adding the search paths helped a lot, but I still get the following messages and error:

  • PPU loading D:\Installed components\Indy_lazarus\Lib\lib\i386-win32\idStreamVCL.ppu
  • PPU Source: idStreamVCL.pas not found
  • PPU Source: idCompilerDefines.inc not found
  • Recompiling idStreamVCL, checksum changed for idGlobal
  • Unable to find file "idStreamVCL.pas"
    If it belongs to your project, check search path in Projec -> Compiler Options -> Search Paths > Other Unit Files. If this file belongs to a package, check the appropriate package compiler options. If this file belongs to Lazarus, make sure compiling clean. If the file belongs to FPC hen check fpc.cfg. If unsure, check Project > CompilerOptions > Test

What is odd about this is that:
1) I would think "IdStreamVCL.pas" would be for Delphi/VCL?
2) IdStreamVCL.pas is locatted in "lib > system" - a folder already added to search paths
« Last Edit: August 12, 2014, 03:07:04 pm by MISV »

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Installing Indy into Lazarus... almost got it but...
« Reply #1 on: August 12, 2014, 03:05:56 pm »
If anyone has any suggestion on what might be wrong, I would greatly appreciate since I am not sure I can move forward wih my Delphi/Windows to Lazarus/Mac conversion wihout Indy although I am considering alternatives I have seen mentioned here since I only need HTTP and FTP.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Installing Indy into Lazarus... almost got it but...
« Reply #2 on: August 12, 2014, 04:50:05 pm »
When do you get those errors? is it when you compile the package or when you compile the IDE? If it is the second then keep in mind that extending the package's path will not extend the IDE's path automatically or any application that uses your package you need to extend the package's usage units as well.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Installing Indy into Lazarus... almost got it but...
« Reply #3 on: August 13, 2014, 12:04:47 pm »
When I try to compile the package. (Not even sure how/where to recompile the IDE.)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Installing Indy into Lazarus... almost got it but...
« Reply #4 on: August 13, 2014, 12:13:07 pm »
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Installing Indy into Lazarus... almost got it but...
« Reply #5 on: August 13, 2014, 02:29:03 pm »
This well_known bug is related to an improper compilation of the Indy package:
http://bugs.freepascal.org/view.php?id=19673
http://bugs.freepascal.org/view.php?id=24121

Once the Indy package is compiled, when you recompile the IDE to include this new package, the compiler falsely detects that the Indy package is not "completely" compiled.

So, it tries to recompile it, but the paths present into the Indy package file are no more available at this step, and that's why you get the error you've reported.


Adding manually the sub-paths into the Indylaz.lpk file as you've done, is still working.

You just need to compile the package twice before recompiling the IDE (the second compilation is quasi immediate, as it's not really a compilation) : see link reported by taazz.


MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Installing Indy into Lazarus... almost got it but...
« Reply #6 on: August 13, 2014, 03:50:25 pm »
I think I got i working now. Thanks everyone.

I closed all files. Opened the package. Compiled twice. Then installed into IDE. And it worked.

For people having problems, his URL may also be helpful:
http://forum.lazarus.freepascal.org/index.php/topic,20782.0.html

hy

  • Full Member
  • ***
  • Posts: 221
Re: Installing Indy into Lazarus... almost got it but...
« Reply #7 on: October 04, 2014, 11:44:13 am »
Ok, I had a look at:
http://wiki.freepascal.org/Indy_with_Lazarus#How_to_install_.5B3.5D_Windows.2C_Indy_10.5.8.0_and_above
I tried all of the methods mentioned in the wiki - to no avail.
Method 1 resulted: in dclindyprotocolslaz.lpk is not available for installing
Method 2 I do not have a directory "indy-10.2.0.1/fpc"
Method 3 resulted: in indylaz.lpk is not available for installing
Method 4 resulted: in indylaz.lpk is not available for installing
Method 5 resulted: in indylaz.lpk is not available for installing

When I say "indylaz.lpk is not available for installing" I mean:
I go to install/uninstall packages and indylaz.lpk is not in the list labelled 'available for installation'.

Any help/ideas welcome
_____
***hy
OS: debian sid(64bit)  [fpc 3.20] Lazarus 2.0.12

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Installing Indy into Lazarus... almost got it but...
« Reply #8 on: October 04, 2014, 11:47:33 am »
Ok, I had a look at:
http://wiki.freepascal.org/Indy_with_Lazarus#How_to_install_.5B3.5D_Windows.2C_Indy_10.5.8.0_and_above
I tried all of the methods mentioned in the wiki - to no avail.
Method 1 resulted: in dclindyprotocolslaz.lpk is not available for installing
Method 2 I do not have a directory "indy-10.2.0.1/fpc"
Method 3 resulted: in indylaz.lpk is not available for installing
Method 4 resulted: in indylaz.lpk is not available for installing
Method 5 resulted: in indylaz.lpk is not available for installing

When I say "indylaz.lpk is not available for installing" I mean:
I go to install/uninstall packages and indylaz.lpk is not in the list labelled 'available for installation'.

Any help/ideas welcome

open the menu "package\open package file", locate the indylaz.lpk if it is in your drive press compile select the button use and in the popup menu select install press yes to build lazarus now and wait until the package is installed.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

hy

  • Full Member
  • ***
  • Posts: 221
Re: Installing Indy into Lazarus... almost got it but...
« Reply #9 on: October 04, 2014, 11:54:19 am »
Thanks taaz, I did that before. But it didn't work out.
But now I found it works when I use Method 3
['=== how to install [3] windows and debian linux, indy 10.5.8.0 and above]
with the sources of http://indy.fulgan.com/

I needed to make the following additional step:
compile package
then open the menu [button "more..."] and recompile all required

after that the package was available for installation...

_____
***hy
OS: debian sid(64bit)  [fpc 3.20] Lazarus 2.0.12

 

TinyPortal © 2005-2018