Recent

Author Topic: Compiling Indy with Lazarus 1.0.10  (Read 6801 times)

jpelletier

  • New Member
  • *
  • Posts: 10
Compiling Indy with Lazarus 1.0.10
« on: June 29, 2013, 09:14:37 am »
Hi,
I compiled successfully the indy components but when I try to install them in Lazarus, I get this message:
IdGlobal.pas(71,12) Fatal: Can not find IdGlobal used by IdAboutVCL, ppu=..\components\indy\lib\x86_64-win64\IdGlobal.ppu, package indylaz

Obviously, all the file are present and the settings are all OK. What could be the problem?

JD

  • Hero Member
  • *****
  • Posts: 1910
Re: Compiling Indy with Lazarus 1.0.10
« Reply #1 on: June 29, 2013, 07:17:11 pm »
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

jpelletier

  • New Member
  • *
  • Posts: 10
Re: Compiling Indy with Lazarus 1.0.10
« Reply #2 on: July 08, 2013, 03:40:49 am »
Yes, I followed the instructions in 1.10: How to install [3] Windows, Indy 10.5.8.0
I created a folder indy in C:\lazarus\components but when I add this folder in
$(PkgOutDir);C:\lazarus\components\indy it issues a warning about bad configuration of the package.

Finally, I gave it another try, ignoring the warning above and ignoring other messages about double ppu files. So now it installed successfully (windows 7 64-bit).  8)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Compiling Indy with Lazarus 1.0.10
« Reply #3 on: July 08, 2013, 03:51:03 am »
yeah fpc hates static paths, just use a relative path you can control eg $(PkgOutDir);$(PkgOutDir)..\; for example.
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: Compiling Indy with Lazarus 1.0.10
« Reply #4 on: July 08, 2013, 03:08:16 pm »
This is a known problem for the Indy package installation (due to an FPC problem).

Please, look at this topic, for instance:
http://forum.lazarus.freepascal.org/index.php/topic,20782

The simplest workaround is to compile the package twice before installing it. In fact, the second compilation just updates a checksum in one the object files, so it's really quite fast.

And that's why your second try has finally succeeded.

I've just updated the wiki page concerning the windows installation.
« Last Edit: July 08, 2013, 07:37:06 pm by ChrisF »

JD

  • Hero Member
  • *****
  • Posts: 1910
Re: Compiling Indy with Lazarus 1.0.10
« Reply #5 on: July 08, 2013, 03:31:36 pm »
I've just updated the wiki page concerning the windows installation.

Hi Chris. You'll also need to state that the method works for Indy 10.5.8.0 & above since the current version is Indy 10.6

JD
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Compiling Indy with Lazarus 1.0.10
« Reply #6 on: July 08, 2013, 07:36:44 pm »
Done, thanks. I've slightly modified the title of the concerned paragraph.

I've also added the download URL for the current fulgan versions.

JD

  • Hero Member
  • *****
  • Posts: 1910
Re: Compiling Indy with Lazarus 1.0.10
« Reply #7 on: July 08, 2013, 09:38:03 pm »
Done, thanks. I've slightly modified the title of the concerned paragraph.

I've also added the download URL for the current fulgan versions.

Great thanks.

JD
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

 

TinyPortal © 2005-2018